Smaller fix, introduce dynamic string

This commit is contained in:
Dennis Fokin 2022-09-06 16:43:25 +02:00
parent c4b070de71
commit 6b03ba6628
No known key found for this signature in database
GPG Key ID: 870B88256690D8BC
2 changed files with 7 additions and 2 deletions

View File

@ -59,7 +59,12 @@
"oath_account_must_have_name": "Your account must have a name", "oath_account_must_have_name": "Your account must have a name",
"oath_name_exists": "This name already exists for the Issuer", "oath_name_exists": "This name already exists for the Issuer",
"oath_account_renamed": "Account renamed", "oath_account_renamed": "Account renamed",
"oath_rename": "Rename", "oath_rename": "Rename {label}?",
"@oath_rename" : {
"placeholders": {
"label": {}
}
},
"oath_factory_reset": "Factory reset", "oath_factory_reset": "Factory reset",
"oath_oath_application_reset": "OATH application reset", "oath_oath_application_reset": "OATH application reset",
"oath_reset": "Reset", "oath_reset": "Reset",

View File

@ -122,7 +122,7 @@ class _RenameAccountDialogState extends ConsumerState<RenameAccountDialog> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text('${AppLocalizations.of(context)!.oath_rename} $label?'), Text(AppLocalizations.of(context)!.oath_rename(label)),
Text(AppLocalizations.of(context)! Text(AppLocalizations.of(context)!
.oath_warning_will_change_account_displayed), .oath_warning_will_change_account_displayed),
TextFormField( TextFormField(