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