From: Hypolite Petovan Date: Sun, 20 Dec 2020 03:52:03 +0000 (-0500) Subject: Add translation to Yourself option in view as select in profile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fbd0cefdf740cf2688cb1df9f041d3996ce157c9;p=friendica.git Add translation to Yourself option in view as select in profile - Address https://github.com/friendica/friendica/issues/9682 --- 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/index.tpl deleted file mode 100644 index 36b64ffbb8..0000000000 --- a/view/templates/profile/index.tpl +++ /dev/null @@ -1,113 +0,0 @@ -{{if $view_as_contact_alert}} - -{{/if}} -
- {{include file="section_title.tpl"}} - - {{* The link to edit the profile*}} -{{if $is_owner}} - -{{/if}} -
-
{{$basic_fields.fullname.label}}
-
{{$basic_fields.fullname.value}}
-
- -{{if $basic_fields.membersince}} -
-
-
{{$basic_fields.membersince.label}}
-
{{$basic_fields.membersince.value}}
-
-{{/if}} - -{{if $basic_fields.birthday}} -
-
-
{{$basic_fields.birthday.label}}
-
{{$basic_fields.birthday.value}}
-
-{{/if}} - -{{if $basic_fields.age}} -
-
-
{{$basic_fields.age.label}}
-
{{$basic_fields.age.value}}
-
-{{/if}} - -{{if $basic_fields.location}} -
-
-
{{$basic_fields.location.label}}
-
{{$basic_fields.location.value}}
-
-{{/if}} - -{{if $basic_fields.homepage}} -
-
-
{{$basic_fields.homepage.label}}
-
{{$basic_fields.homepage.value nofilter}}
-
-{{/if}} - -{{if $basic_fields.xmpp}} -
-
-
{{$basic_fields.xmpp.label}}
-
{{$basic_fields.xmpp.value nofilter}}
-
-{{/if}} - -{{if $basic_fields.pub_keywords}} -
-
-
{{$basic_fields.pub_keywords.label}}
-
- {{foreach $basic_fields.pub_keywords.value as $tag}} - {{$tag.label}} - {{/foreach}} -
-
-{{/if}} - -{{foreach $custom_fields as $custom_field}} -
-
-
{{$custom_field.label}}
-
{{$custom_field.value nofilter}}
-
-{{/foreach}} -
-{{if $is_owner}} -
-
- - - -
-
-{{/if}} diff --git a/view/templates/profile/profile.tpl b/view/templates/profile/profile.tpl new file mode 100644 index 0000000000..c2cb3ead44 --- /dev/null +++ b/view/templates/profile/profile.tpl @@ -0,0 +1,113 @@ +{{if $view_as_contact_alert}} + +{{/if}} +
+ {{include file="section_title.tpl"}} + + {{* The link to edit the profile*}} +{{if $is_owner}} + +{{/if}} +
+
{{$basic_fields.fullname.label}}
+
{{$basic_fields.fullname.value}}
+
+ +{{if $basic_fields.membersince}} +
+
+
{{$basic_fields.membersince.label}}
+
{{$basic_fields.membersince.value}}
+
+{{/if}} + +{{if $basic_fields.birthday}} +
+
+
{{$basic_fields.birthday.label}}
+
{{$basic_fields.birthday.value}}
+
+{{/if}} + +{{if $basic_fields.age}} +
+
+
{{$basic_fields.age.label}}
+
{{$basic_fields.age.value}}
+
+{{/if}} + +{{if $basic_fields.location}} +
+
+
{{$basic_fields.location.label}}
+
{{$basic_fields.location.value}}
+
+{{/if}} + +{{if $basic_fields.homepage}} +
+
+
{{$basic_fields.homepage.label}}
+
{{$basic_fields.homepage.value nofilter}}
+
+{{/if}} + +{{if $basic_fields.xmpp}} +
+
+
{{$basic_fields.xmpp.label}}
+
{{$basic_fields.xmpp.value nofilter}}
+
+{{/if}} + +{{if $basic_fields.pub_keywords}} +
+
+
{{$basic_fields.pub_keywords.label}}
+
+ {{foreach $basic_fields.pub_keywords.value as $tag}} + {{$tag.label}} + {{/foreach}} +
+
+{{/if}} + +{{foreach $custom_fields as $custom_field}} +
+
+
{{$custom_field.label}}
+
{{$custom_field.value nofilter}}
+
+{{/foreach}} +
+{{if $is_owner}} +
+
+ + + +
+
+{{/if}}