From fbd0cefdf740cf2688cb1df9f041d3996ce157c9 Mon Sep 17 00:00:00 2001
From: Hypolite Petovan <hypolite@mrpetovan.com>
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 b1e0673b24..6b7da3d716 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 36b64ffbb8..c2cb3ead44 100644
--- a/view/templates/profile/index.tpl
+++ b/view/templates/profile/profile.tpl
@@ -102,7 +102,7 @@
 	<fieldset class="panel-body">
 		<label for="viewas-select">{{$view_as}}</label>
 		<select name="viewas" id="viewas-select" class="form-control">
-			<option value="0">Yourself</option>
+			<option value="0">{{$yourself}}</option>
 			{{foreach $view_as_contacts as $contact}}
 				<option value="{{$contact.id}}"{{if $contact.id == $view_as_contact_id}} selected{{/if}}>{{$contact.name}}</option>
 			{{/foreach}}