Tell me where to dig. Maybe there is the possibility of certain phrases in the Word Press through the functional pkhp translate. In general, the problem is that I can’t figure out how to translate some phrases on the Word Press website. Eg day or See more from the company

Here's an example of a problem page.

I use Loco Translate and
Polylang

    2 answers 2

    They do not seem to be added to the translation file. Therefore, you need to edit only through the code ...

    1. Search for the necessary phrase for the entire project - translate.
    2. We'll have to modify the translation yourself. You can read here - https://ru.wplang.org/wordpress-perevod-temy-plaginy/
    • Well See more from the company goes through Contextual Related Posts plugin. But how to add a translation for en - Denis Los
    • thanks now read - Denis Elk

    Maybe there is the possibility of certain phrases in the Word Press through the functional pkhp translate

    Translation of lines in the VP is done with pom. gettext .

    Tell me where to dig.

    https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/

    In short:

    1. Code strings must be prepared before translation. Those. designed as functions starting with _ (see the link). The original language is ang and no other.

    2. A langpack should be created (* .mo and * .po files) which should
      2.1 have file names in accordance with the text domain (see the link) and language index
      2.2 is located in the system directory ( /wp-content/languages/themes/ for themes /wp-content/languages/plugins/ for plugins), or in the directory specified in the load_plugin_textdomain function