]> git.mxchange.org Git - friendica.git/commitdiff
Translation function added
authorMichael <heluecht@pirati.ca>
Thu, 23 Jul 2020 06:32:31 +0000 (06:32 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 23 Jul 2020 06:32:31 +0000 (06:32 +0000)
mod/lostpass.php
mod/network.php
src/Module/Admin/Addons/Index.php
src/Module/Admin/Site.php
src/Module/Admin/Themes/Index.php

index 036a308df5cad1a2303730d3627b4457d11c3144..01e0006e9533a42ed993e3e146000e311c4d0b7c 100644 (file)
@@ -152,7 +152,7 @@ function lostpass_generate_password($user)
                        '$newpass' => $new_password,
                ]);
 
-               info("Your password has been reset.");
+               info(DI::l10n()->t("Your password has been reset."));
 
                $sitename = DI::config()->get('config', 'sitename');
                $preamble = Strings::deindent(DI::l10n()->t('
index 1aa8046db1dac105d954c8e0f5431e159d6dfb77..a3eb169839427274879ab9cdb1a71745ccec55a9 100644 (file)
@@ -305,7 +305,7 @@ function network_content(App $a, $update = 0, $parent = 0)
        }
 
        if ($o === '') {
-               notice("No items found");
+               notice(DI::l10n()->t("No items found"));
        }
 
        return $o;
index d52085389da6aa547b340f27b1372777d6bf3e94..1636d6cc69ce5e302ede62411b912c8b0ec2978c 100644 (file)
@@ -39,7 +39,7 @@ class Index extends BaseAdmin
                        switch ($_GET['action']) {
                                case 'reload':
                                        Addon::reload();
-                                       info('Addons reloaded');
+                                       info(DI::l10n()->t('Addons reloaded'));
                                        break;
 
                                case 'toggle' :
index c4b320e72d79b6dfec72c2722c5c380e61e3441e..290d92d13900d4ea260e5cf8e51dfb252e5121ca 100644 (file)
@@ -122,7 +122,7 @@ class Site extends BaseAdmin
                        }
                        DBA::close($usersStmt);
 
-                       info("Relocation started. Could take a while to complete.");
+                       info(DI::l10n()->t("Relocation started. Could take a while to complete."));
 
                        DI::baseUrl()->redirect('admin/site');
                }
index 78d27dfa0b328dd1d15fd028290f0e7057c680d2..9993f1f1171cfd9cba049dc0ad77615226875368 100644 (file)
@@ -48,7 +48,7 @@ class Index extends BaseAdmin
                                        }
                                        Theme::setAllowedList($allowed_themes);
 
-                                       info('Themes reloaded');
+                                       info(DI::l10n()->t('Themes reloaded'));
                                        break;
 
                                case 'toggle' :