• Resolved Codeman79

    (@codeman79)


    I try to translate the sections in the customizer to use with Polylang. I cannot find a page structure to translate for the language switcher and I cannot find the strings to translate in polylang app as described in the how to. How can I use this main page in various languages?

    Thx Cody

Viewing 5 replies - 1 through 5 (of 5 total)
  • Ion Rutz

    (@ionrutz_machothemes)

    Hello Cody,

    Could you please try to generate a .pot file and then use something like POEdit to translate the customizer fields?

    I will start some testing myself and get back to you with more information, please do the same.

    Best regards

    Thread Starter Codeman79

    (@codeman79)

    I did the following:

    I added
    #: sections/section-intro.php:5
    msgid “WELCOME TO PIXOVA LITE”
    msgstr “”

    at the end of the pixova-lite.pot. Not sure whether the msgid is correct, though.
    I then went ahead and downloaded that file from server to edit it with POEdit. I translated this sentence to German and saved it as de.po and de.mo. Then uploaded both. WordPress is set to English.
    When I then load the sample page like mysite/en/sample-page/ and use the language switcher (provided through Polylang) to switch to mysite/de/sample-page-2/, nothing is translated.

    I started out just with that on piece of the sections to keep it simple. Is my reference false? Do I have to use something different than “WELCOME TO PIXOVA LITE”?

    Best Regards
    Cody

    Ion Rutz

    (@ionrutz_machothemes)

    Hello Codeman,

    I suspect that you need to generate the .pot file, not modify it manually.

    I will do my fare share of investigation and get back to you in the shortest time.

    Best regards

    Thread Starter Codeman79

    (@codeman79)

    Hi Ion,

    I solved the problem with a different approach.
    .pot wouldn’t work, since the fields in question where individually edited and therefore you need a flexible translation method.

    I now used qTranslate and their short code in the fields.
    e.g.

    [:en]english[:de]german[:]

    Thx
    Cody

    Ion Rutz

    (@ionrutz_machothemes)

    Hello,

    This is great news and the way forward.

    Best regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Translation of sections’ is closed to new replies.