Poedit
Translation with Poedit is a .po
file editing translation method.
This app provides an easy method to create new translations for any language, edit existing translations, synchronize strings, and generate the .mo file.
To edit catalog.po file, follow the below steps:
- Open Poedit
- Choose “New from Po/POT file.”
- Select the pot file for WebGatha Theme
wp-content/themes/webgatha/languages/webgatha.pot
. - Select the new language you want to translate. Choose the country, (e.g., French) if you wish to the language in general, or if you want the more exact, select French (France) or French (Madagascar) to consider local dialects.
- Save the file with your language name, prefixed with the theme name, like “webgatha-fr_FR.po” for “French (France)” or “webgatha-fr_MG.po” for “French (Madagascar)“. It will generate both a
.po
and.mo
files for your translation. - Place these files into Folder
wp-content/languages/themes/
.
Same as above, you can edit the pot file for the plugin.
WebGatha Core (Plugin): wp-content/plugins\webgatha-core\languages\webgatha-core.pot
How to Update Translated Language File
When a theme is updated and text strings are updated in the language files, you can update your language translation file to sync with the latest changes. For this, follow the below steps.
- Open Poedit.
- Open the translated
.po
file of your desired language in POEdit. - Select Catalogue > “Update from POT file’ in top menu.
- In the opening file dialog, choose the
webgatha.pot
file from thewp-content/themes/webgatha/languages
folder. The catalogue will then be auto-updated with all the new text strings, and your custom ones will be preserved. - Save the file after updating and adding translations.