Skip to content

Commit a1a03a4

Browse files
committed
Move inspector-related localizable strings to Inspector.xcstrings
1 parent ea0154a commit a1a03a4

16 files changed

+314
-74
lines changed

CotEditor/Sources/DocumentInspectorViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ final class DocumentInspectorViewController: NSViewController, DocumentOwner {
9494
super.viewDidLoad()
9595

9696
// set accessibility
97-
self.view.setAccessibilityLabel(String(localized: "Document Inspector"))
97+
self.view.setAccessibilityLabel(String(localized: "Document Inspector", table: "Inspector"))
9898
}
9999

100100

CotEditor/Sources/InspectorViewController.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
// ---------------------------------------------------------------------------
1010
//
11-
// © 2016-2023 1024jp
11+
// © 2016-2024 1024jp
1212
//
1313
// Licensed under the Apache License, Version 2.0 (the "License");
1414
// you may not use this file except in compliance with the License.
@@ -107,7 +107,7 @@ final class InspectorViewController: NSTabViewController, DocumentOwner {
107107
// set accessibility
108108
self.view.setAccessibilityElement(true)
109109
self.view.setAccessibilityRole(.group)
110-
self.view.setAccessibilityLabel(String(localized: "Inspector"))
110+
self.view.setAccessibilityLabel(String(localized: "Inspector", table: "Inspector", comment: "accessibility label"))
111111
}
112112

113113

@@ -164,9 +164,9 @@ private extension InspectorPane {
164164
var name: String {
165165

166166
switch self {
167-
case .document: String(localized: "Document Inspector")
168-
case .outline: String(localized: "Outline")
169-
case .warnings: String(localized: "Warnings")
167+
case .document: String(localized: "Document Inspector", table: "Inspector", comment: "pane title")
168+
case .outline: String(localized: "Outline", table: "Inspector", comment: "pane title")
169+
case .warnings: String(localized: "Warnings", table: "Inspector", comment: "pane title")
170170
}
171171
}
172172

CotEditor/Sources/OutlineViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ final class OutlineViewController: NSViewController, DocumentOwner {
9797
// set accessibility
9898
self.view.setAccessibilityElement(true)
9999
self.view.setAccessibilityRole(.group)
100-
self.view.setAccessibilityLabel(String(localized: "Outline"))
100+
self.view.setAccessibilityLabel(String(localized: "Outline", table: "Inspector"))
101101
}
102102

103103

CotEditor/Sources/WarningInspectorView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct WarningInspectorView: View {
100100
.padding(.bottom, 12)
101101
}
102102
.padding(.horizontal, 12)
103-
.accessibilityLabel("Warnings")
103+
.accessibilityLabel(Text("Warnings", tableName: "Inspector"))
104104
}
105105
}
106106

CotEditor/cs.lproj/Localizable.strings

+2-6
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@
4040

4141

4242
// Accessibility labels
43-
"Inspector" = "Inspektor";
44-
"Document Inspector" = "Inspektor dokumentu";
4543
"Outline" = "Osnova";
46-
"Warnings" = "Varování";
47-
"Incompatible Characters" = "Nekompatibilní znaky";
4844
"Filter" = "Filtr";
4945
"Status Bar" = "Stavový řádek";
5046
"Editor" = "Editor";
@@ -479,8 +475,8 @@
479475

480476

481477

482-
/* MARK: Inspector */
483-
// Outline
478+
/* MARK: FilterField */
479+
// Menu items
484480
"Recent Filters" = "Poslední filtry";
485481
"Clear Recent Filters" = "Smazat poslední filtry";
486482
"No Recent Filter" = "Žádný poslední filtr";

CotEditor/de.lproj/Localizable.strings

+2-6
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@
4040

4141

4242
// Accessibility labels
43-
"Inspector" = "Infofenster";
44-
"Document Inspector" = "Dokument-Informationen";
4543
"Outline" = "Gliederung";
46-
"Warnings" = "Vorwarnungen";
47-
"Incompatible Characters" = "Inkompatible Zeichen";
4844
"Filter" = "Filter";
4945
"Status Bar" = "Statusleiste";
5046
"Navigation Bar" = "Navigationsleiste";
@@ -479,8 +475,8 @@
479475

480476

481477

482-
/* MARK: Inspector */
483-
// Outline
478+
/* MARK: FilterField */
479+
// Menu items
484480
"Recent Filters" = "Zuletzt gefiltert";
485481
"Clear Recent Filters" = "Letzte Filter löschen";
486482
"No Recent Filter" = "Keine letzten Filtereinträge";

CotEditor/en-GB.lproj/Localizable.strings

+2-6
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@
4040

4141

4242
// Accessibility labels
43-
"Inspector" = "Inspector";
44-
"Document Inspector" = "Document Inspector";
4543
"Outline" = "Outline";
46-
"Warnings" = "Warnings";
47-
"Incompatible Characters" = "Incompatible Characters";
4844
"Filter" = "Filter";
4945
"Status Bar" = "Status Bar";
5046
"Editor" = "Editor";
@@ -479,8 +475,8 @@
479475

480476

481477

482-
/* MARK: Inspector */
483-
// Outline
478+
/* MARK: FilterField */
479+
// Menu items
484480
"Recent Filters" = "Recent Filters";
485481
"Clear Recent Filters" = "Clear Recent Filters";
486482
"No Recent Filter" = "No Recent Filter";

CotEditor/es.lproj/Localizable.strings

+2-6
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@
4040

4141

4242
// Accessibility labels
43-
"Inspector" = "Inspector";
44-
"Document Inspector" = "Inspector de documentos";
4543
"Outline" = "Tabla de contenido";
46-
"Warnings" = "Avisos";
47-
"Incompatible Characters" = "Caracteres incompatibles";
4844
"Filter" = "Filtro";
4945
"Status Bar" = "Barra de estado";
5046
"Editor" = "Editor";
@@ -479,8 +475,8 @@
479475

480476

481477

482-
/* MARK: Inspector */
483-
// Outline
478+
/* MARK: FilterField */
479+
// Menu items
484480
"Recent Filters" = "Filtros recientes";
485481
"Clear Recent Filters" = "Borrar filtros recientes";
486482
"No Recent Filter" = "Sin filtro reciente";

CotEditor/fr.lproj/Localizable.strings

+2-6
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@
4040

4141

4242
// Accessibility labels
43-
"Inspector" = "Inspecteur";
44-
"Document Inspector" = "Inspecteur de document";
4543
"Outline" = "Structure";
46-
"Warnings" = "Avertissements";
47-
"Incompatible Characters" = "Caractères incompatibles";
4844
"Filter" = "Filter";
4945
"Status Bar" = "Barre d’état";
5046
"Editor" = "Éditeur";
@@ -479,8 +475,8 @@
479475

480476

481477

482-
/* MARK: Inspector */
483-
// Outline
478+
/* MARK: FilterField */
479+
// Menu items
484480
"Recent Filters" = "Filtres récents";
485481
"Clear Recent Filters" = "Effacer l’historique";
486482
"No Recent Filter" = "Aucun filtre récent";

CotEditor/it.lproj/Localizable.strings

+2-6
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@
4040

4141

4242
// Accessibility labels
43-
"Inspector" = "Ispettore";
44-
"Document Inspector" = "Ispettore del documento";
4543
"Outline" = "Outline";
46-
"Warnings" = "Avvisi";
47-
"Incompatible Characters" = "Caratteri incompatibili";
4844
"Filter" = "Filtra";
4945
"Status Bar" = "Barra di stato";
5046
"Editor" = "Editor";
@@ -479,8 +475,8 @@
479475

480476

481477

482-
/* MARK: Inspector */
483-
// Outline
478+
/* MARK: FilterField */
479+
// Menu items
484480
"Recent Filters" = "Filtri recenti";
485481
"Clear Recent Filters" = "Cancella recenti";
486482
"No Recent Filter" = "Nessun filtro recente";

CotEditor/ja.lproj/Localizable.strings

+2-6
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@
4040

4141

4242
// Accessibility labels
43-
"Inspector" = "インスペクタ";
44-
"Document Inspector" = "書類情報";
4543
"Outline" = "アウトライン";
46-
"Warnings" = "警告";
47-
"Incompatible Characters" = "非互換文字";
4844
"Filter" = "フィルタ";
4945
"Status Bar" = "ステータスバー";
5046
"Editor" = "エディタ";
@@ -479,8 +475,8 @@
479475

480476

481477

482-
/* MARK: Inspector */
483-
// Outline
478+
/* MARK: FilterField */
479+
// Menu items
484480
"Recent Filters" = "最近のフィルタ";
485481
"Clear Recent Filters" = "フィルタ履歴を消去";
486482
"No Recent Filter" = "フィルタ履歴がありません";

0 commit comments

Comments
 (0)