DocumentationConfiguring feesWPML and translations

WPML and translations

Two things get translated: what the customer sees — the fee title, and on a multi-currency store the fixed amount — and what you see, which is the settings screen. WPML handles the first; the second ships with the plugin.

Free and ProUpdated for 3.0.0

Fee titles with WPML

Every time the fee settings are saved, the title and the fixed amount of each rule are registered with WPML String Translation under the woocommerce-pay-for-payment text domain. Go to WPML → String Translation, filter by that domain, and translate them. The customer then sees the title in their language at checkout, on the order and in the email.

The fixed amount is registered too so that a store which shows a different figure per language — a rounded amount in a second currency, say — can do so. Most stores leave it untranslated. WCML’s currency conversion is separate and automatic; see multi-currency.

String names

StringName in String Translation
First rule’s title{gateway id} - item title
First rule’s fixed amount{gateway id} - charges fixed
Second and later rules (Pro){gateway id} - tier {n} - item title, {gateway id} - tier {n} - charges fixed

The first rule keeps the names version 2 used, so translations made years ago carry over unchanged. Placeholders inside a title ([FIXED_AMOUNT] and the rest) are filled in after translation, so keep them in the translated string.

The admin’s languages

The settings screen, the notices and the checkout strings ship translated in eight languages besides English: Czech, German, Spanish, Italian, Dutch, Belgian Dutch, Slovak and Turkish. WordPress picks the one matching the site or user language; nothing to switch on.

Czech is my own. The other seven follow the version-2 catalogues and were not reviewed by native speakers for 3.0.

Fixing a translation

Translations of the free plugin live on translate.wordpress.org, where anyone with a wordpress.org account can suggest a correction and a language editor approves it. A corrected string reaches your store with the next language-pack update. If you would rather not wait, Loco Translate or WPML can override any string locally.

A string you cannot find in String Translation? Tell me the method and the language and I will look.

Get in touch