mirror of
https://github.com/friendica/friendica
synced 2025-04-25 16:30:10 +00:00
Change plugin to addon
change the use of plugin to addon where appropriate.
This commit is contained in:
parent
3bad83f24e
commit
b86b04a81a
25 changed files with 164 additions and 164 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue