Tagged: Genesis 3.1.0 translations
August 22, 2019 at 1:32 am #493092
I use my own custom Genesis framework translation to Spanish, by means of .PO/.MO files. After downloading the recent 3.1.0 version of Genesis framework, making an updated .MO translation file with PoEdit and uploading it to /wp-content/themes/genesis/lib/languages, I have noticed that the text chains in the new Genesis sidebar (for example, "Hide Breadcrumbs", "Hide Title", "Layout", "Custom Class", etc.) remain in English.
By the way, this problem affects not only Genesis framwork, but also many other plugins which modify WordPress 5.x editor. Atomic Blocks plugin is an examplee, as it can be seen here: https://wordpress.org/support/topic/translations-does-not-go-to-the-blocks-panel/.
Any idea? Thanks in advance,
Eduardo Larequi.August 22, 2019 at 6:54 am #493101NickParticipant
If you would prefer not to do this yourself, an upcoming update to the Genesis Translations plugin will bundle the new Spanish translation files for you (using the Spanish translations from the Genesis community translation project). This plugin update should be out in the next week or two.
If you want to generate the files yourself with Genesis 3.1, you can create the extra translation files from your custom Spanish language files like this:
1. Install the WP-CLI application locally or on your web server: https://wp-cli.org/#installing. Installing on a production site requires SSH/command line access to the server. Not all web hosts provide this, so you may have to download Genesis to your own computer and generate the files locally.
2. Put your generated es_ES.mo and es_ES.po files in the genesis/lib/languages directory.
3. On the command line, change directory to the Genesis folder: cd /full/path/to/wordpress/wp-content/themes/genesis
4. On the command line, type wp i18n make-json lib/languages to generate the additional language files.
You will see a lot of new files in the genesis/lib/languages directory that look like this:
You will need to rename each of those files so they start with genesis- like this instead:
You should then find that Genesis picks up the translations in the sidebar:
The StudioPress team is looking at ways to reduce the amount of work to create and download translations in future versions of Genesis. I hope this information is helpful for now.August 24, 2019 at 1:52 pm #493156
Thank you very much for your help, Nick.
As I don't have CLI access to any production server, I have installed WP-CLI in my PC (Windows 10) and in my home server (a Synology NAS DS718+). Then, following your instructions, I've tried to generate the JSON files in these two systems.
Apparently, everthing worked fine, but, instead of getting a bunch of 14 files, as you have pointed out in your instructions, I have just got 3 files. As you can see, their hashed names match the ones from your list:
I've checked carefully all the steps, and repeated the procedure many times, but I haven't been able to get all the necessary files. There must be some error in my work, but I can't find it.
Any idea? Thanks in advance,
Eduardo Larequi.August 27, 2019 at 12:54 am #493206
Problem solved, Nick.
I have been trying to generate the JSON files from a custom .PO file which in turn had not been generated from the official .POT file, but directly from the code, by means of PoEdit.
After generating the .JSON files from the correct .PO file (based in the original genesis.pot file), everything works as expected.
Thank you very much for your help, Nick, once more time.
- The topic ‘New Genesis sidebar in WordPress 5.x editor is not translated’ is closed to new replies.