Add translation to Yourself option in view as select in profile

- Address https://github.com/friendica/friendica/issues/9682
This commit is contained in:
Hypolite Petovan 2020-12-19 22:52:03 -05:00
parent a991f3dfcf
commit fbd0cefdf7
2 changed files with 3 additions and 2 deletions

View file

@ -231,9 +231,10 @@ class Profile extends BaseProfile
); );
} }
$tpl = Renderer::getMarkupTemplate('profile/index.tpl'); $tpl = Renderer::getMarkupTemplate('profile/profile.tpl');
$o .= Renderer::replaceMacros($tpl, [ $o .= Renderer::replaceMacros($tpl, [
'$title' => DI::l10n()->t('Profile'), '$title' => DI::l10n()->t('Profile'),
'$yourself' => DI::l10n()->t('Yourself'),
'$view_as_contacts' => $view_as_contacts, '$view_as_contacts' => $view_as_contacts,
'$view_as_contact_id' => $view_as_contact_id, '$view_as_contact_id' => $view_as_contact_id,
'$view_as_contact_alert' => $view_as_contact_alert, '$view_as_contact_alert' => $view_as_contact_alert,

View file

@ -102,7 +102,7 @@
<fieldset class="panel-body"> <fieldset class="panel-body">
<label for="viewas-select">{{$view_as}}</label> <label for="viewas-select">{{$view_as}}</label>
<select name="viewas" id="viewas-select" class="form-control"> <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}} {{foreach $view_as_contacts as $contact}}
<option value="{{$contact.id}}"{{if $contact.id == $view_as_contact_id}} selected{{/if}}>{{$contact.name}}</option> <option value="{{$contact.id}}"{{if $contact.id == $view_as_contact_id}} selected{{/if}}>{{$contact.name}}</option>
{{/foreach}} {{/foreach}}