
Languages
The five bundled languages, a note on accent-folding in answer matching, and how to add a new language.
Bundled out of the box: English (en-GB), German (de-DE), Spanish (es-ES), Italian (it-IT), and French (fr-FR) — all 239 visible strings translated in each, including the spoken number words used for spelled-out answers.
One thing worth knowing: answer matching folds case and collapses whitespace, but does not fold accents. German's fünf/zwölf and Spanish's dieciséis (and French zéro) carry diacritics as their correctly spelled forms; a visitor who types the word without the accent would be rejected even though a human would call that a correct answer. This wasn't a concern in English, which has no accented number words at all — Italian is also unaffected, since none of its number words 0–20 use accents.
To add another language yourself: copy language/en-GB/plg_captcha_simplemathcaptcha.ini, keep every key exactly as-is, translate only the values, and register the new language tag in simplemathcaptcha.xml's <languages> block. Three groups need particular care:
PLG_CAPTCHA_SIMPLEMATHCAPTCHA_NUMBER_0…_20— used both to print a spelled-out
operand and to accept one typed as an answer, so they must match exactly what a speaker of that language would actually type.
PLG_CAPTCHA_SIMPLEMATHCAPTCHA_OPERATOR_*— spoken aloud in the screen-reader question.PLG_CAPTCHA_SIMPLEMATHCAPTCHA_QUESTION— the question template itself, with%1$s
(first operand), %2$s (operator), %3$s (second operand). Reorder the placeholders freely to match your language's natural word order.
Right-to-left languages are supported structurally; the equation itself always stays left-to-right, since that's how arithmetic is written even inside RTL scripts.