From fbd0cefdf740cf2688cb1df9f041d3996ce157c9 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 19 Dec 2020 22:52:03 -0500 Subject: [PATCH] Add translation to Yourself option in view as select in profile - Address https://github.com/friendica/friendica/issues/9682 --- src/Module/Profile/Profile.php | 3 ++- view/templates/profile/{index.tpl => profile.tpl} | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) rename view/templates/profile/{index.tpl => profile.tpl} (99%) diff --git a/src/Module/Profile/Profile.php b/src/Module/Profile/Profile.php index b1e0673b2..6b7da3d71 100644 --- a/src/Module/Profile/Profile.php +++ b/src/Module/Profile/Profile.php @@ -231,9 +231,10 @@ class Profile extends BaseProfile ); } - $tpl = Renderer::getMarkupTemplate('profile/index.tpl'); + $tpl = Renderer::getMarkupTemplate('profile/profile.tpl'); $o .= Renderer::replaceMacros($tpl, [ '$title' => DI::l10n()->t('Profile'), + '$yourself' => DI::l10n()->t('Yourself'), '$view_as_contacts' => $view_as_contacts, '$view_as_contact_id' => $view_as_contact_id, '$view_as_contact_alert' => $view_as_contact_alert, diff --git a/view/templates/profile/index.tpl b/view/templates/profile/profile.tpl similarity index 99% rename from view/templates/profile/index.tpl rename to view/templates/profile/profile.tpl index 36b64ffbb..c2cb3ead4 100644 --- a/view/templates/profile/index.tpl +++ b/view/templates/profile/profile.tpl @@ -102,7 +102,7 @@