June 3, 2010 at 2:15 am #1298
Any of the customer visible text/messages displayed by the plugin can be translated for localization purpose.
Every plugin has a language folder within the plugin directory (it will have a name of “language” or “lang”). You simply have to modify the language file that corresponds to your language (example, “eng.php” for English).
Here are some examples of where you can find the language file:
WP eStore Plugin - "../plugins/wp-cart-for-digital-products/languages/eng.php"
WP eMember Plugin - "../plugins/wp-eMember/lang/eng.php"
WP Affiliate Platform - "../plugins/wp-affiliate-platform/affiliates/lang/eng.php"
Payment Gateway Bundle - "../plugins/wp-payment-gateway/lang/eng.php"
If you do not see a language file for your language in this folder then you can just use the “eng.php” file and customize it to fit your language.
How to do the translation
Step 1: Find the text you want to translate. The entries in the language file will look similar to the following:
define("ESTORE_AVAILABLE_QTY", "Available Qty");
You only need to translate the 2nd argument. So in the above line you will modify the “Available Qty” part. For example, if the translation of “Available Qty” in your language is “En inventaire” then change it to the following:
define("ESTORE_AVAILABLE_QTY", "En inventaire");
Do the same for all the lines in that file that you want to customize.
Step 2: Save and upload the new file via FTP to the language directory replacing the existing file.
Note for Non-English Language Users
You need to make sure that you save the language file in UTF-8 format after you do the modifications otherwise the accented characters may have issues. There are a few free text editors that lets you save a file in UTF-8 format. Here is one that I use:
Now, when you view your web page, any message displayed by the plugin will be in your translated language.
Note for future plugin updates
Before you update the plugin in the future make sure to keep a backup copy of the customized language file. This way you will be able to apply the customizations back to the plugin easily after the update. You can also submit the translations back to us and we will include it in the plugin.December 15, 2010 at 7:54 pm #21171designthemediaMember
how about wpml integration or multi-language feature?
can I have a workaround for that ?December 16, 2010 at 3:16 am #21172
Multilingual blog is not a standard WordPress feature which is why there is no settings in this plugin for multilingual option.
Are you using a multilingual plugin such as:
orFebruary 23, 2011 at 12:19 pm #21173babouyesMember
Hi. I’m having the same problem. I need to have a store in 3 languages. Spanish, english and german. I have seen the translated language files, but… how can I choose which language to use on a singular product. For example, the ebbok in german is on a german page. There, I need to put the “german version” of the wp.cart-for-digital-products plugin.
On the spanish page for the spanish ebook, I need to use the spanish version of the plugin.
I’m translating the page with WPML, which is awesome…
any posibility to use a .mo file for the plugin?February 24, 2011 at 1:51 am #21174
All you need to do is use the multilingual plugin (http://wordpress.org/extend/plugins/wp-multilingual/) and select “i18n” as the shopping cart language from eStore’s settingsMarch 14, 2011 at 4:42 am #21175gilbertocintronSpectator
I’m really brain dead. I see the Spanish language php that I want to use. How do I activate it? In the settings if ask me which language to use, I slected Spanish but nothing has changed.
Thanks.March 14, 2011 at 5:34 am #21176
If there is a file called “spa.php” in the language folder just open and edit the language in that file, then send it to us and we will include it in the plugin.March 16, 2011 at 7:16 pm #21177
Thx for explanation, it works for me;)
I’m form Poland and I want to ask if plugin is able to display my translation with polish symbols? Like ‘ś’ or ‘ć”?
Because now ‘�’ is displayed instead of polish symbols.March 17, 2011 at 12:00 am #21178
Yes, you can display those special characters but you need to make sure that you save the language file in UTF-8 format after you edit it. Please read the “Note for Non-English Language Users” section in the original post and it will have more explanation for you.March 22, 2011 at 1:41 pm #21179
One more issue. Why special characters doesn’t display in product name? How to fix it?March 22, 2011 at 11:21 pm #21180
Wich shortcode are you using to display the product? Please post a link to the page where you have the product.March 24, 2011 at 3:38 pm #21181
This is the page:
I use this shortcode: [wp_eStore_fancy2 id=4]March 24, 2011 at 11:02 pm #21182
Thank you. That field basically shows whatever you specify in the “Product Name” field. When you edit the product in the dashboard can you see the name properly or does it mess it up there too? Trying to make sure that the database is not doing anything funny with UTF-8 stuff.
Can you post the text (the product name) that you are trying to use so I can copy and paste in my test server.March 27, 2011 at 11:18 am #21183
When I edit the product I can’t see it properly. It changed after I saved it. I want to use name: Bilety Łódź. I wonder why ‘ó’ is displayed, and ‘Ł’ and ‘ź’ isn’t?
Polish symbols works everywhere on my website and in eStore plugin. Just the product name doesn’t.March 28, 2011 at 6:42 am #21184
The UTF-8 stuff in the product name field is playing up in the database. I am going to specify the database charset so it forces it to use UTF-8.
I have sent you an email with a copy of the eStore plugin. Go to the “Admin Functions” menu and hit the “Remove All eStore Database Tables”. This will delete all the eStore database tables. Now delete the current version of eStore and upload the one that I sent you in the email. Activate it then try and add a new product with the name you want. Let me know how it goes after that.
- You must be logged in to reply to this topic.