feat: confirm before leaving a game, and fix untranslated strings
Build & Deploy Farolero / Análisis de código (push) Successful in 13s
Build & Deploy Farolero / Build APK + AAB release (push) Successful in 1m22s

Exit confirmation
- A dialog in the app's own style now guards every in-game screen. The safe
  action is the prominent one, so a stray tap keeps you in the game.
- Eleven screens covered, against both the system back gesture and the close
  buttons. The message adapts: a single-device game is lost, a host ends it
  for everyone, a client can rejoin.
- The two screens the host also opens from the manager take a flag so that
  back there just closes them instead of offering to quit.

Translations
- 21 keys were still holding the English text in Arabic, Basque, Hindi,
  Japanese, Korean, Dutch, Polish, Russian, Turkish and both Chinese
  variants: 231 strings, covering the whole multi-device flow, permissions
  and the mode picker. Nothing failed, the app just showed English.
- The permissions dialog was hardcoded in Spanish; it is localized now.
- Portuguese used Spanish gerunds where pt-PT takes "a + infinitive".

Checked what looked untranslated but is not: Animals and Notes are correct
Catalan, Configuration and Vibration correct French, Version correct German.
Those are whitelisted in the new test rather than silently rewritten.

l10n_cobertura_test guards all of it: no missing or orphan keys, no empty
values, no English left outside the whitelist, and placeholders preserved.
This commit is contained in:
2026-07-25 23:59:57 +02:00
parent d98ca66793
commit 56f07364c2
50 changed files with 2313 additions and 853 deletions
+66 -24
View File
@@ -647,83 +647,80 @@ class AppLocalizationsAr extends AppLocalizations {
@override
String get selectAtLeastThreeUsersToStart =>
'Select at least 3 users to start.';
'اختر 3 مستخدمين على الأقل للبدء.';
@override
String get hostPhoneMustSelectUser =>
'The host phone must select at least one user.';
'يجب أن يختار هاتف المضيف مستخدمًا واحدًا على الأقل.';
@override
String get roomNoLongerInLobby => 'The room is no longer in the lobby.';
String get roomNoLongerInLobby => 'لم تعد الغرفة في ردهة الانتظار.';
@override
String get completeUserSelectionToStart =>
'Complete user selection to start.';
String get completeUserSelectionToStart => 'أكمل اختيار المستخدمين للبدء.';
@override
String get preparingSecureRoom => 'Preparing the secure room';
String get preparingSecureRoom => 'جارٍ تجهيز الغرفة الآمنة';
@override
String get searchingNearbyBluetoothGames =>
'Searching nearby games over Bluetooth';
'البحث عن جولات قريبة عبر البلوتوث';
@override
String get tapToJoin => 'Tap to join';
String get tapToJoin => 'اضغط للانضمام';
@override
String get bluetoothLocationPermissionsRequired =>
'Bluetooth and location permissions are required to search for games.';
'يلزم إذنا البلوتوث والموقع للبحث عن جولات.';
@override
String get bluetoothLocationPermissionsShort =>
'Bluetooth and location permissions are required';
String get bluetoothLocationPermissionsShort => 'يلزم إذنا البلوتوث والموقع';
@override
String get couldNotStartSearch =>
'Could not start the search. Check Bluetooth and location.';
'تعذّر بدء البحث. تحقق من البلوتوث والموقع.';
@override
String couldNotConnectToHost(String host) {
return 'Could not connect to $host';
return 'تعذّر الاتصال بـ $host';
}
@override
String get room => 'غرفة';
@override
String get singleDeviceSubtitle => 'Game on this device';
String get singleDeviceSubtitle => 'اللعب على هذا الجهاز';
@override
String get singleDeviceDescription =>
'Ideal for playing together by passing the phone around. Fast, direct setup.';
'مثالي للعب معًا بتمرير الهاتف. إعداد سريع ومباشر.';
@override
String get multiDeviceSubtitle => 'Each player on their phone';
String get multiDeviceSubtitle => 'كل لاعب على هاتفه';
@override
String get multiDeviceDescription =>
'Create a premium room, share the QR code and manage users from the lobby.';
'أنشئ غرفة مميزة، وشارك رمز QR، وأدر المستخدمين من ردهة الانتظار.';
@override
String get singleDeviceGameLabel => 'Game on this device';
String get singleDeviceGameLabel => 'اللعب على هذا الجهاز';
@override
String get multiDeviceGameLabel => 'Multi-device game';
String get multiDeviceGameLabel => 'لعب متعدد الأجهزة';
@override
String get mainDeviceUser => 'Main device user';
String get mainDeviceUser => 'المستخدم الرئيسي للجهاز';
@override
String get couldNotCreateRoom =>
'Could not create the room. Check Bluetooth.';
String get couldNotCreateRoom => 'تعذّر إنشاء الغرفة. تحقق من البلوتوث.';
@override
String cannotStartWithReason(String reason) {
return 'Cannot start: $reason';
return 'تعذّر البدء: $reason';
}
@override
String get invalidRoom => 'invalid room';
String get invalidRoom => 'غرفة غير صالحة';
@override
String get defaultPlayerName => 'لاعب';
@@ -834,4 +831,49 @@ class AppLocalizationsAr extends AppLocalizations {
String playerRejoined(String name) {
return 'عاد $name إلى الجولة';
}
@override
String get leaveGameTitle => 'هل تريد مغادرة الجولة؟';
@override
String get leaveGameSingleDevice =>
'ستفقد الجولة الجارية ولن يمكن استعادتها.';
@override
String get leaveGameHost =>
'أنت المضيف: إذا غادرت ستنتهي الجولة لجميع اللاعبين.';
@override
String get leaveGameClient =>
'ستغادر الجولة. يمكنك العودة ما دام المضيف يبقيها مفتوحة.';
@override
String get stayInGame => 'متابعة اللعب';
@override
String get permissionsNeededTitle => 'أذونات مطلوبة';
@override
String get permissionsNeededBody => 'لوضع اللعب الجماعي نحتاج إلى:';
@override
String get openAppSettingsQuestion => 'هل تريد فتح إعدادات التطبيق؟';
@override
String get openSettings => 'فتح الإعدادات';
@override
String get permissionLocation => 'الموقع';
@override
String get permissionBluetoothAdvertise => 'بلوتوث (الإعلان)';
@override
String get permissionBluetoothConnect => 'بلوتوث (الاتصال)';
@override
String get permissionBluetoothScan => 'بلوتوث (المسح)';
@override
String get permissionNearbyWifi => 'واي فاي قريب';
}