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

translation


Go to End


3 Posts   2150 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 documentation.

Regards,
Juanitou

Avatar
goransabo

Community Member, 9 Posts

29 October 2008 at 4:09am

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