Jump to:

1036 Posts in 810 Topics by 315 members

Forum Module

SilverStripe Forums » Forum Module » Forum locale (extension Translatable)

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 1046 Views
  • fiord
    Avatar
    Community Member
    79 Posts

    Forum locale (extension Translatable) Link to this post

    Hi
    I use SilverStripe CMS - 2.4.2 with Forum module 0.3-r113106
    In my site config I use

    Object::add_extension('SiteTree', 'Translatable');
    Translatable::set_default_locale('uk_UA');

    In folder forum/lang I create file uk_UA.php

    <?php
    i18n::include_locale_file('modules: forum', 'en_US');

    global $lang;

    if(array_key_exists('uk_UA', $lang) && is_array($lang['uk_UA'])) {
       $lang['uk_UA'] = array_merge($lang['en_US'], $lang['uk_UA']);
    } else {
       $lang['uk_UA'] = $lang['en_US'];
    }
    ............................


    But SilverStripe not see my file, connects only English lang file.
    Tell me how to make the forum work with my localization?

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Forum locale (extension Translatable) Link to this post

    did you do a flush?

  • fiord
    Avatar
    Community Member
    79 Posts

    Re: Forum locale (extension Translatable) Link to this post

    yes

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