(Created page with "{{Documentation|scwShared=true}} This module allows templates and modules to be easily translated as part of the multilingual templates and modules project. Instead of storing English text in a module or a template, Translate module allows modules to be designed language-neutral, and store multilingual text in the <code>/i18n.json</code> subpage. This way your module or template will use those translated strings (messages), or if the message has not yet been translated,...") |
m (1 revision imported) |
(No difference)
|
Latest revision as of 17:27, 28 March 2024
{{Documentation}}
/{{No documentation}}
to the calling template's or parent's module documentation.Function list |
---|
L 23 — guessDataset L 38 — load L 64 — formatMessage L 90 — methodtable.format L 108 — methodtable.formatInLanguage L 123 — Translate.doc L 135 — Translate.getTemplateData L 231 — methodtable.translate L 241 — multilingualIfActive L 272 — Translate.new |
This module allows templates and modules to be easily translated as part of the multilingual templates and modules project. Instead of storing English text in a module or a template, Translate module allows modules to be designed language-neutral, and store multilingual text in the /i18n.json
subpage. This way your module or template will use those translated strings (messages), or if the message has not yet been translated, will fallback to English. When someone updates the translation table, your page will automatically update (might take some time, or you can purge it), but no change in the template or module is needed on any of the wikis. This process is very similar to MediaWiki's localisation, and supports all standard localization conventions such as {{PLURAL|...}}
and other parameters.
See also
- Module:TNT on Wikipedia