Top WooCommerce & WordPress Plugins › Forums › Order Minimum/Maximum Amount for WooCommerce › How can I translate the notices into German and Italian?
- Support forum for the Order Minimum/Maximum Amount for WooCommerce.
- This topic has 1 reply, 2 voices, and was last updated 3 years ago by
Tom Anbinder.
- AuthorPosts
-
November 18, 2020 at 8:51 am #92910
Christoph Taschler
ParticipantHi 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
ChrisNovember 18, 2020 at 10:38 pm #92911Hi 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.
- AuthorPosts
- You must be logged in to reply to this topic.