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
+67 -21
View File
@@ -652,83 +652,83 @@ class AppLocalizationsRu 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.';
'Завершите выбор пользователей, чтобы начать.';
@override
String get preparingSecureRoom => 'Preparing the secure room';
String get preparingSecureRoom => 'Подготовка защищённой комнаты';
@override
String get searchingNearbyBluetoothGames =>
'Searching nearby games over Bluetooth';
'Поиск игр поблизости через 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.';
'Для поиска игр нужны разрешения Bluetooth и геолокации.';
@override
String get bluetoothLocationPermissionsShort =>
'Bluetooth and location permissions are required';
'Нужны разрешения Bluetooth и геолокации';
@override
String get couldNotStartSearch =>
'Could not start the search. Check Bluetooth and location.';
'Не удалось начать поиск. Проверьте Bluetooth и геолокацию.';
@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.';
'Не удалось создать комнату. Проверьте Bluetooth.';
@override
String cannotStartWithReason(String reason) {
return 'Cannot start: $reason';
return 'Невозможно начать: $reason';
}
@override
String get invalidRoom => 'invalid room';
String get invalidRoom => 'недопустимая комната';
@override
String get defaultPlayerName => 'Игрок';
@@ -841,4 +841,50 @@ class AppLocalizationsRu 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 => 'Bluetooth (объявление)';
@override
String get permissionBluetoothConnect => 'Bluetooth (подключение)';
@override
String get permissionBluetoothScan => 'Bluetooth (сканирование)';
@override
String get permissionNearbyWifi => 'Wi-Fi поблизости';
}