PHP 代码:
require_once("lib/gettext/streams.php");
require_once("lib/gettext/gettext.php");
$locale = "zh_CN";
$mofile = "../plog-translations/" . $locale . ".mo";
// If the mo file does not exist or is not readable, or if the locale is
// en_US, do not load the mo.
if ( is_readable($mofile) && ($locale != 'en_US') ) {
$input = new FileReader($mofile);
} else {
$input = false;
}
$l10n = new gettext_reader($input);
// Return a translated string.
function plog_tr($text) {
global $l10n;
return $l10n->translate($text);
}
應該怎麽修改
PHP 代码:
$mofile = "../plog-translations/" . $locale . ".mo";











這段 PHP 代碼該如何修改呢?














平板模式