The easiest way to manage translations, either to edit or create new translations, is by using the plugin Loco Translate.
The plugin Loco Translate allows you to edit files PO
and POT
through your browser. These files are the files used for localization of translations of Wordpress plugins and themes.
What is the location?
Localization describes the subsequent process of translating a theme
internationalized. Localization is abbreviated as l10n
(because
there are 10 letters between the l
and the n
.) #
About POT (Portable Object Template)
This file contains the strings
originals (in English) in your theme. Here is an example of file entry POT
:
#: 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 line msgid
is the original string and msgstr
is the section where the translation enters.
However to translate a text through the .POT
is not as simple as in the plugin I mentioned above, not just translate the file .POT
theme, update and upload file:
#: theme-name.php:123
msgid "Page Title"
msgstr "Título da Página"
There is a process to be done as it is explained here in this documentation wordpress.
To learn more about this, visit the respective documentation pages:
Translate Wordpress - Gettext
Wordpress Function - Localization
Thank you very much! I used the Loco Translate plugin which is very intuitive and effective.
– Charles Fay