translation
-
Hi @josserand ,
I’ve tried everything, but I still can’t get the translation to work. Author, please fix the connection to the translation template, and confirm the translation to Russian, which I added.-
This reply was modified 4 years, 4 months ago by
cousinr.
Hi @josserand and @fulviods,
1. First, I renamed the plugin directory from “better-variation-price-for-woocommerce” to “wbvp”. Then I added the “languages” directory to the plugin folder, where I placed the template file. I renamed the template file to “wbvp.pot”. I added my translations to the system folder languages\plugins.
2. Next, I made changes to the file woo-better-variation-price.php, which is in plugins\wbvp\trunk\ :– On line 136, change (‘Change main price when selecting variation.’) to (‘Change main price when selecting variation.’, ‘wbvp’)
– On line 142 change (‘Show lowest variation price instead of price range.’) to ( ‘Show lowest variation price instead of price range.’, ‘wbvp’)
– at line 148 change (‘Hide the ‘clear’ link that appears when you select a variation.’ ) to ( Hide the ‘clear’ link that appears when you select a variation.’, ‘wbvp’)
It all works now!Hey @cousinr! I updated the plugin to allow translations from https://translate.ww.wp.xz.cn, it should work now.
Thank you very much for your russian translation, I will approve it as soon as I figure how to do it!
Hi @josserand,
Sorry, but the translation problems have not gone away with the new update.
1/ Maybe you need to rename the slug plugin to better-variation-price-for-woocommerce.
2/ Rename the main file from “woo-better-variation-price.php” to “better-variation-price-for-woocommerce.php”.
3/ Add the languges folder and put the template file “file better-variation-price-for-woocommerce.php” in it.
ThanksYes, I was planning to use the translation from https://translate.ww.wp.xz.cn/, but it seems I can’t approve translation for my own plugin there.
I just edited the plugin to use local languages files instead. Russian version should work with version 1.2.1
Updated, everything works, thank you!
-
This reply was modified 4 years, 4 months ago by
The topic ‘translation’ is closed to new replies.