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

the language choice doesn't work


Go to End


6 Posts   1690 Views

Avatar
kuguar

Community Member, 5 Posts

27 December 2014 at 12:26pm

Help to understand, please. At all site language is established ru-Ru. Is it necessary to choose language somewhere in the module silverstripe-shop? Otherwise all active elements in English...

Attached Files
Avatar
Webdoc

Community Member, 349 Posts

25 January 2015 at 9:51am

Edited: 25/01/2015 9:52am

Run http://yoursite.com/dev/tasks/i18nTextCollectorTask?module=shop
and thwn look the ru_RU.yml file in the shop/lang folder and edit the file.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Arvixe Web Hosting / SilverStripe Community Liaison | Looking for quality SilverStripe Web Hosting? Look no further than Arvixe Web Hosting!

Avatar
Thermopyle

Community Member, 1 Post

31 January 2015 at 2:27am

Same problem here. Trying to get de_DE working, but it wont switch.

in _config.yml

i18n:
  default_locale: de_DE

in config.php:

i18n::set_locale('de_DE');

Language stays english.

@webdoc: Running http://yoursite.com/dev/tasks/i18nTextCollectorTask?module=shop produces some errors ([Warning] Illegal string offset 'BUILDTASKS') and an en.yml file in shop/lang folder. Which is no help, sorry.

Avatar
Webdoc

Community Member, 349 Posts

31 January 2015 at 8:49am

Edited: 31/01/2015 10:19am

What version oh shop are you using ?

if u look https://github.com/burnbright/silverstripe-shop/blob/master/templates/Includes/SideCart.ss What is the theme file for it you can see its using translation so its problem on translation files. Also in Default you dont have de.yml and ru_RU.yml files in silverstripe-shop/lang so you can add them. Also add the lines for the SideCart translation in those two yml files.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Arvixe Web Hosting / SilverStripe Community Liaison | Looking for quality SilverStripe Web Hosting? Look no further than Arvixe Web Hosting!

Avatar
kuguar

Community Member, 5 Posts

1 February 2015 at 5:06pm

Edited: 01/02/2015 11:39pm

Webdoc, i added the file ru.yml with the similar contents as well as in en.yml. But translation of language
it turned out partial, treats only the page of registration at the Checkout. Where it is possible to look/download files ru.yml or in other languages for comparison?

Running http://localhost/mysite/dev/tasks/i18nTextCollectorTask?module=shop gives out a mistake: the server isn't found (((

latest version of shop for ss 3.1.9

Avatar
Webdoc

Community Member, 349 Posts

2 February 2015 at 5:23am

Edited: 02/02/2015 5:24am

sorry my bad the module is silverstripe-shop so the task is Run http://yoursite.com/dev/tasks/i18nTextCollectorTask?module=silverstripe-shop
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Arvixe Web Hosting / SilverStripe Community Liaison | Looking for quality SilverStripe Web Hosting? Look no further than Arvixe Web Hosting!