With a translation template created, people can now use it to translate into other languages, which is what I am going to cover in this post.
Launch Poedit and click on the large Create new translation button on the main screen:
Select the catalogue template to open (the pot file) and click Open:
Select the language of the translation you’re going to make (I am translating my
English (United States) into
English (United Kingdom)) and click OK:
The translation window will be displayed which is broken into three sections:
- Source/Translation Text
- Source Text
To translate a string, select it in the top section, the original is shown in the middle and you type the translated text in the bottom; simply work down the list of strings entering the new text:
When all strings have been converted (or if you’re taking a break), clikc the Save button on the toolbar and choose a name for your translation:
This should be named as the plugin slug_language.po; for example,
With this done the translation file is ready for use; if you’re translating someone elses plugin, they’ll usually accept translations with thanks and include them for distribution.
|Translating a ClassicPress plugin with Poedit|
|What is Poedit?|
|Create New Translation Template|