Skip to content

Commit 9d4dc2d

Browse files
committed
Separate LinkButton.xcstrings
1 parent 4c2cc0d commit 9d4dc2d

File tree

14 files changed

+93
-35
lines changed

14 files changed

+93
-35
lines changed

CotEditor.xcodeproj/project.pbxproj

+14
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@
445445
2A7FEF342B90E1C20042BEFF /* Character.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 2A7FEF322B90E1C20042BEFF /* Character.xcstrings */; };
446446
2A7FEF382B90EC1E0042BEFF /* CommandBar.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 2A7FEF362B90EC1E0042BEFF /* CommandBar.xcstrings */; };
447447
2A7FEF392B90EC1E0042BEFF /* CommandBar.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 2A7FEF362B90EC1E0042BEFF /* CommandBar.xcstrings */; };
448+
2A7FEF3C2B90F0610042BEFF /* LinkButton.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 2A7FEF3A2B90F0610042BEFF /* LinkButton.xcstrings */; };
449+
2A7FEF3D2B90F0610042BEFF /* LinkButton.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 2A7FEF3A2B90F0610042BEFF /* LinkButton.xcstrings */; };
448450
2A80BE8D27FFA61700D2F7FF /* LineEndingScanner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A80BE8C27FFA61700D2F7FF /* LineEndingScanner.swift */; };
449451
2A80BE8E27FFA61700D2F7FF /* LineEndingScanner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A80BE8C27FFA61700D2F7FF /* LineEndingScanner.swift */; };
450452
2A80BE9227FFFA8900D2F7FF /* LineEndingScannerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A80BE8F27FFFA8900D2F7FF /* LineEndingScannerTests.swift */; };
@@ -1126,6 +1128,7 @@
11261128
2A7FEF1D2B90C7050042BEFF /* Toolbar.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; name = Toolbar.xcstrings; path = mul.lproj/Toolbar.xcstrings; sourceTree = "<group>"; };
11271129
2A7FEF322B90E1C20042BEFF /* Character.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; name = Character.xcstrings; path = mul.lproj/Character.xcstrings; sourceTree = "<group>"; };
11281130
2A7FEF372B90EC1E0042BEFF /* mul */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; name = mul; path = mul.lproj/CommandBar.xcstrings; sourceTree = "<group>"; };
1131+
2A7FEF3B2B90F0610042BEFF /* mul */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; name = mul; path = mul.lproj/LinkButton.xcstrings; sourceTree = "<group>"; };
11291132
2A80BE8C27FFA61700D2F7FF /* LineEndingScanner.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LineEndingScanner.swift; sourceTree = "<group>"; };
11301133
2A80BE8F27FFFA8900D2F7FF /* LineEndingScannerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LineEndingScannerTests.swift; sourceTree = "<group>"; };
11311134
2A80C65D1CEE33C100AA664D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = en; path = en.lproj/Credits.html; sourceTree = "<group>"; };
@@ -2055,6 +2058,7 @@
20552058
2A7FEF0D2B90B1800042BEFF /* Views */ = {
20562059
isa = PBXGroup;
20572060
children = (
2061+
2A7FEF3A2B90F0610042BEFF /* LinkButton.xcstrings */,
20582062
2A39ACFE2B8CEE2F00E216C9 /* AddRemoveButton.xcstrings */,
20592063
2A7FEF0A2B90B05C0042BEFF /* FilterField.xcstrings */,
20602064
);
@@ -2648,6 +2652,7 @@
26482652
2AA672B42B8F9F1C00B8F7E6 /* Document.xcstrings in Resources */,
26492653
2AA672A22B8F8AA300B8F7E6 /* DocumentWindow.xcstrings in Resources */,
26502654
2A1E7E192B8D715F004F0C07 /* EditorOpacity.xcstrings in Resources */,
2655+
2A7FEF3C2B90F0610042BEFF /* LinkButton.xcstrings in Resources */,
26512656
2A39AC812B8CDFC800E216C9 /* EncodingList.xcstrings in Resources */,
26522657
2AA6726C2B8F75CC00B8F7E6 /* FileDropItem.xcstrings in Resources */,
26532658
2A7FEF0B2B90B05C0042BEFF /* FilterField.xcstrings in Resources */,
@@ -2707,6 +2712,7 @@
27072712
buildActionMask = 2147483647;
27082713
files = (
27092714
2A1EB5C419AD469500C1E37E /* Assets.xcassets in Resources */,
2715+
2A7FEF3D2B90F0610042BEFF /* LinkButton.xcstrings in Resources */,
27102716
2A3A758E19E77C84001DAB88 /* Syntaxes in Resources */,
27112717
2ABC76241909BF5200D2B592 /* Themes in Resources */,
27122718
2A6E3F3D19B5218300A63E97 /* CotEditor.help in Resources */,
@@ -3680,6 +3686,14 @@
36803686
name = CommandBar.xcstrings;
36813687
sourceTree = "<group>";
36823688
};
3689+
2A7FEF3A2B90F0610042BEFF /* LinkButton.xcstrings */ = {
3690+
isa = PBXVariantGroup;
3691+
children = (
3692+
2A7FEF3B2B90F0610042BEFF /* mul */,
3693+
);
3694+
name = LinkButton.xcstrings;
3695+
sourceTree = "<group>";
3696+
};
36833697
2A80C65C1CEE33C100AA664D /* Credits.html */ = {
36843698
isa = PBXVariantGroup;
36853699
children = (

CotEditor/Sources/LinkButton.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ struct LinkButton: View {
3636
Link(destination: url) {
3737
Image(systemName: "arrow.forward")
3838
.symbolVariant(.circle)
39-
.accessibilityLabel("Jump to URL")
39+
.accessibilityLabel(String(localized: "Jump to URL", table: "LinkButton"))
4040
}
4141
.buttonStyle(.borderless)
42-
.help(String(localized: "Jump to URL", comment: "tooltip for link button in URL field"))
42+
.help(String(localized: "Jump to URL", table: "LinkButton", comment: "tooltip for link button in URL field"))
4343
}
4444
}
4545
}

CotEditor/cs.lproj/Localizable.strings

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
"Transparent" = "Průhledné";
3333
"Opaque" = "Neprůhledné";
3434

35-
// tooltip for link button in URL field
36-
"Jump to URL" = "Přejít na URL";
37-
3835
// words with symbols
3936
" (%@)" = " (%@)";
4037

CotEditor/de.lproj/Localizable.strings

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
"Transparent" = "Durchsichtig";
3333
"Opaque" = "Undurchsichtig";
3434

35-
// tooltip for link button in URL field
36-
"Jump to URL" = "URL öffnen";
37-
3835
// words with symbols
3936
" (%@)" = " (%@)";
4037

CotEditor/en-GB.lproj/Localizable.strings

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
"Transparent" = "Transparent";
3333
"Opaque" = "Opaque";
3434

35-
// tooltip for link button in URL field
36-
"Jump to URL" = "Jump to URL";
37-
3835
// words with symbols
3936
" (%@)" = " (%@)";
4037

CotEditor/es.lproj/Localizable.strings

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
"Transparent" = "Transparente";
3333
"Opaque" = "Opaco";
3434

35-
// tooltip for link button in URL field
36-
"Jump to URL" = "Saltar a la URL";
37-
3835
// words with symbols
3936
" (%@)" = " (%@)";
4037

CotEditor/fr.lproj/Localizable.strings

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
"Transparent" = "Transparent";
3333
"Opaque" = "Opaque";
3434

35-
// tooltip for link button in URL field
36-
"Jump to URL" = "Ouvrir l’URL";
37-
3835
// words with symbols
3936
" (%@)" = " (%@)";
4037

CotEditor/it.lproj/Localizable.strings

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
"Transparent" = "Trasparente";
3333
"Opaque" = "Opaco";
3434

35-
// tooltip for link button in URL field
36-
"Jump to URL" = "Vai all’URL";
37-
3835
// words with symbols
3936
" (%@)" = " (%@)";
4037

CotEditor/ja.lproj/Localizable.strings

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
"Transparent" = "透明";
3333
"Opaque" = "不透明";
3434

35-
// tooltip for link button in URL field
36-
"Jump to URL" = "URLにジャンプ";
37-
3835
// words with symbols
3936
" (%@)" = "(%@)";
4037

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"sourceLanguage" : "en",
3+
"strings" : {
4+
"Jump to URL" : {
5+
"comment" : "tooltip for link button in URL field",
6+
"localizations" : {
7+
"cs" : {
8+
"stringUnit" : {
9+
"state" : "translated",
10+
"value" : "Přejít na URL"
11+
}
12+
},
13+
"de" : {
14+
"stringUnit" : {
15+
"state" : "translated",
16+
"value" : "URL öffnen"
17+
}
18+
},
19+
"en-GB" : {
20+
"stringUnit" : {
21+
"state" : "translated",
22+
"value" : "Jump to URL"
23+
}
24+
},
25+
"es" : {
26+
"stringUnit" : {
27+
"state" : "translated",
28+
"value" : "Saltar a la URL"
29+
}
30+
},
31+
"fr" : {
32+
"stringUnit" : {
33+
"state" : "translated",
34+
"value" : "Ouvrir l’URL"
35+
}
36+
},
37+
"it" : {
38+
"stringUnit" : {
39+
"state" : "translated",
40+
"value" : "Vai all’URL"
41+
}
42+
},
43+
"ja" : {
44+
"stringUnit" : {
45+
"state" : "translated",
46+
"value" : "URLにジャンプ"
47+
}
48+
},
49+
"pt" : {
50+
"stringUnit" : {
51+
"state" : "translated",
52+
"value" : "Visite o URL"
53+
}
54+
},
55+
"tr" : {
56+
"stringUnit" : {
57+
"state" : "translated",
58+
"value" : "URL’ye Atla"
59+
}
60+
},
61+
"zh-Hans" : {
62+
"stringUnit" : {
63+
"state" : "translated",
64+
"value" : "跳转到URL"
65+
}
66+
},
67+
"zh-Hant" : {
68+
"stringUnit" : {
69+
"state" : "translated",
70+
"value" : "跳轉到URL"
71+
}
72+
}
73+
}
74+
}
75+
},
76+
"version" : "1.0"
77+
}

CotEditor/pt.lproj/Localizable.strings

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
"Transparent" = "Transparente";
3333
"Opaque" = "Opaco";
3434

35-
// tooltip for link button in URL field
36-
"Jump to URL" = "Visite o URL";
37-
3835
// words with symbols
3936
" (%@)" = " (%@)";
4037

CotEditor/tr.lproj/Localizable.strings

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
"Transparent" = "Saydam";
3333
"Opaque" = "Mat";
3434

35-
// tooltip for link button in URL field
36-
"Jump to URL" = "URL’ye Atla";
37-
3835
// words with symbols
3936
" (%@)" = " (%@)";
4037

CotEditor/zh-Hans.lproj/Localizable.strings

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
"Transparent" = "透明";
3333
"Opaque" = "不透明";
3434

35-
// tooltip for link button in URL field
36-
"Jump to URL" = "跳转到URL";
37-
3835

3936
// words with symbols
4037
" (%@)" = "(%@)";

CotEditor/zh-Hant.lproj/Localizable.strings

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
"Transparent" = "透明";
3333
"Opaque" = "不透明";
3434

35-
// tooltip for link button in URL field
36-
"Jump to URL" = "跳轉到URL";
37-
3835
// words with symbols
3936
" (%@)" = "(%@)";
4037

0 commit comments

Comments
 (0)