]> git.mxchange.org Git - friendica.git/blobdiff - include/pgettext.php
Merge pull request #4322 from annando/forum-mention
[friendica.git] / include / pgettext.php
index 403d520cc67a2aab4e4c11849c4a353436de8cf5..fa3260cb1a23eabbba418ecd80d6ea4f1d344104 100644 (file)
@@ -94,7 +94,7 @@ function pop_lang() {
 /**
  * load string translation table for alternate language
  *
- * first plugin strings are loaded, then globals
+ * first addon strings are loaded, then globals
  *
  * @param string $lang language code to load
  */
@@ -102,9 +102,9 @@ function load_translation_table($lang) {
        $a = get_app();
 
        $a->strings = [];
-       // load enabled plugins strings
-       $plugins = dba::select('addon', ['name'], ['installed' => true]);
-       while ($p = dba::fetch($plugins)) {
+       // load enabled addons strings
+       $addons = dba::select('addon', ['name'], ['installed' => true]);
+       while ($p = dba::fetch($addons)) {
                $name = $p['name'];
                if (file_exists("addon/$name/lang/$lang/strings.php")) {
                        include("addon/$name/lang/$lang/strings.php");