1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-02 20:39:15 +00:00

config: remove ENABLE_TRANSLATIONS

This commit is contained in:
Andrew Dolgov
2011-03-18 19:25:06 +03:00
parent 565ca5653c
commit 7b26a148b0
7 changed files with 49 additions and 74 deletions

View File

@@ -3,7 +3,7 @@
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);
@@ -28,17 +28,12 @@ function __(msg) {
}
<?php
$l10n = _get_reader();
if (ENABLE_TRANSLATIONS) {
for ($i = 0; $i < $l10n->total; $i++) {
$orig = $l10n->get_original_string($i);
$translation = __($orig);
$l10n = _get_reader();
for ($i = 0; $i < $l10n->total; $i++) {
$orig = $l10n->get_original_string($i);
$translation = __($orig);
print T_js_decl($orig, $translation);
}
print T_js_decl($orig, $translation);
}
?>