Page 1 of 1

[solved] Change Language for ShopMadeSimple

Posted: Mon Jan 04, 2010 9:56 pm
by jonnytm
Hi all

Although being very happy about Shop Made Simple (in combination with Cart Made Simple), I am confused to not find the option of changing the language. Words like "categories" or "add to cart" should be possible to be translated. I do find the words "default language" but there is no dropdown or similar below (s. screenshot).

How can I change the language of the shop?

Thanks!

JTM

Re: Change Language for ShopMadeSimple

Posted: Tue Jan 05, 2010 5:35 am
by Duketown
johnnytm,

I'm glad that you are happy about the modules!
The original idea of "default language" for the module was to have translations per product. As a result of that the module could be used in a multilinguale environment. It has not yet come that far (no requests entered and nothing heared of it). I should remove that non working preference.
I have checked the ShopMadeSimple translation table and "categories" is not in it. As a result your german translation table (at least that is the language that I see you are using), doesn't contain it. You might try and add it manually in de_DE.php. Remember that during an upgrade it will be lost again. Can you point out where you find the word "categories", so I can change it for next release?

"Add to cart" is obviously out of the CartMadeSimple module. I will try to locate it and prepare it in the translation table. So it will be in on the next release.

Duketown

Re: Change Language for ShopMadeSimple

Posted: Tue Jan 05, 2010 5:49 am
by RonnyK
When you want custom-labels (from the lang-file) and dont want to loose them in an upgrade, then you could use the custom_module logic...

When your lang-file is de_DE.php, then you could have a specific de_DE.php with ONLY the changed labels, located in:

module_custom\ShopMadeSimple\lang

and that file will be taken. In an upgrade, the \module\ShopMadeSimple\ will be overwritten AND NOT the module_custom logic. I would test with a single label If I were you, to test is ShopMadeSimple works like this as well....

Ronny

Re: Change Language for ShopMadeSimple

Posted: Tue Jan 05, 2010 6:01 am
by Duketown
RonnyK,

Thanks for the additional info. That is a far better solution.
In the recent past I tried that, but didn't work. Do you have it up and running (in other words, I have to check what I have done wrong)?

@jonnytm: I made an error stating "add to cart" is part of CartMadeSimple. It is in ShopMadeSimple and it is in the translation table en_US.php available. So either you are using an old version or the translators have some work to do.

Duketown

Re: Change Language for ShopMadeSimple

Posted: Tue Jan 05, 2010 8:07 am
by vilkis
Hi,
the module_custom method works, but sometimes people do a mistake and place lang file in module_custom\MODULENAME\lang\ext - It should be placed in module_custom\MODULENAME\lang :)

vilkis

Re: Change Language for ShopMadeSimple

Posted: Tue Jan 05, 2010 8:32 am
by RonnyK
Duketown,

I have it running currently at my dev-box with Availability... I can show you that settings...

Ronny

Re: [solved] Change Language for ShopMadeSimple

Posted: Tue Jan 05, 2010 10:42 am
by jonnytm
Works great, thanks!