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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Translatabe in blog module


Reply


368 Views

Avatar
Gaudino

Community Member, 8 Posts

18 July 2012 at 1:01am

Hi,

I have a little problem with Translatabe in Silverstripe.

I use this solution:
http://www.ssbits.com/tutorials/2011/using-translatable-to-create-a-simple-multilingual-site/

In my project I use blog module and in my _config.php is:

i18n::set_locale('cs_CZ');

Translatable::set_default_locale('cs_CZ');
Object::add_extension('SiteTree', 'Translatable');
Object::add_extension('SiteConfig', 'Translatable');

Translatable::set_allowed_locales(array(
   'cs_CZ',
'en_GB'
)
);

My problem:

When I create new post in blog module in cs_CZ version I have Czech language in my attributes. (alt, title...)
But when I create a new post in en_GB version, so I have Czech language in my attributes too!
Its bad, because I need to have english kanguage in my attributes.

Can anybody help me?

Thanks