Archived topic
Translations in GPP do not all show
7 replies · Started by Robin on February 1, 2022
Hi there,
I'm the editor for the Dutch translation for GPP on https://translate.generatepress.com/glotpress/projects/gp-premium/.
All terms are translated, but I noticed when creating a block element that some terms are not showing the translation although the translations are in the file. Mostly the terms in the right sidebar under Block Element. Haven't checked the rest.
I exported the latest .mo and uploaded it to my site, but it's not changing the terms.
Running GPP 2.1.1 and GBP 1.1.2.
Any idea?
Regards,
Robin
Hey Robin,
Since the block editor uses javascript, it actually uses a json file to serve the translations.
You can check the langs folder inside GP Premium to see these files for our translations.
Were these translations you added only recently added? If so, I may not have generated the json files, yet? You should be able to search for a string in the files to check if it exists or not.
You can use WP CLI to generate the json files if you want to test: wp i18n make-json langs --no-purge
Let me know :)
Hi Tom,
Thanks for the reply!
The translations have been in there for quite a while already. In the langs folder I see the .mo and three .json files.
I can see the translations of the missing translations in the .mo file, weirdly enough. Don't see them in the JSON files.
Never used WP CLI so kinda hesitant... no idea even on how to install it.
Regards,
Robin
Looks like they need to be updated.
Right-click + Save as these files and add them into the langs folder:
https://generatepress.com/wp-content/temp/gp-premium-nl_NL-ecf9f3c2af10c4f2dfbf4f42504922d1.json
https://generatepress.com/wp-content/temp/gp-premium-nl_NL-cbab080b0f20fd6c323029398be6c986.json
https://generatepress.com/wp-content/temp/gp-premium-nl_NL-92fa58377f1b6f7bef9c785c31ae29ff.json
https://generatepress.com/wp-content/temp/gp-premium-nl_NL-53e2a1d5945b8d2b1c35e81ae1e532f3.json
https://generatepress.com/wp-content/temp/gp-premium-nl_NL-42da344ccb044413769d16ed3484307b.json
https://generatepress.com/wp-content/temp/gp-premium-nl_NL.mo
Let me know if that does the trick or not :)
Hi Tom,
Thanks! That does the trick!
Will the files be up to date in future versions as well, or is there something I need to do to get them included?
Regards,
Robin
I'll be sure to update all translations in our next feature release :)
Thanks!
Cool! Thanks for the support!
Always!