Contents
How to translate a string in a PO file?
For example, in the French PO file you might have a translation of a string as follows: The msgid line contains the text actually in the code, and the msgstr line contains the translated text. If the msgstr is empty, then on the site the source text will be used instead.
Do you need a Google account to translate a PO file?
Obviously you need a Google account. This tool gives you a simple side by side workflow where you can see the original and edit the translation, but more importantly: Google will make a best effort attempt to translate your file for you! Let’s take a wpjobboard po file as an example and upload this: You select the orange upload option:
How are po files used to customize text?
You can even use po files to customize the displayed text without changing the code, by for example, creating an adapted file such as en-my_company.po. The core of each PO file is made of pairs of the source text (that which is found in the code) and target text (the translated text).
What’s the difference between a Po and a pot file?
These use the GNU Gettext format. .pot files are templates that contain source text but no translations, while .po files also contain the translations to a particular language. PO files are the files that contain the actual translations.
Do you need to import a PO file?
Normally distributed as part of a translation package (each translation package may contain several .po files), a .po file may need to be imported after off-line editing in a Gettext translation editor. Importing an individual .po file may be a lengthy process.
Is there a way to translate a pot file?
The translator’s tool will be able to merge the texts from the .pot file with the existing translations (the .po file). It will mark new or modified texts as needing translation and will leave existing translation intact. Since PO / POT files are so popular, there are several excellent tools for translating them.