Translation not working
-
Hi there,
after the upgrade, the translations still not working, when this issue will be correct?
Many thanks.
-
Can you clarify where the translations are not working?
Hi Ron,
I had translate with Poedit all strings, the menu string are working perfect the page strings is not working keep in English, and the Menu tab are in Italian.
Thanks for the follow up. We have an issue where we are looking into it: https://github.com/woocommerce/woocommerce-admin/issues/2336
Hi @comcart,
Are you trying to use your own translation file for Italian?
If so, in order to get all of the strings translated – JSON files will need to be generated so everything can be localized.
You can use WP-CLI to do so:
wp i18n make-json [.po file here] --no-purge.The name of the file should follow this format:
woocommerce-admin-xx_YY-wc-admin-app.jsonand be placed in the/wp-content/languages/pluginsdirectory. (Wherexx_YYis your locale, likeit_IT).Please consider contributing your translation to the WooCommerce Admin translation project!
Hi @jeffstieler
it’s not possible just translate with Poedit and the translation works, like a major part of the others plugins?
Thanks.
Hi there,
it’s not possible just translate with Poedit and the translation works, like a major part of the others plugins?
Our developers are aware that currently it is not possible to translate strings using plugins like Poedit or Loco Translate.
Jeff suggested a workaround to fix this for the time being but it should be possible to translate strings the usual way after a Pull Request is created and merged for this GitHub issue and a release is out:
https://github.com/woocommerce/woocommerce-admin/issues/2336
Hi there,
thanks @grigaswp for the reply, we will try the workaround on a demo site, off course is much better to use the standard solution as Poedit in our case.
Hi @comcart,
it’s not possible just translate with Poedit and the translation works, like a major part of the others plugins?
It is, but JSON files need to be generated from the resulting .po file so that the strings in the script are translated as well. This isn’t a workaround (cc @grigaswp) and only needs to be done while developing a translation file.
For published translations available on GlotPress, the JSON files are automatically generated and downloaded when using the translation update button under Dashboard > Updates. You can test this by choosing Español for your language and updating translations.
Hello:
Excuse me
How can I change the language?
wp-includes/script-loader.php 604
‘past’ => __( ‘%s ago’ ),
%s = 2 months
Months change Chinese language
Thank you!Hello:
wp-includes\js\dist\date.min.js Processed
Thank you!-
This reply was modified 6 years, 9 months ago by
hlv356168.
Hello @hlv008,
It appears you’re looking to translate some string that are in WordPress itself, not in WooCommerce Admin.
You can find existing translations for WordPress here: https://translate.wordpress.org/
-
This reply was modified 6 years, 9 months ago by
The topic ‘Translation not working’ is closed to new replies.