checktrans.php
来自「php 开发的内容管理系统」· PHP 代码 · 共 31 行
PHP
31 行
<?php/** * @package MediaWiki * @subpackage Maintenance * Check to see if all messages have been translated into the selected language. * To run this script, you must have a working installation, and it checks the * selected language of that installation. *//** */require_once('commandLine.inc');if ( 'en' == $wgLanguageCode ) { print "Current selected language is English. Cannot check translations.\n"; exit();}$count = $total = 0;$msgarray = 'wgAllMessages' . ucfirst( $wgLanguageCode );foreach ( $wgAllMessagesEn as $code => $msg ) { ++$total; if ( ! array_key_exists( $code, $$msgarray ) ) { print "'{$code}' => \"$msg\",\n"; ++$count; }}print "{$count} messages of {$total} not translated.\n";?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?