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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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

Translations and e-commerce

Go to End

5 Posts   1401 Views


Community Member, 1 Post

3 March 2010 at 10:23pm

I'm facing a problem - For default language I set Bulgaria using /mysite/_config.php:
Object::add_extension('SiteTree', 'Translatable');

When i'm in the main site everything is translated. In the e-commerce module only some fields catch the translation.
My site uses SS - 2.3.6 and e-commerce module 0.5.4 and the latest bg_BG.php for /lang/
Any help would be most welcome


Community Member, 19 Posts

15 March 2010 at 6:54am

im facing the same problem.
i guess its a bug in the templates, because the includes wont catch the right translation.
just the translations for the parentpage do grip.

so namespaces should be used:

f.e. in the
it should state for line 1:
<h3 class="orderInfo"><% _t("","Order Information") %></h3>

and not just:
<h3 class="orderInfo"><% _t("ORDERINFORMATION","Order Information") %></h3>

but im not sure, maybe somebody more experienced can confirm this?

Henk Poley

30 Posts

29 March 2010 at 1:58am

Edited: 29/03/2010 1:58am

Fix for translating included templates:

Will also be included in some future silverstripe update.


Community Member, 349 Posts

28 May 2010 at 7:19am

Edited: 28/05/2010 7:21am

Is there any fix yet i have english and estonian the default is estonian and when i switch to english the text is estonian not english added also the <% _t("","translation") %> but it didnt help in ecommerce.

Im using 2.4 stable and ecommerce 0.6 beta 1


Community Member, 349 Posts

28 May 2010 at 7:45am

after adding

if($this->dataRecord->hasExtension('Translatable')) {

in mysite/page.php after css requierments worked like charm