Swap/Edit word already translated in Wordpress

Asked

Viewed 2,452 times

4

I am setting up a virtual store Woocommerce (Wordpress) and recently installed a translation pt_BR. It’s all translated correctly, except for the term:

QUICK VIEW

which appears translated as - VISUALIZA RÁPIDA and the right thing would be - VISUALIZAÇÃO RÁPIDA, or just: VISUALIZAR.

How do I edit the translation of that word, or even change the word?

1 answer

4


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

  • 1

    Thank you very much! I used the Loco Translate plugin which is very intuitive and effective.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.