diff --git a/appdb/Tabs/Settings/Device Chooser/DeviceChooser.swift b/appdb/Tabs/Settings/Device Chooser/DeviceChooser.swift index 5999e3d8..9b0a62b0 100644 --- a/appdb/Tabs/Settings/Device Chooser/DeviceChooser.swift +++ b/appdb/Tabs/Settings/Device Chooser/DeviceChooser.swift @@ -34,7 +34,7 @@ class DeviceChooser: LoadingTableView { override func viewDidLoad() { super.viewDidLoad() - title = "Choose Device".localized() // todo localize + title = "Choose Device".localized() tableView.register(SimpleSubtitleCell.self, forCellReuseIdentifier: "device") tableView.estimatedRowHeight = 50 @@ -121,7 +121,7 @@ class DeviceChooser: LoadingTableView { } override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { - devices.isEmpty ? nil : "Available Devices".localized() // todo localize + devices.isEmpty ? nil : "Available Devices".localized() } override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { @@ -147,10 +147,9 @@ class DeviceChooser: LoadingTableView { API.getConfiguration(success: { [weak self] in guard let self = self else { return } - // todo localize Messages.shared.hideAll() Messages.shared.showSuccess( - message: "Switched to \"\(name)\"".localized(), + message: "Switched to %@".localizedFormat("\"\(name)\""), context: .viewController(self) ) NotificationCenter.default.post(name: .RefreshSettings, object: self) diff --git a/appdb/ar.lproj/Localizable.strings b/appdb/ar.lproj/Localizable.strings index 406c9037..1da024f8 100644 --- a/appdb/ar.lproj/Localizable.strings +++ b/appdb/ar.lproj/Localizable.strings @@ -300,6 +300,9 @@ Copyright © 2017 ned. All rights reserved. "Cache cleared successfully!" = "تم مسح ذاكرة التخزين المؤقت بنجاح!"; "Failed to clear cache: %@." = "فشل مسح ذاكرة التخزين المؤقت: %@."; "Enable Game Trainer" = "تمكين مدرب اللعبة"; +"Choose Device" = "اختر الجهاز"; +"Available Devices" = "الأجهزة المتاحة"; +"Switched to %@" = "تحولت إلى %@"; ///////////////////// // UPDATES // diff --git a/appdb/de.lproj/Localizable.strings b/appdb/de.lproj/Localizable.strings index 5be710f0..f67c2e65 100644 --- a/appdb/de.lproj/Localizable.strings +++ b/appdb/de.lproj/Localizable.strings @@ -299,6 +299,9 @@ "Cache cleared successfully!" = "Cache erfolgreich gelöscht!"; "Failed to clear cache: %@." = "Cache konnte nicht gelöscht werden: %@."; "Enable Game Trainer" = "Game Trainer Aktivieren"; +"Choose Device" = "Gerät auswählen"; +"Available Devices" = "Verfügbare Geräte"; +"Switched to %@" = "Gewechselt zu %@"; ///////////////////// // UPDATES // diff --git a/appdb/en.lproj/Localizable.strings b/appdb/en.lproj/Localizable.strings index ae35d24c..563f5787 100644 --- a/appdb/en.lproj/Localizable.strings +++ b/appdb/en.lproj/Localizable.strings @@ -299,6 +299,9 @@ "Cache cleared successfully!" = "Cache cleared successfully!"; "Failed to clear cache: %@." = "Failed to clear cache: %@."; "Enable Game Trainer" = "Enable Game Trainer"; +"Choose Device" = "Choose Device"; +"Available Devices" = "Available Devices"; +"Switched to %@" = "Switched to %@"; ///////////////////// // UPDATES // diff --git a/appdb/es.lproj/Localizable.strings b/appdb/es.lproj/Localizable.strings index f79c0404..4d084f79 100644 --- a/appdb/es.lproj/Localizable.strings +++ b/appdb/es.lproj/Localizable.strings @@ -299,6 +299,9 @@ "Cache cleared successfully!" = "¡Caché borrado correctamente!"; "Failed to clear cache: %@." = "Borrado de caché fallado: %@."; "Enable Game Trainer" = "Habilitar Game Trainer"; +"Choose Device" = "Elige el dispositivo"; +"Available Devices" = "Dispositivos disponibles"; +"Switched to %@" = "Cambiado a %@"; ///////////////////// // UPDATES // diff --git a/appdb/fr.lproj/Localizable.strings b/appdb/fr.lproj/Localizable.strings index b18bdd42..9bfe377c 100644 --- a/appdb/fr.lproj/Localizable.strings +++ b/appdb/fr.lproj/Localizable.strings @@ -299,6 +299,9 @@ "Cache cleared successfully!" = "Cache effacé avec succès!"; "Failed to clear cache: %@." = "Échec de la suppression du cache: %@."; "Enable Game Trainer" = "Activer Game Trainer"; +"Choose Device" = "Choisissez l'appareil"; +"Available Devices" = "Appareils disponibles"; +"Switched to %@" = "Basculer vers %@"; ///////////////////// // UPDATES // diff --git a/appdb/id.lproj/Localizable.strings b/appdb/id.lproj/Localizable.strings index c447671a..067f4b1a 100644 --- a/appdb/id.lproj/Localizable.strings +++ b/appdb/id.lproj/Localizable.strings @@ -299,6 +299,9 @@ "Cache cleared successfully!" = "Cache berhasil dihapus!"; "Failed to clear cache: %@." = "Gagal menghapus cache: %@."; "Enable Game Trainer" = "Aktifkan Game Trainer"; +"Choose Device" = "Pilih Devices"; +"Available Devices" = "Devices Tersedia"; +"Switched to %@" = "Pindah ke %@"; ///////////////////// // UPDATES // diff --git a/appdb/it.lproj/Localizable.strings b/appdb/it.lproj/Localizable.strings index 79d51580..bd27d59c 100644 --- a/appdb/it.lproj/Localizable.strings +++ b/appdb/it.lproj/Localizable.strings @@ -299,6 +299,9 @@ "Cache cleared successfully!" = "Cache pulita con successo!"; "Failed to clear cache: %@." = "Impossibile pulire la cache: %@."; "Enable Game Trainer" = "Abilita Game Trainer"; +"Choose Device" = "Scegli Dispositivo"; +"Available Devices" = "Dispositivi Disponibili"; +"Switched to %@" = "Passato a %@"; ///////////////////// // UPDATES // diff --git a/appdb/jv-ID.lproj/Localizable.strings b/appdb/jv-ID.lproj/Localizable.strings index aa429c13..ac3bcd50 100644 --- a/appdb/jv-ID.lproj/Localizable.strings +++ b/appdb/jv-ID.lproj/Localizable.strings @@ -299,6 +299,9 @@ "Cache cleared successfully!" = "Cache diresiki kanthi sukses!"; "Failed to clear cache: %@." = "Gagal mbusek cache: %@."; "Enable Game Trainer" = "Aktifkan Game Trainer"; +"Choose Device" = "Pilih Devices"; +"Available Devices" = "Devices Tersedia"; +"Switched to %@" = "Pindah ke %@"; ///////////////////// // UPDATES // diff --git a/appdb/ru.lproj/Localizable.strings b/appdb/ru.lproj/Localizable.strings index 704ca551..4b1dde5a 100644 --- a/appdb/ru.lproj/Localizable.strings +++ b/appdb/ru.lproj/Localizable.strings @@ -299,6 +299,9 @@ "Cache cleared successfully!" = "Кеш успешно очищен!"; "Failed to clear cache: %@." = "Не удалось очистить кеш: %@."; "Enable Game Trainer" = "Включить трейнер в играх"; +"Choose Device" = "Выберите устройство"; +"Available Devices" = "Доступные устройства"; +"Switched to %@" = "Переключился на %@"; ///////////////////// // UPDATES //