]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Group.php
Merge pull request #4376 from MrPetovan/task/3878-move-include-like-to-src
[friendica.git] / src / Model / Group.php
index a5cd57d47d6c9c0b8d09b7238f13556d9427de98..9e472a7ade5f378a34f189dfff997cfb23f72437 100644 (file)
@@ -1,11 +1,10 @@
 <?php
-
 /**
  * @file src/Model/Group.php
  */
-
 namespace Friendica\Model;
 
+use Friendica\Core\L10n;
 use Friendica\BaseObject;
 use Friendica\Database\DBM;
 use dba;
@@ -42,7 +41,7 @@ class Group extends BaseObject
                                $group = dba::selectFirst('group', ['deleted'], ['id' => $gid]);
                                if (DBM::is_result($group) && $group['deleted']) {
                                        dba::update('group', ['deleted' => 0], ['gid' => $gid]);
-                                       notice(t('A deleted group with this name was revived. Existing item permissions <strong>may</strong> apply to this group and any future members. If this is not what you intended, please create another group with a different name.') . EOL);
+                                       notice(L10n::t('A deleted group with this name was revived. Existing item permissions <strong>may</strong> apply to this group and any future members. If this is not what you intended, please create another group with a different name.') . EOL);
                                }
                                return true;
                        }
@@ -327,7 +326,7 @@ class Group extends BaseObject
                logger('groups: ' . print_r($display_groups, true));
 
                if ($label == '') {
-                       $label = t('Default privacy group for new contacts');
+                       $label = L10n::t('Default privacy group for new contacts');
                }
 
                $o = replace_macros(get_markup_template('group_selection.tpl'), [
@@ -360,7 +359,7 @@ class Group extends BaseObject
 
                $display_groups = [
                        [
-                               'text' => t('Everybody'),
+                               'text' => L10n::t('Everybody'),
                                'id' => 0,
                                'selected' => (($group_id == 0) ? 'group-selected' : ''),
                                'href' => $every,
@@ -380,7 +379,7 @@ class Group extends BaseObject
                        if ($editmode == 'full') {
                                $groupedit = [
                                        'href' => 'group/' . $group['id'],
-                                       'title' => t('edit'),
+                                       'title' => L10n::t('edit'),
                                ];
                        } else {
                                $groupedit = null;
@@ -399,16 +398,16 @@ class Group extends BaseObject
 
                $tpl = get_markup_template('group_side.tpl');
                $o = replace_macros($tpl, [
-                       '$add' => t('add'),
-                       '$title' => t('Groups'),
+                       '$add' => L10n::t('add'),
+                       '$title' => L10n::t('Groups'),
                        '$groups' => $display_groups,
                        'newgroup' => $editmode == 'extended' || $editmode == 'full' ? 1 : '',
                        'grouppage' => 'group/',
-                       '$edittext' => t('Edit group'),
-                       '$ungrouped' => $every === 'contacts' ? t('Contacts not in any group') : '',
-                       '$createtext' => t('Create a new group'),
-                       '$creategroup' => t('Group Name: '),
-                       '$editgroupstext' => t('Edit groups'),
+                       '$edittext' => L10n::t('Edit group'),
+                       '$ungrouped' => $every === 'contacts' ? L10n::t('Contacts not in any group') : '',
+                       '$createtext' => L10n::t('Create a new group'),
+                       '$creategroup' => L10n::t('Group Name: '),
+                       '$editgroupstext' => L10n::t('Edit groups'),
                        '$form_security_token' => get_form_security_token('group_edit'),
                ]);