Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Meta-Tag Language


Go to End


2 Posts   1892 Views

Avatar
Peccata

Community Member, 1 Post

16 January 2008 at 12:22am

I've been working with ss since 3 days now (noobie). My problem is, that I publish the content in German language but the $MetaTags allways shows the content-language "en". I allready changed the admin menu as well as the profile into "German" but there are no changes on the language meta tag.
Could anyone help me out here?

Avatar
dio5

Community Member, 501 Posts

16 January 2008 at 4:52am

It uses Translatable::current_lang() to get it, so I figure there must be a way to set it.

Have a look at

http://api.silverstripe.com/sapphire/core/i18n.html#set_default_lang

and

http://doc.silverstripe.com/doku.php?id=multilingualcontent