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:
@@ -651,83 +651,82 @@ class AppLocalizationsHi 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';
|
||||
'ब्लूटूथ से आस-पास के गेम खोजे जा रहे हैं';
|
||||
|
||||
@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';
|
||||
'ब्लूटूथ और लोकेशन की अनुमति चाहिए';
|
||||
|
||||
@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 => 'खिलाड़ी';
|
||||
@@ -840,4 +839,49 @@ class AppLocalizationsHi 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 => 'आस-पास का वाई-फ़ाई';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user