]> git.mxchange.org Git - friendica.git/commitdiff
make translation of addons work again
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 18 Jun 2014 19:18:50 +0000 (21:18 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 18 Jun 2014 19:18:50 +0000 (21:18 +0200)
include/pgettext.php

index 23430fc77dc272b65274542d239debf0c4e5ca06..4f8db43d471b12ea828004d433194fcba90e99a5 100644 (file)
@@ -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");
        }