Hi @andrewmrobbins ,
In my case define 'WPLANG'
constant, doesn’t change the language.
Only setting the website language in wp-admin/options-general.php
perform the changes.
So, if I put define ('WPLANG', 'fr_FR');
this doesn’t work. But if I change the language to “French” from the wp-admin/options-general.php
page, the plugin will translated.
Now my issue still the same: I open the wpshopify.pot
file, make the new translation files called 'wpshopify-it_IT.po' and 'wpshopify-it_IT.mo'
, by translating to Italian language the most part of front-end strings, then I put the files inside /wp-shopify-pro/languages
, sets the website language to Italian, but the front-end strings still in English.
I make a copy of the original 'wpshopify-fr_FR-wpshopify-public.json'
, by edit some strings, and saved as new 'wpshopify-it_IT-wpshopify-public.json'
. Put the file inside /wp-shopify-pro/languages
folder, and it works!
So I understand that I need to make also the Json files, but I don’t know how!
That’s because the .pot contains all the strings than Json files, which are distinct in: admin, blocks, public, wizard.
Moreover: putting the files inside /wp-content/languages/plugins
folder, doesn’t work! That means I need to reload my custom translation’s files everytime I will update the plugin.
That’s not very understandable way to respect the standard way of WP translations.