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) You can like our Facebook page, share this post with your friends, and select our affiliate links for your purchases on or Newegg. Support PCstepsĭo you want to support PCsteps, so we can post high quality articles throughout the week? If you had any trouble with Poedit or the translation for a particular plugin, let us know in the comments section. Did you find it easy to translate WordPress plugins? For the CSS, however, we need to edit the theme's or the plugin's CSS files. and for places where the original CSS doesn't fit the new translation.įor the mistranslations, we can edit the. We should extensively check the plugin for mistranslations. Just uploading the proper language file will turn the original plugin. So, we should keep the translated files, and re-upload them anytime the plugin updates. Take note that most plugins will delete the translated files on each update. mo files have the same filename, and then we upload them to the plugin's folder. It depends on our WordPress installation. Sometimes, we might need to add the country code, like in el_GR. We just follow the plugin's template, and add the correct language code. It is important to change the name of the translated files for our respective language. Its default icon is a bit faded, to differentiate it from the po file. This won't show any language errors, but it will look for errors in entries with PHP code.Īfter that, we save the file. This isn't a mistake, it just means that the same text is used in two places, and it gives us the chance to get a more accurate translation for each place.Īfter we finish the translation, we click on Validate. Sometimes, the very same entry could show two, or more times. There is also a handy "Find." option, where we can look for specific entries to translate, or correct. If we prefer the back-end in the original language, we can skip those entries. When we translate WordPress plugins, we don't translate just the front-end, but the back-end as well. Those have two tabs so we can enter the respective translations. Some entries will have a different singular and plural form. If we find any HTML tags or PHP code, such as. We make sure to translate each entry exactly as it is, including the punctuation. but we can always add something to the dictionary, in case it's right and just not recognized. Poedit also features an automatic spell checking option as we type. To get unlimited suggestions, we need to upgrade to Poedit Pro, for 20$, which is probably not worth if we only want to translate one or two plugins. Unfortunately, the online suggestions are limited to 10 every time we start the program. This can speed up the translation process considerably. By pressing Ctrl+Enter, we submit the translation and move to the next one in line.ĭepending on the language, Poedit will offer popular translation options, which we can quickly add with ctrl+1, ctrl+2, etc. We won't need to take our hands off the keyboard to click on the next source to translate. More complex plugins can very well have thousands of lines. Simple as it is, the plugin of the example has more lines to translate than the year has days. We just select the source text and type the translation. Translating WordPress plugins with Poedit is easy. and select the proper language we will translate the particular po file. We also make sure that the "Automatically compile MO file when saving" option is checked. and fill in our information as a translator. First thing we do, we go to File -> Preferences
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |