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.

E-Commerce Modules /

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, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Can't get translation to work


Go to End


1694 Views

Avatar
Martijn

Community Member, 271 Posts

16 July 2009 at 5:21am

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?