mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 09:58:37 +02:00
Improve translation for "link" and "unlink" (oauth) (#1612)
This commit is contained in:
parent
c77a37ec89
commit
b5ebd544f4
@ -174,7 +174,7 @@ class EditProfile extends BaseEditProfile
|
|||||||
$unlink = array_key_exists($id, $this->getUser()->oauth ?? []);
|
$unlink = array_key_exists($id, $this->getUser()->oauth ?? []);
|
||||||
|
|
||||||
$actions[] = Action::make("oauth_$id")
|
$actions[] = Action::make("oauth_$id")
|
||||||
->label(($unlink ? trans('profile.unlink') : trans('profile.link')) . $name)
|
->label(trans('profile.' . ($unlink ? 'unlink' : 'link'), ['name' => $name]))
|
||||||
->icon($unlink ? 'tabler-unlink' : 'tabler-link')
|
->icon($unlink ? 'tabler-unlink' : 'tabler-link')
|
||||||
->color(Color::hex($schema->getHexColor()))
|
->color(Color::hex($schema->getHexColor()))
|
||||||
->action(function (UserUpdateService $updateService) use ($id, $name, $unlink) {
|
->action(function (UserUpdateService $updateService) use ($id, $name, $unlink) {
|
||||||
|
@ -21,8 +21,8 @@ return [
|
|||||||
'timezone' => 'Timezone',
|
'timezone' => 'Timezone',
|
||||||
'language' => 'Language',
|
'language' => 'Language',
|
||||||
'language_help' => 'Your language :state has not been translated yet!',
|
'language_help' => 'Your language :state has not been translated yet!',
|
||||||
'link' => 'Link ',
|
'link' => 'Link :name',
|
||||||
'unlink' => 'Unlink ',
|
'unlink' => 'Unlink :name',
|
||||||
'unlinked' => ':name unlinked',
|
'unlinked' => ':name unlinked',
|
||||||
'scan_qr' => 'Scan QR Code',
|
'scan_qr' => 'Scan QR Code',
|
||||||
'code' => 'Code',
|
'code' => 'Code',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user