Strings not detected by Polylang.

Asked

Viewed 130 times

0

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 Strings list to translate, it does not appear. It would be a placeholder written "Enter Keywords". How should I proceed?

1 answer

0

Hello, dear "user49915" :)

Polylang strings are meant to translate what themes and plugins save into the database, you know, into 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 at the translation files (.po) of the theme and plugins.

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

Usually, these files get located in the 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 file . po from the theme /Languages/ folder or plugin and paste there.

To edit a file. po 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 logic of the folder paths I mentioned.

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

https://codex.wordpress.org/I18n_for_WordPress_Developers

Browser other questions tagged

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