Merge pull request #15225 from mfxa/view_as_btn

View as: "Submit" -> "View as selected profile" + delegation submit button styling
pull/15230/head^2
Philipp 2025-10-09 21:38:07 +02:00 zatwierdzone przez GitHub
commit c7f13f6a33
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
3 zmienionych plików z 11 dodań i 7 usunięć

Wyświetl plik

@ -285,7 +285,7 @@ class Profile extends BaseProfile
'$view_as_contact_id' => $view_as_contact_id,
'$view_as_contact_alert' => $view_as_contact_alert,
'$view_as' => $this->t('View profile as:'),
'$submit' => $this->t('Submit'),
'$submit' => $this->t('View as selected profile'),
'$basic' => $this->t('Basic'),
'$advanced' => $this->t('Advanced'),
'$is_owner' => $profile['uid'] == $this->session->getLocalUserId(),

Wyświetl plik

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 2025.07-rc\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-10-05 14:42+0200\n"
"POT-Creation-Date: 2025-10-06 18:57+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -445,10 +445,10 @@ msgstr ""
#: src/Module/Moderation/Report/Create.php:168
#: src/Module/Moderation/Report/Create.php:196
#: src/Module/Moderation/Report/Create.php:256
#: src/Module/Profile/Profile.php:288 src/Module/Settings/Server/Action.php:65
#: src/Module/User/Delegation.php:181 src/Object/Post.php:1159
#: view/theme/duepuntozero/config.php:73 view/theme/frio/config.php:155
#: view/theme/quattro/config.php:75 view/theme/vier/config.php:123
#: src/Module/Settings/Server/Action.php:65 src/Module/User/Delegation.php:181
#: src/Object/Post.php:1159 view/theme/duepuntozero/config.php:73
#: view/theme/frio/config.php:155 view/theme/quattro/config.php:75
#: view/theme/vier/config.php:123
msgid "Submit"
msgstr ""
@ -8507,6 +8507,10 @@ msgstr ""
msgid "View profile as:"
msgstr ""
#: src/Module/Profile/Profile.php:288
msgid "View as selected profile"
msgstr ""
#: src/Module/Profile/Profile.php:298 src/Module/Profile/Profile.php:299
msgid "Edit profile"
msgstr ""

Wyświetl plik

@ -22,7 +22,7 @@
{{include file="field_select.tpl" field=$parent_user}}
{{include file="field_password.tpl" field=$parent_password}}
<div class="submit">
<button type="submit" name="delegate" value="{{$l10n.submit}}">{{$l10n.submit}}</button>
<button type="submit" class="btn btn-primary" name="delegate" value="{{$l10n.submit}}">{{$l10n.submit}}</button>
</div>
</form>
</div>