3 Star 2 Fork 0

Gitee 极速下载 / Tiny Tiny RSS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/torne/Tiny-Tiny-RSS
克隆/下载
localized_js.php 811 Bytes
一键复制 编辑 原始数据 按行查看 历史
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
define('DISABLE_SESSIONS', true);
require "functions.php";
header("Content-Type: text/plain; charset=UTF-8");
function T_js_decl($s1, $s2) {
if ($s1 && $s2) {
$s1 = preg_replace("/\n/", "", $s1);
$s2 = preg_replace("/\n/", "", $s2);
$s1 = preg_replace("/\"/", "\\\"", $s1);
$s2 = preg_replace("/\"/", "\\\"", $s2);
return "T_messages[\"$s1\"] = \"$s2\";\n";
}
}
?>
var T_messages = new Object();
function __(msg) {
if (T_messages[msg]) {
return T_messages[msg];
} else {
return msg;
}
}
<?php
if (ENABLE_TRANSLATIONS) {
$l10n = _get_reader();
for ($i = 0; $i < $l10n->total; $i++) {
$orig = $l10n->get_original_string($i);
$translation = __($orig);
print T_js_decl($orig, $translation);
}
}
?>
PHP
1
https://gitee.com/mirrors/tiny-tiny-rss.git
git@gitee.com:mirrors/tiny-tiny-rss.git
mirrors
tiny-tiny-rss
Tiny Tiny RSS
master

搜索帮助