Translation

The plugin is localisation ready so all that is needed is your translation. This documentation covers two methods to create your translation. The easiest method is to use a plugin called Loco Translate and more advanced users can use Poedit.

Loco Translate

Translation

Step 1: To set your default site language go to Settings > General and select your language from the Site Language dropdown menu.

Step 2: Go to Plugins > Add New, search for “Loco Translate” and install and activate the plugin.

Translating Plugin

Step 1: Go to Loco Translate > Plugins, select the Ultimate Reviewer plugin and click the New language link.

Step 2: This will take you to a page where you can choose the language and location. Select the language that matches the one you selected from Settings > General and set the location to “System”.

Step 3: Once you’ve done this you can translate the plugin.

Updating Translations

If you update the plugin and new text needs to be translated you also need to update the language file as follows:

Step 1: Go to Loco Translate > Plugins, select the Ultimate Reviewer plugin and edit your language file.

Step 2: Click the Sync button to load all the new text from .pot translation file to your language file (.po).

Poedit

Translation

Step 1: To set your default site language go to Settings > General and select your language from the Site Language dropdown menu.

Step 2: Install and open the translation program Poedit.

Translating Plugin

Step 1: Go to File > New From POT/PO File and open the translation file from ultimate-reviewer-plugin/ultimate-reviewer/languages/ultimate-reviewer.pot

Step 2: You will be asked to specify the language you want to translate to.

Step 3: Now click on each string and enter your translation in the text box.

Step 4: After translating the strings save your file. The filename should be prefixed with “ultimate-reviewer” followed by the country code, so a Norwegian translation will be saved as ultimate-reviewer-nb_NO.po.

Step 5: Poedit will create a .po and .mo file containing your translations. Upload these files to wp-content/languages/plugins/.

Updating Translations

If you update the plugin and new text needs to be translated you also need to update the language file as follows:

Step 1: On your computer, insert your modified translation file (e.g. ultimate-reviewer-en_US.po) into the ultimate-reviewer-plugin/ultimate-reviewer/languages/ folder.

Step 2: Now open this file in Poedit and click Update and it will display the text changes since the latest plugin update.

Step 3: Upload your updated .po and .mo files to wp-content/languages/plugins/ directory.