![poedit app to translate wordpress poedit app to translate wordpress](https://www.pcsteps.com/wp-content/uploads/2015/05/Translate-WordPress-Plugins-in-any-Language-with-Poedit-22.png)
Now that you’ve completed your translations, you can plug-in your file and see if it works.
![poedit app to translate wordpress poedit app to translate wordpress](https://www.wpbeginner.com/wp-content/uploads/2018/01/help-translate-plugin.png)
Once you finish the translation (make sure to save often), you will have your final raw file.
![poedit app to translate wordpress poedit app to translate wordpress](https://www.grzegorowski.com/static/bdaf451297436baff812810480a06503/a1287/poedit_non_ascii_fix.png)
I will try and fix that comment translation issue in the next release.Īfter you start making updates, you’ll notice the upper right portion of the file will begin to fill in. Usually if you just ignore the error, it will save fine. PoEdit might give you an error related to “% comments” while you try to save the file (usually when you have a K preceding it like in German, “% Kommentare”). For a complete list of html entities, visit W3Schools. Kind of strange I know but that’s just how the parser works. A very common example is a word containing an apostrophe or single quote (‘) which needs to be replaced with ' - for example, Chloe O’Brian should be written as Chloe O'Brian. Important Note: Some text characters need to be converted into html entities otherwise they will not display correctly. So in the screen shot I translated “Page not found” into Spanish by typing in the correct translation in the box below. The blank box below that is where you will type in your translations. Now here’s where you need to pay attention. That is the exact place in the theme or plugin where this text is being used. What’s even cooler is if you right click on any line, you’ll see a file name and line number like “comments.php line 121”. If you click on different lines, you’ll notice the section below displays that exact line of text.
![poedit app to translate wordpress poedit app to translate wordpress](https://www.wpbeginner.com/wp-content/uploads/2018/01/translationtemplates.png)
Each line represents a place within the WordPress theme or plugin that stores the text. mo file.Īs you can see from the screen shot below, the top part of the file contains the entire list of text that needs to be translated.
#Poedit app to translate wordpress install#
Download a gettext file editor like PoEdit and install it.Here are the steps to translate/localize a. po file since it’s the raw editable text scraped from the entire WordPress theme/plugin. Well, the files aren’t really important if English is your primary language but if you want to have WordPress, a WordPress theme, or even a plugin localized in your native language then those files are golden. pot files anyhow and why are they included in my download?
#Poedit app to translate wordpress how to#
You need to debug it.īut "Poedit" is a red herring, once a string is in the PO (and thus MO) and its translation is not being picked up, your problem is with the code using gettext library inside the plugin/theme/whatever, not the tool you happen to use to edit the translations.If you want to translate a plugin instead or use an easier tool than PoEdit, check out our How to Translate a Plugin tutorial. The point is, nobody can check their crystal ball and tell you what the cause is in this particular case - it differs. Maybe it is, but it is evaluated too early, before the textdomain is read. Maybe the string isn't wrapped in a gettext function at all. If that's not it, well, then use the Source Luke! Go find the string in the plugin's source code. First step: verify that's not the case, by changing some other translation. It's possible the file isn't being picked one for some reason (bad name, bad location, overshadowed by the same file in a higher-priority location). My only guess so far is that the translation is somehow read from a nother translation file that has the same word defined in its index (but not translated)