Improve translation for "link" and "unlink" (oauth) (#1612)

This commit is contained in:
Boy132 2025-08-15 14:06:53 +02:00 committed by GitHub
parent c77a37ec89
commit b5ebd544f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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',