Both CONJ and its companion (PowerPack) plugin are localized using the GNU framework, which is the most common way to translate WordPress core and almost any theme or plugin.
Files that enable the
.pot― This file is a portable object template that contains all of the text to be translated.
.po― The portable object file contains the original text and the translations.
.mo― This is the machine object file. When your translation is complete, you will convert or export your .po file to this file type so that WordPress can use it.
.mo translation files
.mo files to manage translations. In fact, WordPress only needs
.mofiles to handle translations.
.po files are human-readable; Those files contains a list of strings ready to be translated or with a translation already included.
.mo files just compiled exports from the
.po files and used by WordPress to get the conversion of each string to translate the theme. If you try to open a
.mo file with a regular text editor, you will not understand anything of its content.
Loading translation files
Translations can be filed in the
/languages/ directory. Both CONJ and PowerPack plugin will look in this directory for translations as a fallback. However, it is recommended that you use the global WordPress language directory and install your translations like so:
Alternatively you can put translations in your child theme:
CONJ first looks in the WordPress Languages Directory, and then in the language directory of your child theme.
Custom translations need to be in the correct place, or they’ll be lost when updating CONJ core.
Translate or replace default text
In case you wish to translate or modify a few words of either CONJ or its companion (PowerPack) plugin without editing core catalog files, the following plugin might help:
- Log into your WordPress website and navigate to Plugins » Add New.
- Locate the search field in the top right corner of the page and type in Say What?.
- Click Install Now button.
- Then, click Activate button.
- At this point, the plugin will be up and running on your website!
When activated, the plugin will ask for:
- Original string — text you are translating.
- Text domain —
- Text you want to display.
In case you have already translated CONJ, a lot of users would be thrilled if you share your translation files with the community.
For translations, please start a new discussion under i18n forum here to share any of your translated files with us. We will include the translation files along with your name and credit to the next release, so other people who speak your language can use it.
Last updated: 5 months ago