make translation of addons work again
This commit is contained in:
parent
83ac685deb
commit
8bfd506051
1 changed files with 1 additions and 1 deletions
|
@ -100,6 +100,7 @@ if(! function_exists('load_translation_table')) {
|
||||||
function load_translation_table($lang) {
|
function load_translation_table($lang) {
|
||||||
global $a;
|
global $a;
|
||||||
|
|
||||||
|
$a->strings = array();
|
||||||
// load enabled plugins strings
|
// load enabled plugins strings
|
||||||
$plugins = q("SELECT name FROM addon WHERE installed=1;");
|
$plugins = q("SELECT name FROM addon WHERE installed=1;");
|
||||||
if ($plugins!==false) {
|
if ($plugins!==false) {
|
||||||
|
@ -111,7 +112,6 @@ function load_translation_table($lang) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$a->strings = array();
|
|
||||||
if(file_exists("view/$lang/strings.php")) {
|
if(file_exists("view/$lang/strings.php")) {
|
||||||
include("view/$lang/strings.php");
|
include("view/$lang/strings.php");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue