Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » translation

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

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

Page: 1
Go to End
Author Topic: 1384 Views
  • goransabo
    Avatar
    Community Member
    9 Posts

    translation Link to this post

    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

  • Juanitou
    Avatar
    Community Member
    322 Posts

    Re: translation Link to this post

    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

  • goransabo
    Avatar
    Community Member
    9 Posts

    Re: translation Link to this post

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

    1384 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.