mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 06:18:48 +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 ?? []);
|
||||
|
||||
$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')
|
||||
->color(Color::hex($schema->getHexColor()))
|
||||
->action(function (UserUpdateService $updateService) use ($id, $name, $unlink) {
|
||||
|
@ -21,8 +21,8 @@ return [
|
||||
'timezone' => 'Timezone',
|
||||
'language' => 'Language',
|
||||
'language_help' => 'Your language :state has not been translated yet!',
|
||||
'link' => 'Link ',
|
||||
'unlink' => 'Unlink ',
|
||||
'link' => 'Link :name',
|
||||
'unlink' => 'Unlink :name',
|
||||
'unlinked' => ':name unlinked',
|
||||
'scan_qr' => 'Scan QR Code',
|
||||
'code' => 'Code',
|
||||
|
Loading…
x
Reference in New Issue
Block a user