Skip to content

Commit

Permalink
update localizations
Browse files Browse the repository at this point in the history
  • Loading branch information
nedley committed Jun 13, 2021
1 parent f206cf0 commit 1582911
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 4 deletions.
7 changes: 3 additions & 4 deletions appdb/Tabs/Settings/Device Chooser/DeviceChooser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand All @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions appdb/ar.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand Down
3 changes: 3 additions & 0 deletions appdb/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand Down
3 changes: 3 additions & 0 deletions appdb/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand Down
3 changes: 3 additions & 0 deletions appdb/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand Down
3 changes: 3 additions & 0 deletions appdb/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand Down
3 changes: 3 additions & 0 deletions appdb/id.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand Down
3 changes: 3 additions & 0 deletions appdb/it.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand Down
3 changes: 3 additions & 0 deletions appdb/jv-ID.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand Down
3 changes: 3 additions & 0 deletions appdb/ru.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@
"Cache cleared successfully!" = "Кеш успешно очищен!";
"Failed to clear cache: %@." = "Не удалось очистить кеш: %@.";
"Enable Game Trainer" = "Включить трейнер в играх";
"Choose Device" = "Выберите устройство";
"Available Devices" = "Доступные устройства";
"Switched to %@" = "Переключился на %@";

/////////////////////
// UPDATES //
Expand Down

0 comments on commit 1582911

Please sign in to comment.