• Resolved clancel

    (@clancel)


    Hi. I wish to translate custom defined options using a template. I’m currently using Polylang but the template is only translating text and fields. How can I also make custom defined options to get translated like the rest?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @clancel

    Could you give me a bit more information?
    What type of field are you using? And what part exactly are you trying to translate?

    Cheers, Jory

    Thread Starter clancel

    (@clancel)

    Hi Jory. I have a template in English that I wish to translate. English template is as follows,

    Hi {@first_name}

    <br>Card Type: {@payment_record.active_card}
    <br>Lesson Type: {@payment_record.lesson_type}

    The template uses extended User as a reference.

    I’ve used the shortcode for this template (template=”Payments) to embed into a page and it’s displaying in the original English version but not in another language, it only translates and displays the {@first_name}, Card Type and Lesson Type fields. I would like to be able to display the other two as well. Can you help me with this? Thank you.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @clancel ,

    You’ll have to create a translation of the Pods template. You can enable translations for templates within Polylang settings > Custom post types and taxonomies.

    Cheers, Jory

    Thread Starter clancel

    (@clancel)

    I already enabled it but it’s not working.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @clancel

    Translating templates works the same as translating Posts. You’ll have to create a template for each language. Did you do this?

    Cheers, Jory

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Translating Custom Defined Options’ is closed to new replies.