Jump to:

23550 Posts in 19336 Topics by 2890 members

General Questions

SilverStripe Forums » General Questions » Translatabe in blog module

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

Page: 1
Go to End
Author Topic: 360 Views
  • Gaudino
    Avatar
    Community Member
    8 Posts

    Translatabe in blog module Link to this post

    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

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