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:
@@ -652,83 +652,83 @@ class AppLocalizationsTr extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get selectAtLeastThreeUsersToStart =>
|
||||
'Select at least 3 users to start.';
|
||||
'Başlamak için en az 3 kullanıcı seç.';
|
||||
|
||||
@override
|
||||
String get hostPhoneMustSelectUser =>
|
||||
'The host phone must select at least one user.';
|
||||
'Sunucu telefonu en az bir kullanıcı seçmeli.';
|
||||
|
||||
@override
|
||||
String get roomNoLongerInLobby => 'The room is no longer in the lobby.';
|
||||
String get roomNoLongerInLobby => 'Oda artık lobide değil.';
|
||||
|
||||
@override
|
||||
String get completeUserSelectionToStart =>
|
||||
'Complete user selection to start.';
|
||||
'Başlamak için kullanıcı seçimini tamamla.';
|
||||
|
||||
@override
|
||||
String get preparingSecureRoom => 'Preparing the secure room';
|
||||
String get preparingSecureRoom => 'Güvenli oda hazırlanıyor';
|
||||
|
||||
@override
|
||||
String get searchingNearbyBluetoothGames =>
|
||||
'Searching nearby games over Bluetooth';
|
||||
'Bluetooth ile yakındaki oyunlar aranıyor';
|
||||
|
||||
@override
|
||||
String get tapToJoin => 'Tap to join';
|
||||
String get tapToJoin => 'Katılmak için dokun';
|
||||
|
||||
@override
|
||||
String get bluetoothLocationPermissionsRequired =>
|
||||
'Bluetooth and location permissions are required to search for games.';
|
||||
'Oyun aramak için Bluetooth ve konum izinleri gerekli.';
|
||||
|
||||
@override
|
||||
String get bluetoothLocationPermissionsShort =>
|
||||
'Bluetooth and location permissions are required';
|
||||
'Bluetooth ve konum izinleri gerekli';
|
||||
|
||||
@override
|
||||
String get couldNotStartSearch =>
|
||||
'Could not start the search. Check Bluetooth and location.';
|
||||
'Arama başlatılamadı. Bluetooth ve konumu kontrol et.';
|
||||
|
||||
@override
|
||||
String couldNotConnectToHost(String host) {
|
||||
return 'Could not connect to $host';
|
||||
return '$host bağlantısı kurulamadı';
|
||||
}
|
||||
|
||||
@override
|
||||
String get room => 'Oda';
|
||||
|
||||
@override
|
||||
String get singleDeviceSubtitle => 'Game on this device';
|
||||
String get singleDeviceSubtitle => 'Bu cihazda oyun';
|
||||
|
||||
@override
|
||||
String get singleDeviceDescription =>
|
||||
'Ideal for playing together by passing the phone around. Fast, direct setup.';
|
||||
'Telefonu elden ele dolaştırarak birlikte oynamak için ideal. Hızlı ve doğrudan kurulum.';
|
||||
|
||||
@override
|
||||
String get multiDeviceSubtitle => 'Each player on their phone';
|
||||
String get multiDeviceSubtitle => 'Her oyuncu kendi telefonunda';
|
||||
|
||||
@override
|
||||
String get multiDeviceDescription =>
|
||||
'Create a premium room, share the QR code and manage users from the lobby.';
|
||||
'Premium bir oda oluştur, QR kodu paylaş ve kullanıcıları lobiden yönet.';
|
||||
|
||||
@override
|
||||
String get singleDeviceGameLabel => 'Game on this device';
|
||||
String get singleDeviceGameLabel => 'Bu cihazda oyun';
|
||||
|
||||
@override
|
||||
String get multiDeviceGameLabel => 'Multi-device game';
|
||||
String get multiDeviceGameLabel => 'Çok cihazlı oyun';
|
||||
|
||||
@override
|
||||
String get mainDeviceUser => 'Main device user';
|
||||
String get mainDeviceUser => 'Cihazın ana kullanıcısı';
|
||||
|
||||
@override
|
||||
String get couldNotCreateRoom =>
|
||||
'Could not create the room. Check Bluetooth.';
|
||||
'Oda oluşturulamadı. Bluetooth\'u kontrol et.';
|
||||
|
||||
@override
|
||||
String cannotStartWithReason(String reason) {
|
||||
return 'Cannot start: $reason';
|
||||
return 'Başlatılamıyor: $reason';
|
||||
}
|
||||
|
||||
@override
|
||||
String get invalidRoom => 'invalid room';
|
||||
String get invalidRoom => 'geçersiz oda';
|
||||
|
||||
@override
|
||||
String get defaultPlayerName => 'Oyuncu';
|
||||
@@ -841,4 +841,48 @@ class AppLocalizationsTr extends AppLocalizations {
|
||||
String playerRejoined(String name) {
|
||||
return '$name oyuna geri döndü';
|
||||
}
|
||||
|
||||
@override
|
||||
String get leaveGameTitle => 'Oyundan çıkılsın mı?';
|
||||
|
||||
@override
|
||||
String get leaveGameSingleDevice =>
|
||||
'Devam eden oyun kaybolur ve geri getirilemez.';
|
||||
|
||||
@override
|
||||
String get leaveGameHost => 'Sunucu sensin: çıkarsan oyun herkes için biter.';
|
||||
|
||||
@override
|
||||
String get leaveGameClient =>
|
||||
'Oyundan çıkacaksın. Sunucu odayı açık tuttuğu sürece geri dönebilirsin.';
|
||||
|
||||
@override
|
||||
String get stayInGame => 'Oynamaya devam et';
|
||||
|
||||
@override
|
||||
String get permissionsNeededTitle => 'Gerekli izinler';
|
||||
|
||||
@override
|
||||
String get permissionsNeededBody => 'Çok oyunculu mod için şunlar gerekli:';
|
||||
|
||||
@override
|
||||
String get openAppSettingsQuestion => 'Uygulama ayarları açılsın mı?';
|
||||
|
||||
@override
|
||||
String get openSettings => 'Ayarları aç';
|
||||
|
||||
@override
|
||||
String get permissionLocation => 'Konum';
|
||||
|
||||
@override
|
||||
String get permissionBluetoothAdvertise => 'Bluetooth (yayın)';
|
||||
|
||||
@override
|
||||
String get permissionBluetoothConnect => 'Bluetooth (bağlanma)';
|
||||
|
||||
@override
|
||||
String get permissionBluetoothScan => 'Bluetooth (tarama)';
|
||||
|
||||
@override
|
||||
String get permissionNearbyWifi => 'Yakındaki Wi-Fi';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user