Strings not detected by Polylang.

On a wordpress site to make it bilingual, I'm using the Polylang plugin, however I need to translate the search part and I can't. This page is not a page listed in wordpress and in the list of Strings to translate, it does not appear. It would be a placeholder written "Enter keywords". How should I proceed?

Author: user49915, 2018-08-01

1 answers

Hello, dear "user49915":)

The strings of Polylang, serve to translate what themes and plugins save in the database, you know, in their configuration screen...

If the placeholder is not in this list, it will be in the php files. To translate these contents, you should look in the translation files (.po) theme and plugins.

(https://polylang.pro/doc/strings-translation/)

These files are usually located in the folders:

1.Items

wp-content/languages/themes/{nome-do-tema}/{nome-do-tema}-{idioma}.po

2.Plugins

wp-content/languages/plugins/{nome-do-plugin}/{nome-do-plugin}-{idioma}.po

If the file does not exist, you can copy the file .po the /languages / folder of the theme or plugin and paste there.

To edit a file .po you can use:

When you save the file, these tools created a binary file (. mo) which will finally be read by WordPress, following the logic of the paths of the folders I mentioned.

If you feel curious, the link below has the way that developers do to internationalize their themes or plugins:

Https://codex.wordpress.org/I18n_for_WordPress_Developers

 0
Author: Leonel Costa Braz, 2018-08-02 13:26:12