Skip to content

Commit 17a7eee

Browse files
committed
set localizable strings for Calculating
1 parent e6807b1 commit 17a7eee

File tree

12 files changed

+12
-4
lines changed

12 files changed

+12
-4
lines changed

Diff for: OpenGpxTracker/PreferencesTableViewController.swift

+1-4
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,13 @@ class PreferencesTableViewController: UITableViewController, UINavigationBarDele
8484
action: #selector(PreferencesTableViewController.closePreferencesTableViewController))
8585
self.navigationItem.rightBarButtonItems = [shareItem]
8686

87-
//let fileSize = cache.diskCache.fileSize ?? 0
88-
//cachedSize = Int(fileSize).asFileSize()
8987
// Set a temporary value for cachedSize
90-
cachedSize = "Calculating..."
88+
cachedSize = NSLocalizedString("CALCULATING", comment: "Calculating cache")
9189
print("PreferencesTableViewConroller: Starting cache calculation")
9290
// Perform the file size calculation asynchronously
9391
DispatchQueue.global(qos: .background).async {
9492
let fileSize = self.cache.diskCache.fileSize ?? 0
9593
self.cachedSize = Int(fileSize).asFileSize()
96-
9794
// Update the cachedSize on the main thread once the operation is complete
9895
DispatchQueue.main.async {
9996
print("PreferencesTableViewController: Completing cache calculation")

Diff for: OpenGpxTracker/de.lproj/Localizable.strings

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"PREFERENCES" = "Einstellungen";
3838
"UNITS" = "Einheiten";
3939
"CACHE" = "Cache";
40+
"CALCULATING" = "Berechnung...";
4041
"SCREEN" = "Bildschirm";
4142
"KEEP_SCREEN_ALWAYS_ON" = "Bildschirm immer eingeschaltet lassen?";
4243
"MAP_SOURCE" = "Kartentyp";

Diff for: OpenGpxTracker/en.lproj/Localizable.strings

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"SCREEN" = "Screen";
4141
"KEEP_SCREEN_ALWAYS_ON" = "Keep screen always on?";
4242
"CACHE" = "Cache";
43+
"CALCULATING" = "Calculating...";
4344
"MAP_SOURCE" = "Map Source";
4445
"ACTIVITY_TYPE" = "Activity Type";
4546
"USE_IMPERIAL_UNITS" = "Use imperial units?";

Diff for: OpenGpxTracker/es.lproj/Localizable.strings

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"PREFERENCES" = "Preferencias";
3939
"UNITS" = "Unidades";
4040
"CACHE" = "Caché";
41+
"CALCULATING" = "Calculando...";
4142
"SCREEN" = "Pantalla";
4243
"KEEP_SCREEN_ALWAYS_ON" = "¿Mantener la pantalla siempre encendida?";
4344
"MAP_SOURCE" = "Mapas";

Diff for: OpenGpxTracker/fi-FI.lproj/Localizable.strings

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Created by Phiilman on 28.03.20.
3838
"PREFERENCES" = "Asetukset";
3939
"UNITS" = "Yksiköt";
4040
"CACHE" = "Välimuisti";
41+
"CALCULATING" = "Lasketaan...";
4142
"SCREEN" = "Näyttö";
4243
"KEEP_SCREEN_ALWAYS_ON" = "Pidä näyttö aina päällä?";
4344
"MAP_SOURCE" = "Kartan lähde";

Diff for: OpenGpxTracker/fr.lproj/Localizable.strings

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"PREFERENCES" = "Préférences";
4040
"UNITS" = "Unités";
4141
"CACHE" = "Cache";
42+
"CALCULATING" = "Calcul en cours...";
4243
"SCREEN" = "Écran";
4344
"KEEP_SCREEN_ALWAYS_ON" = "Garder l'écran toujours allumé ?";
4445
"MAP_SOURCE" = "Source de la carte";

Diff for: OpenGpxTracker/it.lproj/Localizable.strings

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"PREFERENCES" = "Impostazioni";
3838
"UNITS" = "Unità";
3939
"CACHE" = "Cache";
40+
"CALCULATING" = "Calcolando...";
4041
"SCREEN" = "Schermo";
4142
"KEEP_SCREEN_ALWAYS_ON" = "Mantenere lo schermo sempre acceso?";
4243
"MAP_SOURCE" = "Tipo Mappe";

Diff for: OpenGpxTracker/nl.lproj/Localizable.strings

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"UNITS" = "Eenheden";
4040
"CACHE" = "Cache";
4141
"SCREEN" = "Scherm";
42+
"CALCULATING" = "Bezig met berekenen...";
4243
"KEEP_SCREEN_ALWAYS_ON" = "Scherm altijd aanhouden?";
4344
"MAP_SOURCE" = "Kaartbron";
4445
"ACTIVITY_TYPE" = "Soort activiteit";

Diff for: OpenGpxTracker/pt-BR.lproj/Localizable.strings

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"PREFERENCES" = "Preferências";
4040
"UNITS" = "Unidades";
4141
"CACHE" = "Cache";
42+
"CALCULATING" = "Calculando...";
4243
"SCREEN" = "Tela";
4344
"KEEP_SCREEN_ALWAYS_ON" = "Manter a tela sempre ligada?";
4445
"MAP_SOURCE" = "Origem do mapa";

Diff for: OpenGpxTracker/ru.lproj/Localizable.strings

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"PREFERENCES" = "Настройки";
3939
"UNITS" = "Единицы измерения";
4040
"CACHE" = "Кэш";
41+
"CALCULATING" = "Вычисление...";
4142
"SCREEN" = "Экран";
4243
"KEEP_SCREEN_ALWAYS_ON" = "Всегда оставлять экран включенным?";
4344
"MAP_SOURCE" = "Поставщик карт";

Diff for: OpenGpxTracker/uk.lproj/Localizable.strings

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"PREFERENCES" = "Налаштування";
3939
"UNITS" = "Одиниці вимірювання";
4040
"CACHE" = "Кеш";
41+
"CALCULATING" = "Розрахунок...";
4142
"SCREEN" = "Екран";
4243
"KEEP_SCREEN_ALWAYS_ON" = "Завжди залишати екран увімкненим?";
4344
"MAP_SOURCE" = "Джерело мапи";

Diff for: OpenGpxTracker/zh-Hans.lproj/Localizable.strings

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"PREFERENCES" = "设置";
4343
"UNITS" = "计量单位";
4444
"CACHE" = "地图高速缓存系统"; // not quite confident in translation. Have never heard of anyone used “cache” in Chinese before.
45+
"CALCULATING" = "计算中..."; // Chinese Simplified
4546
"SCREEN" = "屏幕";
4647
"KEEP_SCREEN_ALWAYS_ON" = "始终保持屏幕开启?";
4748
"MAP_SOURCE" = "地图款式";

0 commit comments

Comments
 (0)