Hi there,
I'm just asking myself one things. Is there a way with ubercart to translate country name ?
As it's stored in the database I don't know how to do that ?
thanks
zmove
|
UbercartOne cart to rule them all... |
|
| Donate | Affiliates | Sponsors | ||
Translate country
Submitted by zmove on Mon, 10/15/2007 - 03:57
Hi there, I'm just asking myself one things. Is there a way with ubercart to translate country name ? As it's stored in the database I don't know how to do that ? thanks zmove
Is my question stupid or nobody knows how to do ? normally you would go to locale module and search for that string and then replace it with something else ?! I tried but no, countries are not made with t() function. They are stored in the database. so you want to do what, change them in the database once for all or tied to another translation? In fact I have my website available in enflish and french. When a english guy want to buy products, I want to display an english list of countries. When a french guy want to buy products, I want to display a french list of countries. In the locale module, when I search for the english name to translate, I don't find it. I think it's because they are stored in a table and not setted up with a t('My country'); function. So I'm still looking for a way to translate these countries. There is no way at the moment... this is another case where translatable variables would be nice, but the pot extractor doesn't like them. I've still gotta chat w/ Gabor about it. What is currently the status of this issue and what are the plans? Ryan suggested a fix at: http://www.ubercart.org/forum/general_discussion/5753/countries_tables #1
|
|
Joined: 08/13/2007