• Resolved thisguyfromthere

    (@thisguyfromthere)


    Hello,

    I am coming to you guys because I have two problems that I can’t seem to solve. I am using translatepress on a website for a client and everything works fine except one thing.
    First there is a form where translatepress can’t seem to translate a reset input type. When I click on it, translatepress allows me to only translate the title attribute so when I click on the translate option, the value of the button is not translated but when I hover on it, it shows me the translated text as an indication :/

    Second, do you know how can I translate native wordpress/php function that follows wordpress language? For example I can’t translate the upload file button.

    Thanks is advance for your answer

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Have you tried to look for the text that’s displayed on the button inside the String list? The Strings List is available under the current language at the top of the translation interface.

    As for the second question, I’m not sure what you mean by the upload file button. Is that referring to the back-end of your site? Is that related to a plugin? If that’s the case, maybe you can translate it using Loco Translate as that can translate .po/.mo files. TranslatePress can only translate front-end strings, so it won’t help with those.

    Best regards,
    Cristian

    Thread Starter thisguyfromthere

    (@thisguyfromthere)

    Hello Christian,

    Thank you very much for your answer. I tried to look on the string list and unfortunately when I click on the string inside it, it always shows me that it is the title attribute. I think it is a compatibility problem with <input type=”reset”> because I tried to change the button to submit and it works when I do so.

    For the second question, I am referring to the file select on the front end.

    Best regards,

    Hello,

    You are right, the type=”reset” is the problem. As of right now, TranslatePress only targets the submit and the button types.

    Thank you for finding this problem. I have created a task regarding this issue and it should be solved in the following update (approximate 2 weeks from now).

    As for the second question, I still don’t understand what you are referring to.
    Is that upload file button related to a plugin? Are you referring to the Browse button from the page you linked?

    Best regards,
    Cristian

    Thread Starter thisguyfromthere

    (@thisguyfromthere)

    Hello,

    Thank you for your answer. I’ll look forward to the update then.

    As for the second question, yes I was referring to the browse button from the page I linked.

    Best regards,
    Nasedra

    Hello Nasedra,

    Thank you for making that clear and I’m sorry for taking this long to finally understand what you actually meant.

    From what I can see, the browse button is added using the <input type=”file”>.

    The problem with this, as contrary to the type=”reset” is that the type=”file” is always shown in the browser’s language. This means that there is no way to translate it.

    For example, on Firefox I see it as Browse, but on Chrome I see it as Choose File.
    If I change Chrome’s language to Spanish, then I’ll see it as: Elegir Archivos.
    The menu opened to choose the file is also translated by the browser.

    Best regards,
    Cristian

    Dragos

    (@dragosvrejiu)

    Hello,

    As more than a week has passed since the last response, we will close this ticket. If the issue in cause still occurs or further help is needed, please open another ticket and we will answer as soon as we can.

    Kind regards,

    How can change [file* your-file filetypes:jpg|jpeg|png|gif|pdf|doc|docx limit:2mb] into Arabic btn name Choose file

    http://prntscr.com/20pmdv4

    • This reply was modified 4 years, 6 months ago by raohimmat.
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Can’t translate reset input type’ is closed to new replies.