Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Translatable

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

Page: 1
Go to End
Author Topic: 1575 Views
  • Beck
    Avatar
    Community Member
    23 Posts

    Translatable Link to this post

    Hi everyone! problem is: i couldn't do Multi-language page or just one language (except english)

    I insert to _config.php:

    Object::add_extension('SiteTree', 'Translatable');
    Translatable::set_default_locale('ru_RU');
    Translatable::set_default_lang('ru');

    then: dev/build?flush=1

    but it doesn't render:
    see this page http://roboclean.uz/comments here actually must be in russian but there in english

    even i did
    i18n::set_default_locale('ru_RU');
    i18n::set_default_lang('ru');
    but error is: Fatal error: Call to undefined method i18n::set_default_locale() in /home/robouz/public_html/mysite/_config.php on line 27

    then did
    i10n::set_default_locale('ru_RU');
    i10n::set_default_lang('ru');
    error:Fatal error: Class 'i10n' not found in /home/robouz/public_html/mysite/_config.php on line 27

    2. question is how can i chagne in comment form, website url to email or add extra form(example: Country)

    thanks in advance

  • Beck
    Avatar
    Community Member
    23 Posts

    Re: Translatable Link to this post

    urgent problem. i didn't solve this problem yet

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: Translatable Link to this post

    Uhm, you're using APIs that don't exist (i10n and set_default_locale), what other than an error do you expect?

    Please have a look at http://doc.silverstripe.com/doku.php?id=multilingualcontent#switching_languages

    1575 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.