切換菜單
切換個人選單
尚未登入
如果您进行任何编辑,您的IP地址会公开展示。

模組:Translate/doc

出自星際公民中文百科

此頁面為 Module:Translate 的說明文件

Module:Translate requires Module:I18n.
Module:Translate requires Module:LibraryUtil.
Module:Translate requires Strict.
Module:Translate is required by Module:Vehicle.
Module:Translate is required by Module:VehicleHardpoint.

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

Cookies 幫助我們給予服務內容。依您有使用我們的服務,代表您同意我們使用 cookies。