From 07d306aa3736aa8a0b46109b15a6c637919c33b1 Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Mon, 22 Jan 2018 09:54:13 -0500 Subject: [PATCH] Finish t() for src Update t() calls in src folder --- src/App.php | 11 ++- src/Content/ContactSelector.php | 53 +++++----- src/Content/Feature.php | 61 ++++++------ src/Content/ForumManager.php | 7 +- src/Content/Nav.php | 85 ++++++++-------- src/Content/OEmbed.php | 7 +- src/Content/Widget.php | 42 ++++---- src/Core/NotificationsManager.php | 35 ++++--- src/Database/DBStructure.php | 21 ++-- src/Model/Contact.php | 57 +++++------ src/Model/Group.php | 21 ++-- src/Model/Mail.php | 5 +- src/Model/Profile.php | 155 +++++++++++++++--------------- src/Model/User.php | 67 +++++++------ src/Module/Login.php | 30 +++--- src/Object/Image.php | 9 +- src/Object/Post.php | 90 ++++++++--------- src/Protocol/OStatus.php | 15 +-- src/Worker/Delivery.php | 5 +- 19 files changed, 392 insertions(+), 384 deletions(-) diff --git a/src/App.php b/src/App.php index 2a134a9c17..7c87130b35 100644 --- a/src/App.php +++ b/src/App.php @@ -1,9 +1,12 @@ $this->get_baseurl(), '$local_user' => local_user(), '$generator' => 'Friendica' . ' ' . FRIENDICA_VERSION, - '$delitem' => t('Delete this item?'), - '$showmore' => t('show more'), - '$showfewer' => t('show fewer'), + '$delitem' => L10n::t('Delete this item?'), + '$showmore' => L10n::t('show more'), + '$showfewer' => L10n::t('show fewer'), '$update_interval' => $interval, '$shortcut_icon' => $shortcut_icon, '$touch_icon' => $touch_icon, diff --git a/src/Content/ContactSelector.php b/src/Content/ContactSelector.php index fcaafb898c..b5122da808 100644 --- a/src/Content/ContactSelector.php +++ b/src/Content/ContactSelector.php @@ -5,6 +5,7 @@ namespace Friendica\Content; use Friendica\Core\Addon; +use Friendica\Core\L10n; use Friendica\Database\DBM; use Friendica\Protocol\Diaspora; use dba; @@ -51,12 +52,12 @@ class ContactSelector $o .= "