From 8bfd506051ac31c8cebf9ab8d675db16d587818f Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Wed, 18 Jun 2014 21:18:50 +0200 Subject: [PATCH] make translation of addons work again --- include/pgettext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pgettext.php b/include/pgettext.php index 23430fc77d..4f8db43d47 100644 --- a/include/pgettext.php +++ b/include/pgettext.php @@ -100,6 +100,7 @@ if(! function_exists('load_translation_table')) { function load_translation_table($lang) { global $a; + $a->strings = array(); // load enabled plugins strings $plugins = q("SELECT name FROM addon WHERE installed=1;"); if ($plugins!==false) { @@ -111,7 +112,6 @@ function load_translation_table($lang) { } } - $a->strings = array(); if(file_exists("view/$lang/strings.php")) { include("view/$lang/strings.php"); }