Help:Extension:Translate/Configuration/zh

MediaWiki语言扩展包提供了配置翻译扩展所需的全部代码和安装步骤；本页会详细讲解可用的配置选项，以防安装介绍和要求没有帮到你.



示例配置
前往MediaWiki目录的 进行配置.



用户权限
翻译扩展会引入以下用户权限：



-{zh-hans:配置; zh-hant:組態;}--{zh-hans:变量; zh-hant:變數;}-
为方便于你，下面文档拷贝自. 配置选项会随着时间而改变，所以如果有疑问，您Translate.php的中的是最好的记录之一. 此份拷贝记录于2016-04-21.



Message group configuration
Following configuration variable names have been renamed:



The old variables will be supported for MLEB 2021.07 release but removed in the MLEB 2021.10 release.

故障排除


翻譯頁是空白的或出現在錯誤'未平衡的 標籤'
Provided that the closing tag exists, the source page is too big. This starts happening with some translations if the source page size is near 50 kilobytes. Make the page shorter or increase  by setting ini_set( 'pcre.backtrack_limit', 400000 ); in LocalSettings.php or pcre.backtrack_limit=400000 in your PHP configuration (php.ini).

In TUX mode (the new UI) no messages are shown
If you have overridden, make sure task   is not excluded from it.



工具未在Special:Translate中载入
If you see something like this with endless "Loading messages...", the is broken: set   or lower until it works.

If that's not enough, have you remembered to install and enable ?

Saving translation fails with Unknown error: "tpt-unknown-page"
This happens when page has been marked for translation, but the background job has not yet been processed. In this case you can run job queue manually, or even better, setup continuous job running as described in. If that doesn't solve the issue, try running php extensions/Translate/scripts/createMessageIndex.php.