mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 18:45:57 +00:00
localized_js: disable when translations are disabled in config.php
This commit is contained in:
@@ -30,13 +30,16 @@ function __(msg) {
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$l10n = _get_reader();
|
if (ENABLE_TRANSLATIONS) {
|
||||||
|
|
||||||
for ($i = 0; $i < $l10n->total; $i++) {
|
$l10n = _get_reader();
|
||||||
$orig = $l10n->get_original_string($i);
|
|
||||||
$translation = __($orig);
|
|
||||||
|
|
||||||
print T_js_decl($orig, $translation);
|
for ($i = 0; $i < $l10n->total; $i++) {
|
||||||
|
$orig = $l10n->get_original_string($i);
|
||||||
|
$translation = __($orig);
|
||||||
|
|
||||||
|
print T_js_decl($orig, $translation);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user