• Resolved leonida85

    (@leonida85)


    Hi all,

    I’m new of WordPress and I’m trying to create my first multilingual site with Polylang.

    I’m using Polylang on a wordpress theme called OnePress Theme.

    I have a problem with a field the Newsletter one that is a theme option inside the feeder of the theme. The problem is that the field does not appear in the “Strings Translations” of Polylang and so I’m not able to translate it.

    Is there a method to manually import a field in the Strings Translations?

    I saw that Polylang have some functions that one can use but I don’t know if I have to use them to solve my problem and, more important, I don’t know how to start.

    Any hints is very appreciated?
    Thank you very much!!!!

    https://wordpress.org/plugins/polylang/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support Chrystl

    (@chrystl)

    Thread Starter leonida85

    (@leonida85)

    yes!!!

    Plugin Support Chrystl

    (@chrystl)

    Did you check if this Newsletter’s field is registered in the wpml-config.xml file? Polylang supports this file.

    Thread Starter leonida85

    (@leonida85)

    I found the file under this folder: polylang\modules.

    It is not immediate for me to find the section in the code. Any hints?

    Thank you very much!!!

    Plugin Support Chrystl

    (@chrystl)

    I found the file under this folder: polylang\modules.

    It’s not this one. You have a wpml-config.xml in your theme folder.

    Thread Starter leonida85

    (@leonida85)

    I found it!!!

    The part regarding newsletter seems this one:

    <key name=”onepress_newsletter_disable”/>

    <key name=”onepress_newsletter_title”/>

    <key name=”onepress_newsletter_mailchimp”/>

    now what should I do?

    Plugin Support Chrystl

    (@chrystl)

    If your issue is with the “MailChimp Action URL” field:
    *test by writing their example, then save your changes,
    *check if this string appears in the Strings translation option.

    If your issue is not with this field, please provide a screenshot to explanation.

    Thread Starter leonida85

    (@leonida85)

    Hi Chrystl,

    first of all thanks for your support!!!

    At the link below you should see a screenshot of my footer.

    The problem is the following:
    – in the translations strings box of Polylang I have not the possibility to directly translate the three field related with the newsletter (the text ‘Join Our Newsletter’, the test inside the field for the e-mail and the subscribe button).
    Instead I have not problem to translate from the strings translations the text of the social network part ‘Follow us on’


    Screenshot

    Plugin Support Chrystl

    (@chrystl)

    You need to use the Loco translate plugin to translate these static strings in your po/mo files.

    Thread Starter leonida85

    (@leonida85)

    With Loco translate I’m able to translate the text ‘Join our newletter’ great!!!

    But I still have problem with the field “Insert your e-mail” and with the “Subscribe button”

    For these fields I have to use another approach?

    Plugin Support Chrystl

    (@chrystl)

    You should be able to translate them with Loco translate since these 2 strings are in the .pot of your theme.

    See, onepress.pot, line 79-85 :

    #: ../footer.php:33
    msgid "Enter your e-mail address"
    msgstr ""
    
    #: ../footer.php:34
    msgid "Subscribe"
    msgstr ""
    Thread Starter leonida85

    (@leonida85)

    I downloaded the onepress.pot file from Loco Translation Management but I don’t find the fields that you show above……

    Thread Starter leonida85

    (@leonida85)

    problem solved!!!
    Thank you again Chrysti!!!

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Strings Translations problem with a field’ is closed to new replies.