Skip to content

Commit 144c591

Browse files
committed
Use Text(verbatim:) instead.
1 parent 0e76a18 commit 144c591

File tree

8 files changed

+16
-26
lines changed

8 files changed

+16
-26
lines changed

Xcodes.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
B0C6AD042AD6E65700E64698 /* ReleaseDateView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0C6AD032AD6E65700E64698 /* ReleaseDateView.swift */; };
2626
B0C6AD0B2AD9178E00E64698 /* IdenticalBuildView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0C6AD0A2AD9178E00E64698 /* IdenticalBuildView.swift */; };
2727
B0C6AD0D2AD91D7900E64698 /* IconView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0C6AD0C2AD91D7900E64698 /* IconView.swift */; };
28-
C02500722B5B7F7300E826A1 /* String+.swift in Sources */ = {isa = PBXBuildFile; fileRef = C02500712B5B7F7300E826A1 /* String+.swift */; };
2928
CA11E7BA2598476C00D2EE1C /* XcodeCommands.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA11E7B92598476C00D2EE1C /* XcodeCommands.swift */; };
3029
CA2518EC25A7FF2B00F08414 /* AppStateUpdateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA2518EB25A7FF2B00F08414 /* AppStateUpdateTests.swift */; };
3130
CA25192A25A9644800F08414 /* XcodeInstallState.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA25192925A9644800F08414 /* XcodeInstallState.swift */; };
@@ -210,7 +209,6 @@
210209
B0C6AD032AD6E65700E64698 /* ReleaseDateView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReleaseDateView.swift; sourceTree = "<group>"; };
211210
B0C6AD0A2AD9178E00E64698 /* IdenticalBuildView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IdenticalBuildView.swift; sourceTree = "<group>"; };
212211
B0C6AD0C2AD91D7900E64698 /* IconView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IconView.swift; sourceTree = "<group>"; };
213-
C02500712B5B7F7300E826A1 /* String+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+.swift"; sourceTree = "<group>"; };
214212
CA11E7B92598476C00D2EE1C /* XcodeCommands.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XcodeCommands.swift; sourceTree = "<group>"; };
215213
CA2518EB25A7FF2B00F08414 /* AppStateUpdateTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppStateUpdateTests.swift; sourceTree = "<group>"; };
216214
CA25192925A9644800F08414 /* XcodeInstallState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XcodeInstallState.swift; sourceTree = "<group>"; };
@@ -382,7 +380,6 @@
382380
536CFDD3263C9A8000026CE0 /* XcodesSheet.swift */,
383381
53CBAB2B263DCC9100410495 /* XcodesAlert.swift */,
384382
E84B7D0C2B296A8900DBDA2B /* NavigationSplitViewWrapper.swift */,
385-
C02500712B5B7F7300E826A1 /* String+.swift */,
386383
);
387384
path = Common;
388385
sourceTree = "<group>";
@@ -889,7 +886,6 @@
889886
CA9FF8662595130600E47BAF /* View+IsHidden.swift in Sources */,
890887
CAE4248C259A68B800B8B246 /* Optional+IsNotNil.swift in Sources */,
891888
B0C6AD0D2AD91D7900E64698 /* IconView.swift in Sources */,
892-
C02500722B5B7F7300E826A1 /* String+.swift in Sources */,
893889
CA9FF9362595B44700E47BAF /* HelperClient.swift in Sources */,
894890
B0C6AD042AD6E65700E64698 /* ReleaseDateView.swift in Sources */,
895891
CAA8587C25A2B37900ACF8C0 /* IsTesting.swift in Sources */,

Xcodes/Frontend/Common/String+.swift

Lines changed: 0 additions & 16 deletions
This file was deleted.

Xcodes/Frontend/InfoPane/CornerRadiusModifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extension View {
2929
struct Previews_CornerRadius_Previews: PreviewProvider {
3030
static var previews: some View {
3131
HStack {
32-
Text("XCODES RULES!".hideInLocalizations)
32+
Text(verbatim: "XCODES RULES!")
3333
}.xcodesBackground()
3434
}
3535
}

Xcodes/Frontend/InfoPane/IdenticalBuildView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct IdenticalBuildsView: View {
2929
.font(.headline)
3030

3131
ForEach(builds, id: \.description) { version in
32-
Text("\(version.appleDescription)".hideInLocalizations)
32+
Text(verbatim: "\(version.appleDescription)")
3333
.font(.subheadline)
3434
}
3535
}

Xcodes/Frontend/Preferences/AdvancedPreferencePane.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@ struct AdvancedPreferencePane: View {
8080

8181
GroupBox(label: Text("Active/Select")) {
8282
VStack(alignment: .leading) {
83-
Picker("OnSelect".hideInLocalizations, selection: $appState.onSelectActionType) {
83+
Picker(selection: $appState.onSelectActionType) {
8484

8585
Text(SelectedActionType.none.description)
8686
.tag(SelectedActionType.none)
8787
Text(SelectedActionType.rename.description)
8888
.tag(SelectedActionType.rename)
89+
} label: {
90+
Text(verbatim: "OnSelect")
8991
}
9092
.labelsHidden()
9193
.pickerStyle(.inline)

Xcodes/Frontend/SignIn/SignInCredentialsView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ struct SignInCredentialsView: View {
1313
HStack {
1414
Text("AppleID")
1515
.frame(minWidth: 100, alignment: .trailing)
16-
TextField("example@icloud.com".hideInLocalizations, text: $username)
16+
TextField(text: $username) {
17+
Text(verbatim: "example@icloud.com")
18+
}
1719
}
1820
HStack {
1921
Text("Password")

Xcodes/Frontend/View+IsHidden.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ extension View {
1414
struct View_IsHidden_Previews: PreviewProvider {
1515
static var previews: some View {
1616
Group {
17-
Text("Not Hidden".hideInLocalizations)
17+
Text(verbatim: "Not Hidden")
1818
.isHidden(false)
1919

20-
Text("Hidden".hideInLocalizations)
20+
Text(verbatim: "Hidden")
2121
.isHidden(true)
2222
}
2323
}

Xcodes/Resources/Localizable.xcstrings

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3073,6 +3073,12 @@
30733073
"state" : "translated",
30743074
"value" : "Apple Silikon"
30753075
}
3076+
},
3077+
"zh-Hans" : {
3078+
"stringUnit" : {
3079+
"state" : "translated",
3080+
"value" : ""
3081+
}
30763082
}
30773083
}
30783084
},

0 commit comments

Comments
 (0)