ror_ecommerce icon indicating copy to clipboard operation
ror_ecommerce copied to clipboard

Translate content

Open mitfik opened this issue 12 years ago • 12 comments

Hi,

There is possibility to translate content ? I would like to provide content (products description, specification) in different languages

mitfik avatar Jul 11 '12 13:07 mitfik

My only response is not immediately. I'd like to understand what solutions you have seen in other projects. I don't know too many ways to solve this in the database.

drhenner avatar Jul 11 '12 19:07 drhenner

The best which I saw (also from user experience perspective) is translation module from refinerycms [1]. Which works really good. Basically it base on globalize3 [2] gem which is very good for that. I could provide implementation for that.

From store perspective is very important that each content (which is provided by user) should be translatable from admin panel. It also will be good to have functionality, that user could define which product will be available for which country (could you confirm if this is not possible right now?)

BTW: For this internationalization features it will good that user could have:

  • possibility to choose language (depends of language proper content and terms and conditions)
  • possibility to choose country (depends of the country different price and different products)
  • possibility to choose currency (depends of that different currency for payment, not only display different currency)

[1] http://refinerycms.com/ [2] https://github.com/svenfuchs/globalize3

mitfik avatar Jul 11 '12 21:07 mitfik

Globalize feature:

https://github.com/mitfik/ror_ecommerce/tree/globalize

Few things left so as soon I will finish I will send PR.

regards

mitfik avatar Jul 12 '12 14:07 mitfik

Definite plus over spree (who never adoptes a truly global attitude) and a must in many a european project

rubydesign avatar Jul 18 '12 07:07 rubydesign

I truly love that you guys are helping. As an American, I tend to think pretty linearly. =)

I'm juggling a lot of things right now. I'll be knocking off some of the other issues ASAP.

drhenner avatar Jul 18 '12 13:07 drhenner

We could probably use the lib/locales files?

deanpcmad avatar Sep 08 '12 13:09 deanpcmad

@deanperry You mean config/locales ? globalize is a solution for translating dynamic content and config/locales files (pl.yml, en.yml) are for static content.

mitfik avatar Sep 09 '12 10:09 mitfik

Ah I see, I've not had the need to translate content yet for any of my projects :)

deanpcmad avatar Sep 09 '12 20:09 deanpcmad

Hi, have there been any changes since then? There is tool HerbGobbler which claims able to extract raw text from project then convert it to I18n.

romiras avatar Jun 17 '15 08:06 romiras

Very interesting. I have never seen HerbGobbler. I'll take a look

drhenner avatar Jun 17 '15 14:06 drhenner

Am i misunderstanding this or is the topic about content, but HerbGobbler about templates ?

If it's just about template s, ie having a store in one different language but english, you can try my rubyclerks (https://github.com/rubyclerks/office_clerk), which is a lot smaller, but if it's enough for you, fully internationalized. (hope that's ok to mention here, dave)

rubydesign avatar Jun 17 '15 17:06 rubydesign

Yes I'm ok with mentioning :)

As for this topic I'll search a few solutions if I have time but I'm swapped at my day job so....

drhenner avatar Jun 17 '15 18:06 drhenner