The easiest way to manage translations, whether to edit or create new translations, is to use the Loco Translate plugin .
The Loco Translate plugin allows you to edit PO
and POT
files through your browser. These files are the files used for localizing translations of WordPress plugins and themes.
What is the location?
Location describes the subsequent process of translating a theme
internationalized. Location is abbreviated as l10n
(because
there are 10 letters between l
and n
.) #
About the Portable Object Template (POT) files
This file contains the% original% (in English) in your theme. Here is an example of input from strings
:
#: theme-name.php:123
msgid "Page Title"
msgstr ""
The first line is a comment that is usually the sequence number of the file and line. The POT
line is the original string and msgid
is the section where the translation comes in.
However, to translate text through msgstr
is not as simple as in the plugin I mentioned above, it is not enough just to translate the file .POT
of the theme, update and send the file:
#: theme-name.php:123
msgid "Page Title"
msgstr "Título da Página"
There is a process to be done as explained here in WordPress .
To find out more about this, visit its documentation pages:
Translate WordPress - Gettext
WordPress function - Localization