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 -21
View File
@@ -653,83 +653,83 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get selectAtLeastThreeUsersToStart =>
'Select at least 3 users to start.';
'Wybierz co najmniej 3 użytkowników, aby rozpocząć.';
@override
String get hostPhoneMustSelectUser =>
'The host phone must select at least one user.';
'Telefon gospodarza musi wybrać przynajmniej jednego użytkownika.';
@override
String get roomNoLongerInLobby => 'The room is no longer in the lobby.';
String get roomNoLongerInLobby => 'Pokój nie jest już w poczekalni.';
@override
String get completeUserSelectionToStart =>
'Complete user selection to start.';
'Dokończ wybór użytkowników, aby rozpocząć.';
@override
String get preparingSecureRoom => 'Preparing the secure room';
String get preparingSecureRoom => 'Przygotowywanie bezpiecznego pokoju';
@override
String get searchingNearbyBluetoothGames =>
'Searching nearby games over Bluetooth';
'Szukanie gier w pobliżu przez Bluetooth';
@override
String get tapToJoin => 'Tap to join';
String get tapToJoin => 'Dotknij, aby dołączyć';
@override
String get bluetoothLocationPermissionsRequired =>
'Bluetooth and location permissions are required to search for games.';
'Do wyszukiwania gier potrzebne są uprawnienia Bluetooth i lokalizacji.';
@override
String get bluetoothLocationPermissionsShort =>
'Bluetooth and location permissions are required';
'Potrzebne są uprawnienia Bluetooth i lokalizacji';
@override
String get couldNotStartSearch =>
'Could not start the search. Check Bluetooth and location.';
'Nie udało się rozpocząć wyszukiwania. Sprawdź Bluetooth i lokalizację.';
@override
String couldNotConnectToHost(String host) {
return 'Could not connect to $host';
return 'Nie udało się połączyć z $host';
}
@override
String get room => 'Pokój';
@override
String get singleDeviceSubtitle => 'Game on this device';
String get singleDeviceSubtitle => 'Gra na tym urządzeniu';
@override
String get singleDeviceDescription =>
'Ideal for playing together by passing the phone around. Fast, direct setup.';
'Idealne do wspólnej gry, podając telefon dalej. Szybka i prosta konfiguracja.';
@override
String get multiDeviceSubtitle => 'Each player on their phone';
String get multiDeviceSubtitle => 'Każdy gracz na swoim telefonie';
@override
String get multiDeviceDescription =>
'Create a premium room, share the QR code and manage users from the lobby.';
'Utwórz pokój premium, udostępnij kod QR i zarządzaj graczami z poczekalni.';
@override
String get singleDeviceGameLabel => 'Game on this device';
String get singleDeviceGameLabel => 'Gra na tym urządzeniu';
@override
String get multiDeviceGameLabel => 'Multi-device game';
String get multiDeviceGameLabel => 'Gra na wielu urządzeniach';
@override
String get mainDeviceUser => 'Main device user';
String get mainDeviceUser => 'Główny użytkownik urządzenia';
@override
String get couldNotCreateRoom =>
'Could not create the room. Check Bluetooth.';
'Nie udało się utworzyć pokoju. Sprawdź Bluetooth.';
@override
String cannotStartWithReason(String reason) {
return 'Cannot start: $reason';
return 'Nie można rozpocząć: $reason';
}
@override
String get invalidRoom => 'invalid room';
String get invalidRoom => 'nieprawidłowy pokój';
@override
String get defaultPlayerName => 'Gracz';
@@ -842,4 +842,49 @@ class AppLocalizationsPl extends AppLocalizations {
String playerRejoined(String name) {
return '$name wrócił(a) do gry';
}
@override
String get leaveGameTitle => 'Opuścić grę?';
@override
String get leaveGameSingleDevice =>
'Trwająca gra zostanie utracona i nie da się jej odzyskać.';
@override
String get leaveGameHost =>
'Jesteś gospodarzem: jeśli wyjdziesz, gra kończy się dla wszystkich.';
@override
String get leaveGameClient =>
'Opuścisz grę. Możesz wrócić, dopóki gospodarz jej nie zamknie.';
@override
String get stayInGame => 'Graj dalej';
@override
String get permissionsNeededTitle => 'Wymagane uprawnienia';
@override
String get permissionsNeededBody => 'Do trybu wieloosobowego potrzebujemy:';
@override
String get openAppSettingsQuestion => 'Otworzyć ustawienia aplikacji?';
@override
String get openSettings => 'Otwórz ustawienia';
@override
String get permissionLocation => 'Lokalizacja';
@override
String get permissionBluetoothAdvertise => 'Bluetooth (rozgłaszanie)';
@override
String get permissionBluetoothConnect => 'Bluetooth (łączenie)';
@override
String get permissionBluetoothScan => 'Bluetooth (skanowanie)';
@override
String get permissionNearbyWifi => 'Wi-Fi w pobliżu';
}