Jump to:

1840 Posts in 1563 Topics by 557 members

Blog Module

SilverStripe Forums » Blog Module » [solved] SS 3.02 - Blog Module, Ignoring i18n nl_NL ?!

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 636 Views
  • borriej
    Avatar
    Community Member
    267 Posts

    [solved] SS 3.02 - Blog Module, Ignoring i18n nl_NL ?! Link to this post

    Hi,

    Using:
    SS 3.02
    blog module (latest from gitHub 2 months ago)
    silverstripe-widgets module (latest from gutHub 2 months ago)

    _config:
    i18n::set_locale('nl_NL');

    Translation files nl_NL.php exist in blog/lang folder...

    Problem:
    on the website (not logged-in) the 'posted by' <% _t('POSTEDBY', 'Posted by') %> titles are still in en_US! ..

    Why? how?
    Is i18n not working on blog module or ss 3.02?

    In addition:
    adding to config:
    i18n::set_locale('nl_NL');
    setlocale(LC_ALL, 'nl_NL')
    i18n::set_date_format('dd-MM-YYYY');

    has no effect..

    Any idea's?

  • borriej
    Avatar
    Community Member
    267 Posts

    Re: [solved] SS 3.02 - Blog Module, Ignoring i18n nl_NL ?! Link to this post

    Installed SS 3.03
    Installed latest translatable module,

    added to config:

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

    i18n::set_locale('nl_NL');
    setlocale(LC_ALL, 'nl_NL');
    i18n::set_date_format('dd-MM-YYYY');
    setlocale(LC_TIME, 'nl_NL');

    No effect.. still seeing the english translations.. want to see the Dutch.. how?

  • UndefinedOffset
    Avatar
    Community Member
    27 Posts

    Re: [solved] SS 3.02 - Blog Module, Ignoring i18n nl_NL ?! Link to this post

    Looks like the translation files never got migrated to yaml for SilverStripe 3.0, I've submitted a pull here https://github.com/silverstripe/silverstripe-blog/pull/67

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