Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author vark

    (@vark)

    Hi,
    All messaging can be translated using standard WordPress mo/po files, *except* the custom message – this is by definition a custom message sent on the fly, with no built-in ability to translate. Possibly one of the QTranslate plugin variants might work, YMMV.
    Best,
    Mark

    Thread Starter seaus

    (@seaus)

    we can not use qtranslate.
    We use WPML and do have all the plugins.

    Is there anything we can to define that custom message as a string so that WPML will see it?

    Plugin Author vark

    (@vark)

    Sorry, not to my knowledge.

    Thread Starter seaus

    (@seaus)

    ok

    can I change the DEFAULT (not custom) somewhere? in php?

    Thread Starter seaus

    (@seaus)

    Also, when we use the CUSTOM message and person tries to check out – message comes up twice

    Plugin Author vark

    (@vark)

    Any message except the custom message can be changed using the regular mo/po translation. Default message is automatically active if there is no custom message present.

    Other than that, if you want to hack the code, look for the function that prints the custom message and put your hack there. Then you can provide a custom message in multiple languages with your custom logic.

    Multiple message production is usually due to a caching plugin or service.

    Thread Starter seaus

    (@seaus)

    ok, where and how do I change the standard message?

    which file should I look for function wise for the custom message>

    Plugin Author vark

    (@vark)

    – standard message is contextually generated word by word, as needed for the situation. So I have no suggestions how to change that for wpml, as it is all programmed for mo/po translation.

    – If you have PHP chops and if you want to hack the custom message output, look at /woo-integration/vtmin-parent-cart-validation.php function vtmin_display_custom_messages() .

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Translating Error Message’ is closed to new replies.