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.

Archive /

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

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

translation


Reply


3 Posts   1461 Views

Avatar
goransabo

Community Member, 9 Posts

23 September 2008 at 4:44am

Hi!
I have problem with translations. I add new language (Slovenian) in:
auth_openid/lang/sl-SI.php,
cms/lang/sl-SI.php,
sapphire/lang/sl-SI.php,
ecommerce/lang/sl_SI.php
..... but no effect!
How to translate page to slovenian language and how to add language chooser in template?
Please help me!!!?

Thank you, Goran

Avatar
Juanitou

Community Member, 323 Posts

11 October 2008 at 3:28am

Hi!

Have you added the following to your _config.php?

i18n::enable();
i18n::set_default_lang('sl');
i18n::set_locale('sl_Sl');

Also, read the [url=http://doc.silverstripe.com/doku.php?id=multilingualcontent&s=language]documentation[/url].

Regards,
Juanitou

Avatar
goransabo

Community Member, 9 Posts

29 October 2008 at 4:09am

Hi!
I tested it and now all ok.
Thank you