Skip to content

Commit 08fce67

Browse files
authored
Remove unused localizations (#584)
1 parent a0dc0e7 commit 08fce67

File tree

9 files changed

+25
-69
lines changed

9 files changed

+25
-69
lines changed

Core/Localization/Resources/ar.lproj/Localizable.strings

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/*
2-
New Localizations in Quran for iOS.
3-
*/
4-
51
// MARK: - General
62

73
"button.done" = "تم";
@@ -65,12 +61,6 @@
6561
"ayah.menu.copy" = "نسخ";
6662
"ayah.menu.share" = "مشاركة...";
6763

68-
"repetitionExperimentalSuffix" = " (تجريبي)";
69-
70-
"update.dark-theme.title" = "القراءة الليلية";
71-
"update.dark-theme.desc" = "لقد أضفنا مؤخرًا القراءة الليلية. هل ترغب في تشغيلها؟";
72-
"update.dark-theme.turnOn" = "تشغيل";
73-
7464
"update.filesystem.title" = "جاري تحديث قواعد البيانات ...";
7565

7666
"theme.light" = "فاتح";

Core/Localization/Resources/en.lproj/Localizable.strings

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/*
2-
New Localizations in Quran for iOS
3-
*/
4-
51
// MARK: - General
62

73
"button.done" = "Done";
@@ -25,6 +21,10 @@
2521
"ayah" = "Ayah";
2622
"surah" = "Surah";
2723

24+
// MARK: - Translation
25+
26+
"translationTextType" = "Translation";
27+
"transliterationTextType" = "Transliteration";
2828

2929
"translations.selectedTranslations" = "Selected";
3030

@@ -35,21 +35,24 @@
3535
"noAvailableTranslationText" = "No translation available for this Ayah.";
3636
"referenceVerseTranslationText" = "See ayah %d.";
3737

38+
"ayah.text.read-more" = "Read more";
39+
3840
// MARK: - Search
3941

4042
"searchRecentsTitle" = "Recent searches";
4143
"searchPopularTitle" = "Try searching with";
4244
"searchPlaceholder" = "Surah, verse, translation, tafseer, and numbers";
4345
"searchResultTitle" = "%@ (%d)";
4446

45-
"translationTextType" = "Translation";
46-
"transliterationTextType" = "Transliteration";
47+
// MARK: - Settings
4748

4849
"write_review" = "Write an app store review...";
4950
"contact_us" = "Contact Us";
5051
"share_app" = "Share the app...";
5152
"app_version" = "App Version";
5253

54+
// MARK: - Quran Menu
55+
5356
"menu.arabic" = "Arabic";
5457
"menu.translation" = "Translation/Tafseer";
5558
"menu.select_translation" = "Select translations/tafseer";
@@ -61,23 +64,20 @@
6164
"menu.twoPages" = "2 pages side-by-side (in landscape)";
6265
"menu.verticalScrolling" = "Vertical scrolling";
6366

67+
"theme.light" = "Light";
68+
"theme.dark" = "Dark";
69+
"theme.auto" = "Auto";
70+
"theme.auto.message" = "Quran app will adhere to your iPhone's appearance setting";
6471

65-
"tab.notes" = "Notes";
66-
67-
"shareMarketingSuffix" = "-\nQuran - by Quran.com - قرآن\nhttps://itunes.apple.com/app/id1118663303";
72+
// MARK: - Tabs
6873

69-
"repetitionExperimentalSuffix" = " (Experimental)";
74+
"tab.notes" = "Notes";
7075

71-
"update.dark-theme.title" = "Dark Theme";
72-
"update.dark-theme.desc" = "We have recently added a dark theme. Would you like to turn it on?";
73-
"update.dark-theme.turnOn" = "Turn On";
76+
// MARK: - Update
7477

7578
"update.filesystem.title" = "Upgrading databases...";
7679

77-
"theme.light" = "Light";
78-
"theme.dark" = "Dark";
79-
"theme.auto" = "Auto";
80-
"theme.auto.message" = "Quran app will adhere to your iPhone's appearance setting";
80+
// MARK: - Reciters
8181

8282
"reciters.title" = "Select the reciter to listen to";
8383
"reciters.recent" = "Recent";
@@ -131,8 +131,6 @@
131131
"ayah.menu.delete-note" = "Delete Note";
132132
"ayah.menu.delete-highlight" = "Delete Highlight";
133133

134-
"ayah.text.read-more" = "Read more";
135-
136134
// MARK: - Reading Selector
137135

138136
"reading.selector.selectMushaf.short" = "Select";

Core/Localization/Resources/ms.lproj/Localizable.strings

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
New Localizations in Quran for iOS
2+
Author: https://github.com/faizmokh
33
*/
44

55
"NetworkError_ConnectionLost" = "Tiada sambungan internet. Ubah ke lokasi yang mempunyai internet yang stabil atau tunggu sehingga sambungan internet menjadi lebih stabil.";
@@ -38,11 +38,3 @@
3838
"ayah.menu.copy" = "Salin";
3939
"ayah.menu.share" = "Kongsi...";
4040
"ayah.menu.repeat" = "Ulang";
41-
42-
"shareMarketingSuffix" = "-\nQuran - oleh Quran.com - قرآن\nhttps://itunes.apple.com/app/id1118663303";
43-
44-
"repetitionExperimentalSuffix" = " (Eksperimentasi)";
45-
46-
"update.dark-theme.title" = "Tema Gelap";
47-
"update.dark-theme.desc" = "Kami baru menambahkan tema gelap ke aplikasi ini. Anda ingin menghidupkannya?";
48-
"update.dark-theme.turnOn" = "Hidupkan";

Core/Localization/Resources/nl.lproj/Localizable.strings

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
New Localizations in Quran for iOS
2+
Author: https://github.com/abdelouali
33
*/
44

55
// MARK: - General
@@ -58,17 +58,8 @@
5858
"menu.twoPages" = "2 pagina's naast elkaar (liggend)";
5959
"menu.verticalScrolling" = "Verticaal scrollen";
6060

61-
6261
"tab.notes" = "Notities";
6362

64-
"shareMarketingSuffix" = "-\nQuran - door Quran.com - قرآن\nhttps://itunes.apple.com/app/id1118663303";
65-
66-
"repetitionExperimentalSuffix" = " (Experimenteel)";
67-
68-
"update.dark-theme.title" = "Donker Thema";
69-
"update.dark-theme.desc" = "Onlangs hebben we een donker thema toegevoegd. Wilt u deze inschakelen?";
70-
"update.dark-theme.turnOn" = "Schakel in";
71-
7263
"update.filesystem.title" = "Databases bijwerken...";
7364

7465
"theme.light" = "Licht";

Core/Localization/Resources/tr.lproj/Localizable.strings

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@
5353

5454
"tab.notes" = "Notlar";
5555

56-
"shareMarketingSuffix" = "-\nQuran - by Quran.com - قرآن\nhttps://itunes.apple.com/app/id1118663303";
57-
58-
"repetitionExperimentalSuffix" = " (Deneysel)";
59-
60-
"update.dark-theme.title" = "Koyu Tema";
61-
"update.dark-theme.desc" = "Uygulamamıza koyu tema ekledik. Denemek ister misiniz?";
62-
"update.dark-theme.turnOn" = "Etkinleştir";
63-
6456
"update.filesystem.title" = "Veritabanı güncelleniyor...";
6557

6658
"theme.light" = "Açık";

Core/Localization/Resources/vi.lproj/Localizable.strings

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
New Localizations in Quran for iOS
2+
Author: https://github.com/techyescountry
33
*/
44

55
// MARK: - General
@@ -58,17 +58,8 @@
5858
"menu.twoPages" = "2 trang cạnh nhau (xoay ngang)";
5959
"menu.verticalScrolling" = "Cuộn dọc";
6060

61-
6261
"tab.notes" = "Ghi chú";
6362

64-
"shareMarketingSuffix" = "-\nQuran - bởi Quran.com - قرآن\nhttps://itunes.apple.com/app/id1118663303";
65-
66-
"repetitionExperimentalSuffix" = " (Thử nghiệm)";
67-
68-
"update.dark-theme.title" = "Chủ đề Tối";
69-
"update.dark-theme.desc" = "Chúng tôi mới thêm chủ đề Tối. Bạn có muốn bật nó lên không?";
70-
"update.dark-theme.turnOn" = "Bật";
71-
7263
"update.filesystem.title" = "Nâng cấp cơ sở dữ liệu...";
7364

7465
"theme.light" = "Sáng";

Features/AppMigrationFeature/FileSystemMigrator.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import AppMigrator
1010
import Foundation
11+
import Localization
1112
import ReciterService
1213
import Utilities
1314

@@ -22,7 +23,7 @@ public struct FileSystemMigrator: Migrator {
2223
// MARK: Public
2324

2425
public var blocksUI: Bool { true }
25-
public var uiTitle: String? { "update.filesystem.title" }
26+
public var uiTitle: String? { l("update.filesystem.title") }
2627

2728
public func execute(update: LaunchVersionUpdate) async {
2829
await arrangeFiles()

Features/AppMigrationFeature/MigrationViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class MigrationViewController: BaseViewController {
3434
public func setTitles(_ titles: Set<String>) {
3535
loadViewIfNeeded()
3636
textLabel.numberOfLines = 0
37-
textLabel.text = titles.map { l($0) }.joined(separator: "\n")
37+
textLabel.text = titles.joined(separator: "\n")
3838
}
3939

4040
// MARK: Internal

Features/AppMigrationFeature/RecitersPathMigrator.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import AppMigrator
1010
import Foundation
11+
import Localization
1112
import QuranAudio
1213
import Utilities
1314

@@ -19,7 +20,7 @@ public struct RecitersPathMigrator: Migrator {
1920
// MARK: Public
2021

2122
public var blocksUI: Bool { true }
22-
public var uiTitle: String? { "update.filesystem.title" }
23+
public var uiTitle: String? { l("update.filesystem.title") }
2324

2425
public func execute(update: LaunchVersionUpdate) async {
2526
arrangeFiles()

0 commit comments

Comments
 (0)