Change / Edit word already translated in WordPress

3

I'm setting up a WooCommerce (WordPress) virtual store and recently installed a pt_BR translation. Everything is translated correctly, except the term:

  

QUICK VIEW

that is translated as - VISUALIZA RÁPIDA and the correct one would be - VISUALIZAÇÃO RÁPIDA , or just: VISUALIZAR .

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

    
asked by anonymous 25.10.2015 / 08:13

1 answer

4

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

    
25.10.2015 / 14:00