How can I translate the notices into German and Italian?

Forums Order Minimum/Maximum Amount for WooCommerce How can I translate the notices into German and Italian?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #92910
    Christoph Taschler
    Participant

    Hi Tom,
    I want to translate the message
    “You must have an order with a %s of %%amount%% for %%product_title%% to place your order, your current product total is %%total%%.”

    in German and Italian, but I can’t understand what I have to do with the shortcodes.

    The German translation is
    “Sie müssen mindestens %%amount%% für eine Lieferung bestellen. Ihr momentaner Auftrag ist %%total%%, bitte fügen Sie weitere Artikel hinzu.”

    Many thanks
    Chris

    #92911
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Christoph,

    Generally you did it correctly, i.e. you should leave %%amount%% and other placeholders as they are. You did however skip %s in your translation – you should leave it there (it will be automatically replaced with either “minimum” or “maximum”).

    Please note that this translation will only be used as a default value for the messages. That is, as soon as you will “Save changes” in our “Messages” section, the plugin will use whatever is set in “Messages”. So if you want to translate it for a multi-language site (WPML or Polylang), I would suggest using our [alg_wc_oma_translate] shortcode. All you need to do is set something like this directly in our “Messages” settings section:

    [alg_wc_oma_translate lang="DE"]Sie müssen mindestens %amount% für eine Lieferung bestellen. Ihr momentaner Auftrag ist %total%, bitte fügen Sie weitere Artikel hinzu.[/alg_wc_oma_translate][alg_wc_oma_translate lang="IT"]TODO: Translation in Italian[/alg_wc_oma_translate][alg_wc_oma_translate not_lang="DE,IT"]You must have an order with a minimum of %amount% for %product_title% to place your order, your current product total is %total%.[/alg_wc_oma_translate]

    Hope that helps. Please let me know if you have any questions.

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