Add logout confirmation localization string

- Add logoutConfirmation key to English and German ARB files
- Update settings page to use localized string instead of hardcoded text
- Regenerate localization files
This commit is contained in:
m3mo 2026-02-04 14:39:39 +01:00
parent cc45831b59
commit 093ba2a24a
6 changed files with 17 additions and 3 deletions

View File

@ -207,7 +207,7 @@ class SettingsPage extends StatelessWidget {
context: context, context: context,
builder: (dialogContext) => AlertDialog( builder: (dialogContext) => AlertDialog(
title: Text(l10n.logout), title: Text(l10n.logout),
content: Text('Are you sure you want to logout?'), content: Text(l10n.logoutConfirmation),
actions: [ actions: [
TextButton( TextButton(
onPressed: () => Navigator.pop(dialogContext), onPressed: () => Navigator.pop(dialogContext),

View File

@ -77,5 +77,6 @@
"uploadTasksQuestion": "Möchten Sie Ihre lokalen Aufgaben auf den Server hochladen?", "uploadTasksQuestion": "Möchten Sie Ihre lokalen Aufgaben auf den Server hochladen?",
"yes": "Ja", "yes": "Ja",
"no": "Nein", "no": "Nein",
"backToSetup": "Zurück zur Einrichtung" "backToSetup": "Zurück zur Einrichtung",
"logoutConfirmation": "Möchten Sie sich wirklich abmelden?"
} }

View File

@ -77,5 +77,6 @@
"uploadTasksQuestion": "Would you like to upload your local tasks to the server?", "uploadTasksQuestion": "Would you like to upload your local tasks to the server?",
"yes": "Yes", "yes": "Yes",
"no": "No", "no": "No",
"backToSetup": "Back to Setup" "backToSetup": "Back to Setup",
"logoutConfirmation": "Are you sure you want to logout?"
} }

View File

@ -565,6 +565,12 @@ abstract class AppLocalizations {
/// In en, this message translates to: /// In en, this message translates to:
/// **'Back to Setup'** /// **'Back to Setup'**
String get backToSetup; String get backToSetup;
/// No description provided for @logoutConfirmation.
///
/// In en, this message translates to:
/// **'Are you sure you want to logout?'**
String get logoutConfirmation;
} }
class _AppLocalizationsDelegate class _AppLocalizationsDelegate

View File

@ -248,4 +248,7 @@ class AppLocalizationsDe extends AppLocalizations {
@override @override
String get backToSetup => 'Zurück zur Einrichtung'; String get backToSetup => 'Zurück zur Einrichtung';
@override
String get logoutConfirmation => 'Möchten Sie sich wirklich abmelden?';
} }

View File

@ -246,4 +246,7 @@ class AppLocalizationsEn extends AppLocalizations {
@override @override
String get backToSetup => 'Back to Setup'; String get backToSetup => 'Back to Setup';
@override
String get logoutConfirmation => 'Are you sure you want to logout?';
} }