• Hi,

    I am new to polylang and want to translate strings from PmPro but none of the strings are added to the string translation page. I don’t know what I did wrong. I added

    pll_register_string

    Allows plugins to add their own strings in the “strings translation” panel. The function must be called on admin side (the functions.php file is OK for themes).
    Usage:

    pll_register_string($name, $string, $multiline);
    ‘$name’ => (required) name provided for sorting convenience (ex: ‘myplugin’)
    ‘$string’ => (required) the string to translate
    ‘$multiline’ => (optional) if set to true, the translation text field will be multiline, defaults to false

    to function.php but it doesn’t show up

    https://www.ads-software.com/plugins/polylang/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    What are these strings you want to translate? Static strings already provided by your theme or user defined strings you entered in theme options?

    Thread Starter 07frieddy

    (@07frieddy)

    Thanks for you reply chouby! I want to use a WPML compatible plugin, namely Paid Memberships Pro. Since your website said that you offer WPML compatibility I thought all the plugin strings are added when I install the plugin. But that does not happen.
    I am wondering how I can translate the plugin in polylang.

    Maybe you can help me to understand how that is done.

    Frieddy

    Plugin Author Chouby

    (@chouby)

    Polylang does not offer to translate static strings of plugins and themes. You can use Codestyling Localization to do this.

    Thread Starter 07frieddy

    (@07frieddy)

    Thanks Chouby, I’ll check that out!

    Thread Starter 07frieddy

    (@07frieddy)

    ok I checked it out but I can not find what I am looking for. I am looking for a plugin that makes a site multilingual, so for examples pulls the localizations of the individual plugins when I open the site in the specific language. I thought that your plugin could do that. Any idea?

    Plugin Author Chouby

    (@chouby)

    Yes Polylang is a multilingual plugin. You assign a language to a post. And then when this post is displayed on frontend, Polylang will load the right language for your theme and your plugins.

    But Polylang does not translate anything. If you plugin is already translated, that’s fine, but otherwise, you will have to translate it yourself with Codestyling localization

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘plugin strings not added’ is closed to new replies.