feat: confirm before leaving a game, and fix untranslated strings
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:
@@ -844,4 +844,51 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String playerRejoined(String name) {
|
||||
return '$name a rejoint la partie';
|
||||
}
|
||||
|
||||
@override
|
||||
String get leaveGameTitle => 'Quitter la partie ?';
|
||||
|
||||
@override
|
||||
String get leaveGameSingleDevice =>
|
||||
'La partie en cours sera perdue et ne pourra pas être récupérée.';
|
||||
|
||||
@override
|
||||
String get leaveGameHost =>
|
||||
'Vous êtes l\'hôte : si vous partez, la partie se termine pour tout le monde.';
|
||||
|
||||
@override
|
||||
String get leaveGameClient =>
|
||||
'Vous quitterez la partie. Vous pourrez revenir tant que l\'hôte la laisse ouverte.';
|
||||
|
||||
@override
|
||||
String get stayInGame => 'Continuer à jouer';
|
||||
|
||||
@override
|
||||
String get permissionsNeededTitle => 'Autorisations nécessaires';
|
||||
|
||||
@override
|
||||
String get permissionsNeededBody =>
|
||||
'Pour le mode multijoueur, nous avons besoin de :';
|
||||
|
||||
@override
|
||||
String get openAppSettingsQuestion =>
|
||||
'Ouvrir les paramètres de l\'application ?';
|
||||
|
||||
@override
|
||||
String get openSettings => 'Ouvrir les paramètres';
|
||||
|
||||
@override
|
||||
String get permissionLocation => 'Localisation';
|
||||
|
||||
@override
|
||||
String get permissionBluetoothAdvertise => 'Bluetooth (diffusion)';
|
||||
|
||||
@override
|
||||
String get permissionBluetoothConnect => 'Bluetooth (connexion)';
|
||||
|
||||
@override
|
||||
String get permissionBluetoothScan => 'Bluetooth (recherche)';
|
||||
|
||||
@override
|
||||
String get permissionNearbyWifi => 'Wi-Fi à proximité';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user