Strings not detected by Polylang.

0

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

    
asked by anonymous 01.08.2018 / 17:29

1 answer

0

Hello, dear "user49915":)

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

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

( link )

These files are usually located in folders:

1. Themes

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 .po file from the / languages / folder of the theme or plugin and paste it there.

To edit a .po file you can use:

When you save the file, these tools have created a binary file (.mo) that will finally be read by WordPress, following the path of the folder paths I mentioned.

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

link

    
02.08.2018 / 15:26