This post is part of the sub-series on Translating a ClassicPress plugin with Poedit which is part of the Translating a ClassicPress plugin with Poedit series.
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
- Translation
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, url-shortener_en_GB.po
.
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
Translating a ClassicPress plugin with Poedit |
---|
What is Poedit? |
Download Poedit |
Install Poedit |
Create New Translation Template |
Create Translations |
What should we write about next?
If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.