Jump to:

2082 Posts in 1002 Topics by 452 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Can't get translation to work

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1034 Views
  • Martijn
    Avatar
    Community Member
    271 Posts

    Can't get translation to work Link to this post

    Hi,

    I changed my default language in website.com/mysite/_config.php in nl_NL:

    Translatable::enable();
    Translatable::set_default_locale('nl_NL');

    I added a second language file in website.com/ecommerce/lang called nl_NL.php and translated the strings into Dutch, zo the lines look like this:

    $lang['nl_NL']['Cart.ss']['HEADLINE'] = 'Winkelwagen';

    But the frontend of the webshop does not use the dutch language file, but does show the metatag:

    <meta http-equiv="Content-Language" content="nl-NL"/>

    Even the ?flush=1 does not change anything.

    Wicht steps do I need to take to let the ecommercemodule use the Dutch language file?

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