Skip to content

Commit 132252a

Browse files
authored
Merge pull request #29 from LoopKit/convert_to_xcstrings
Convert to String Catalogs
2 parents dc4ab0f + a3cfc06 commit 132252a

File tree

23 files changed

+1136
-622
lines changed

23 files changed

+1136
-622
lines changed

LoopOnboarding.xcodeproj/project.pbxproj

Lines changed: 8 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
4B67E2D1289B4EDB002D92AF /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 4B67E2CF289B4EDB002D92AF /* Localizable.strings */; };
1110
A936A8C925BC99240085119C /* LoopOnboardingKit.h in Headers */ = {isa = PBXBuildFile; fileRef = A936A8BB25BC99240085119C /* LoopOnboardingKit.h */; settings = {ATTRIBUTES = (Public, ); }; };
1211
A936A8E725BC99330085119C /* LoopOnboardingKitUI.h in Headers */ = {isa = PBXBuildFile; fileRef = A936A8D925BC99320085119C /* LoopOnboardingKitUI.h */; settings = {ATTRIBUTES = (Public, ); }; };
1312
A936A8FB25BC99470085119C /* LoopOnboardingPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = A936A8F925BC99470085119C /* LoopOnboardingPlugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -29,6 +28,7 @@
2928
A9CE7FEB25BCABE800C04F9B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A9CE7FEA25BCABE800C04F9B /* Assets.xcassets */; };
3029
A9CE7FF325BCAC1800C04F9B /* LoopOnboardingPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CE7FF225BCAC1800C04F9B /* LoopOnboardingPlugin.swift */; };
3130
A9CE802725BCAF9800C04F9B /* LoopOnboardingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A936A8B925BC99240085119C /* LoopOnboardingKit.framework */; };
31+
B66D1F792E6A83FD00471149 /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = B66D1F782E6A83FD00471149 /* Localizable.xcstrings */; };
3232
C1463F772868B51700CFD57F /* LoopOnboardingKitUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A936A8D725BC99320085119C /* LoopOnboardingKitUI.framework */; platformFilter = ios; };
3333
C1463F782868B51700CFD57F /* LoopOnboardingKitUI.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = A936A8D725BC99320085119C /* LoopOnboardingKitUI.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
3434
C1463F7B2868B54200CFD57F /* LoopOnboardingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A936A8B925BC99240085119C /* LoopOnboardingKit.framework */; platformFilter = ios; };
@@ -100,7 +100,6 @@
100100
/* End PBXCopyFilesBuildPhase section */
101101

102102
/* Begin PBXFileReference section */
103-
4B67E2D0289B4EDB002D92AF /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = "<group>"; };
104103
A936A8B925BC99240085119C /* LoopOnboardingKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = LoopOnboardingKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
105104
A936A8BB25BC99240085119C /* LoopOnboardingKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LoopOnboardingKit.h; sourceTree = "<group>"; };
106105
A936A8BC25BC99240085119C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -126,33 +125,14 @@
126125
A9CE7FE225BCABD500C04F9B /* LoopOnboardingUI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoopOnboardingUI.swift; sourceTree = "<group>"; };
127126
A9CE7FEA25BCABE800C04F9B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
128127
A9CE7FF225BCAC1800C04F9B /* LoopOnboardingPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoopOnboardingPlugin.swift; sourceTree = "<group>"; };
129-
C116134E2983096D00777E7C /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/Localizable.strings; sourceTree = "<group>"; };
130-
C11A2BD029830A3100AC5135 /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/Localizable.strings; sourceTree = "<group>"; };
131-
C121D8D529C7866D00DA0520 /* cs */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = cs; path = cs.lproj/Localizable.strings; sourceTree = "<group>"; };
132-
C122DF0529BBFAAE00321F8D /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/Localizable.strings; sourceTree = "<group>"; };
128+
B66D1F782E6A83FD00471149 /* Localizable.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = Localizable.xcstrings; sourceTree = "<group>"; };
133129
C14A7E77295E563D00CD87B4 /* LoopSupportKitUI.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = LoopSupportKitUI.framework; sourceTree = BUILT_PRODUCTS_DIR; };
134-
C15A582C29C7866600D3A5A1 /* ar */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ar; path = ar.lproj/Localizable.strings; sourceTree = "<group>"; };
135130
C16121EA27C457C400BCDE2A /* ImportSettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImportSettingsView.swift; sourceTree = "<group>"; };
136-
C16EF1FA298639B800A944BB /* pl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pl; path = pl.lproj/Localizable.strings; sourceTree = "<group>"; };
137-
C182168D297E55A7001EB097 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Localizable.strings; sourceTree = "<group>"; };
138-
C18886E929830A5E004C982D /* nl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nl; path = nl.lproj/Localizable.strings; sourceTree = "<group>"; };
139-
C18B7261299581C600F138D3 /* da */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = da; path = da.lproj/Localizable.strings; sourceTree = "<group>"; };
140-
C192C60629C78711001EFEA6 /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/Localizable.strings; sourceTree = "<group>"; };
141-
C1AD630329BBFAA80002685D /* ro */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ro; path = ro.lproj/Localizable.strings; sourceTree = "<group>"; };
142-
C1B0CFDC29C786BF0045B04D /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Localizable.strings; sourceTree = "<group>"; };
143-
C1B267A02995824000BCB7C1 /* tr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = tr; path = tr.lproj/Localizable.strings; sourceTree = "<group>"; };
144-
C1BCB5BD298309C4001C50FF /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Localizable.strings; sourceTree = "<group>"; };
145131
C1C1349927DD37C80097B5AD /* NightscoutServiceKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = NightscoutServiceKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
146132
C1C134A227DD38310097B5AD /* NightscoutServiceKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = NightscoutServiceKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
147133
C1D0B62D2986C8730098D215 /* TimeZone.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimeZone.swift; sourceTree = "<group>"; };
148134
C1D936DA27D166BF00926313 /* HKUnit.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HKUnit.swift; sourceTree = "<group>"; };
149135
C1D936DE27D264D600926313 /* AppleHealthAuthView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppleHealthAuthView.swift; sourceTree = "<group>"; };
150-
C1E5A6E029C7870100703C90 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/Localizable.strings; sourceTree = "<group>"; };
151-
C1E693D229C786E200410918 /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-BR"; path = "pt-BR.lproj/Localizable.strings"; sourceTree = "<group>"; };
152-
C1F4FD5B29C7869800D7ACBC /* fi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fi; path = fi.lproj/Localizable.strings; sourceTree = "<group>"; };
153-
C1FA388F29355E6D00951C0F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
154-
C1FDCC0C29C786F90056E652 /* sk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sk; path = sk.lproj/Localizable.strings; sourceTree = "<group>"; };
155-
C1FF3D4F29C786A900BDC1EC /* he */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = he; path = he.lproj/Localizable.strings; sourceTree = "<group>"; };
156136
/* End PBXFileReference section */
157137

158138
/* Begin PBXFrameworksBuildPhase section */
@@ -226,7 +206,7 @@
226206
children = (
227207
A936A8D925BC99320085119C /* LoopOnboardingKitUI.h */,
228208
A936A8DA25BC99320085119C /* Info.plist */,
229-
4B67E2CF289B4EDB002D92AF /* Localizable.strings */,
209+
B66D1F782E6A83FD00471149 /* Localizable.xcstrings */,
230210
A9CE7FE225BCABD500C04F9B /* LoopOnboardingUI.swift */,
231211
A9CE7FEA25BCABE800C04F9B /* Assets.xcassets */,
232212
A9B3CE7F25BCBD75002D9E92 /* Extensions */,
@@ -475,7 +455,7 @@
475455
buildActionMask = 2147483647;
476456
files = (
477457
A9CE7FEB25BCABE800C04F9B /* Assets.xcassets in Resources */,
478-
4B67E2D1289B4EDB002D92AF /* Localizable.strings in Resources */,
458+
B66D1F792E6A83FD00471149 /* Localizable.xcstrings in Resources */,
479459
);
480460
runOnlyForDeploymentPostprocessing = 0;
481461
};
@@ -561,37 +541,6 @@
561541
};
562542
/* End PBXTargetDependency section */
563543

564-
/* Begin PBXVariantGroup section */
565-
4B67E2CF289B4EDB002D92AF /* Localizable.strings */ = {
566-
isa = PBXVariantGroup;
567-
children = (
568-
4B67E2D0289B4EDB002D92AF /* de */,
569-
C1FA388F29355E6D00951C0F /* en */,
570-
C182168D297E55A7001EB097 /* es */,
571-
C116134E2983096D00777E7C /* nb */,
572-
C1BCB5BD298309C4001C50FF /* it */,
573-
C11A2BD029830A3100AC5135 /* fr */,
574-
C18886E929830A5E004C982D /* nl */,
575-
C16EF1FA298639B800A944BB /* pl */,
576-
C18B7261299581C600F138D3 /* da */,
577-
C1B267A02995824000BCB7C1 /* tr */,
578-
C1AD630329BBFAA80002685D /* ro */,
579-
C122DF0529BBFAAE00321F8D /* ru */,
580-
C15A582C29C7866600D3A5A1 /* ar */,
581-
C121D8D529C7866D00DA0520 /* cs */,
582-
C1F4FD5B29C7869800D7ACBC /* fi */,
583-
C1FF3D4F29C786A900BDC1EC /* he */,
584-
C1B0CFDC29C786BF0045B04D /* ja */,
585-
C1E693D229C786E200410918 /* pt-BR */,
586-
C1FDCC0C29C786F90056E652 /* sk */,
587-
C1E5A6E029C7870100703C90 /* sv */,
588-
C192C60629C78711001EFEA6 /* vi */,
589-
);
590-
name = Localizable.strings;
591-
sourceTree = "<group>";
592-
};
593-
/* End PBXVariantGroup section */
594-
595544
/* Begin XCBuildConfiguration section */
596545
A936A8AA25BC98DA0085119C /* Debug */ = {
597546
isa = XCBuildConfiguration;
@@ -685,6 +634,7 @@
685634
GCC_WARN_UNUSED_PARAMETER = YES;
686635
GCC_WARN_UNUSED_VARIABLE = YES;
687636
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
637+
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
688638
LOCALIZED_STRING_MACRO_NAMES = (
689639
NSLocalizedString,
690640
CFLocalizedString,
@@ -695,6 +645,7 @@
695645
ONLY_ACTIVE_ARCH = YES;
696646
SDKROOT = iphoneos;
697647
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
648+
SWIFT_EMIT_LOC_STRINGS = YES;
698649
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
699650
SWIFT_VERSION = 5.0;
700651
VERSIONING_SYSTEM = "apple-generic";
@@ -789,6 +740,7 @@
789740
GCC_WARN_UNUSED_PARAMETER = YES;
790741
GCC_WARN_UNUSED_VARIABLE = YES;
791742
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
743+
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
792744
LOCALIZED_STRING_MACRO_NAMES = (
793745
NSLocalizedString,
794746
CFLocalizedString,
@@ -798,6 +750,7 @@
798750
MTL_FAST_MATH = YES;
799751
SDKROOT = iphoneos;
800752
SWIFT_COMPILATION_MODE = wholemodule;
753+
SWIFT_EMIT_LOC_STRINGS = YES;
801754
SWIFT_OPTIMIZATION_LEVEL = "-O";
802755
SWIFT_VERSION = 5.0;
803756
VALIDATE_PRODUCT = YES;

0 commit comments

Comments
 (0)