• Resolved f.lindenberg

    (@flindenberg)


    Hi,

    I’m running into problems translating the theme. I’ve successfully translated most strings using my de_DE.po file.

    However, the placeholders in the contact form in front-page.php appear to be hardcoded (“Your Name”, “Your Email:” etc.)

    <input type="text" name="myname" placeholder="Your Name" class="form-control input-box" value="<?php if(isset($_POST['myname'])) echo esc_attr($_POST['myname']);?>">

    How can I translate these strings, too? Do I have to copy the entire front-page.php file into my child theme and then insert appropriate gettext calls __()?

    Your help is highly appreciated.
    Cheers,
    Fabian

Viewing 9 replies - 1 through 9 (of 9 total)
  • Alexandra

    (@alexandrastan001)

    Hello,

    We have read your request and someone will answer your question as soon as possible.
    Thank you for your patience!

    Best regards,
    Alexandra

    Thread Starter f.lindenberg

    (@flindenberg)

    Thanks, looking forward to your answer.

    Hi,

    Unfortunately right now that is not possible, but adding this is on our list for bug fixes for the next updates.

    Regards,
    Rodica

    Thread Starter f.lindenberg

    (@flindenberg)

    Hi codeinwp,

    thanks for your answer. I’m looking forward to the next update.

    For now, I’ve copied front-page.php into my child theme and replaced placeholder="Your Name" with placeholder="<?php echo __('Your Name','zerif-lite');?>".

    Then, I was able to translate this string. I did the same with the other strings.

    Please consider to adopt this for your next update.

    Cheers,
    Fabian

    Alexandra

    (@alexandrastan001)

    Thank you for your feedback! We will consider this for our future updates.

    Best regards,
    Alexandra

    Hello,
    I’m in the same situation i’m trying to translate Contact Form using Polylang.

    I’ve tried f.lindenberg sugestion but not exactly since i’m not familiar with child themes instead i changed hardcoded in the test enviroment the recomended line from :

    <input required="required" type="text" name="myname" placeholder="Your Name" class="form-control input-box" value="<?php if(isset($_POST['myname'])) echo esc_attr($_POST['myname']);?>">

    in to :

    <input required="required" type="text" name="myname" placeholder="<?php echo __('Your Name','zerif-lite');?>" class="form-control input-box" value="<?php if(isset($_POST['myname'])) echo esc_attr($_POST['myname']);?>">

    but i cannot see any relevant or new field in the string translations fields of polylang plugin in order to translate it.

    Any ideas?

    Alexandra

    (@alexandrastan001)

    Hi,

    Unfortunately the theme doesn’t support this customisation and as much as I would love to help with some custom code, this is beyond the support offered for the free products, which consist in bug fixing and theme documentation.

    Best regards,

    Alexandra

    This means that if i buy this theme i would have the ability to make such special requests which will be fullfiled ?
    thank you

    Thread Starter f.lindenberg

    (@flindenberg)

    Hi ibiselgreco,

    I’m using POedit to customize the string translations. I was able to translate the new strings and upload the updated .po and .mo files. Give it a try!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Localization contact form’ is closed to new replies.