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.

Forum Module

Discuss the Forum Module.

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

Forum locale (extension Translatable)


Reply

3 Posts   1057 Views

Avatar
WebSpilka

29 November 2010 at 2:32am (Last edited: 29 November 2010 2:33am), Community Member, 79 Posts

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?

Avatar
Nivanka

29 December 2010 at 8:25pm Community Member, 395 Posts

did you do a flush?

Avatar
WebSpilka

29 December 2010 at 9:12pm Community Member, 79 Posts

yes