Unable to localise the input field label

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #146720
    digicate
    Participant

    I am using WPML to add translations to all plugins and this is no exception. I see the  translation in the backend in string translations but it does not show up on the front end. Also error messages are the only ones that do not show up on string translations even after multiple localisation scans.

    #147393
    Moshtafizur
    Participant

    Hi there,

    Thank you for reaching out.

    Yes, you can make the field label and placeholder multilingual using WPML. Here’s how you can achieve this:

    For multi-language support in your VAT field, you can use shortcodes to display the text in different languages. For example:

    To display the message in English, use:

    [alg_wc_eu_vat_translate lang=”EN”]Your English message here[/alg_wc_eu_vat_translate]

    For other languages, replace “EN” with the respective language code.

    Additionally, you can set a fallback message for languages that aren’t specifically defined:

    [alg_wc_eu_vat_translate not_lang=” “]Fallback message here[/alg_wc_eu_vat_translate]

    This will ensure that the VAT field label and placeholder are shown in the correct language based on the visitor’s selection.

    If you have any further questions or need additional assistance, please feel free to ask.

    Best regards.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.