938 Posts in 271 Topics by 291 members
Forum Module
SilverStripe Forums » Forum Module » Forum locale (extension Translatable)
Discuss the Forum Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 821 Views |
-
Forum locale (extension Translatable)

29 November 2010 at 2:32am Last edited: 29 November 2010 2:33am
Hi
I use SilverStripe CMS - 2.4.2 with Forum module 0.3-r113106
In my site config I useObject::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?
| 821 Views | ||
|
Page:
1
|
Go to Top |


