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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Translatabe in blog module


Go to End


1086 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