Have you ever ever discovered your self within the scenario the place you wished to make use of a WordPress theme or plugin however sadly the whole lot is displayed in English? I think about so, however do you know that it was potential to translate or discover its french translation ?
Certainly WordPress and its eco-system use internationalization (i18n) information whose goal is to provide a program that may be instantly deployed in several languages by merely including a brand new translation file.
There are a number of strategies to translate a WordPress theme or extension, you need to use neighborhood instruments similar to Transifexor use the software program PoEdit which is able to can help you do your translation straight in your laptop. On this article we are going to element this final answer.
Stipulations:
To start with you want Obtainthen set up PoEdit, as soon as these steps have been accomplished, launch PoEdit then set it up together with your data: your identify and your e mail handle (see screenshot →) .
Setting :
Then it’s essential to discover the supply file containing the specified translation, most frequently it’s a .pot however you can too discover an en_EN.po file which is able to function a mannequin. Typically these information are in a lang or languages listing however they may also be within the root, the best approach remains to be to seek for *.pot or *.po.
Configuration :
Open the supply file with PoEdit and configure it to be a French language translation file by clicking on Catalogue -> Preferences. Underneath the knowledge in regards to the file and your self, you will have to enter the Language subject: fr_FR which corresponds to the French language spoken in France (fr_CA for Canada, fr_BE for Belgium and many others).
Additionally, you will must set the character set and supply code character set to UTF8. Lastly the final step consists in configuring the language file for the consideration of the pluralfor this enter nplurals=2; plural=n == 1 ? 0 : 1; within the subject Plural Types. All you need to do is save your file in your lang listing as fr_FR.po if it’s a theme. Whether it is an extension, you will have to reserve it within the kind domaine-fr_FR .po (Instance: if the area of the extension is foo, this can end in a file foo-fr_FR.po).
That is it, your translation file is configured, all you need to do is translate the completely different translation strings containing it and ship this translation file through FTP to the lang listing of your theme or your extension.
Use case: MaxFlat Core
Here’s a video made for the event that may present you in apply how you can carry out a WordPress translation with PoEdit. One can find this translation right here: http://www.wptrads.com/theme/maxflat-core/
Extra hyperlinks:
Bonus WPFormation :
All subscribers to the WPFormation Publication (see beneath to subscribe) will obtain completely in our subsequent month-to-month publication in September, a hyperlink to the entire French translation of the wonderful caching plugin W3 Complete Cache made by Didier 😉
Share the submit “Translate themes and extensions with PoEdit”