Skip to content

Commit ea30252

Browse files
authored
Translations (LoopKit#1)
* Roundtrip localizations * Updates from Lokalise * Add missing languages * Add missing languages and localization macros
1 parent 27c84ef commit ea30252

File tree

6 files changed

+125
-0
lines changed

6 files changed

+125
-0
lines changed

G7SensorKit.xcodeproj/project.pbxproj

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
C17F514F291EB87600555EB5 /* G7SensorKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C17F50C6291EAC3800555EB5 /* G7SensorKit.framework */; };
5555
C17F5156291EBD8600555EB5 /* Image.swift in Sources */ = {isa = PBXBuildFile; fileRef = C17F5155291EBD8600555EB5 /* Image.swift */; };
5656
C17F5157291EBD9900555EB5 /* TimeInterval.swift in Sources */ = {isa = PBXBuildFile; fileRef = C17F513F291EB27D00555EB5 /* TimeInterval.swift */; };
57+
C1821672297E55A7001EB097 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = C1821670297E55A7001EB097 /* Localizable.strings */; };
5758
C1E71720292D84FE00DA646F /* G7ProgressBarState.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1E7171F292D84FE00DA646F /* G7ProgressBarState.swift */; };
5859
/* End PBXBuildFile section */
5960

@@ -106,6 +107,8 @@
106107
/* Begin PBXFileReference section */
107108
C109F149291ECCE2008EA5B6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
108109
C109F14B291ED66F008EA5B6 /* G7GlucoseMessageTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = G7GlucoseMessageTests.swift; sourceTree = "<group>"; };
110+
C11613462983096D00777E7C /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/Localizable.strings; sourceTree = "<group>"; };
111+
C11A2BCD29830A3100AC5135 /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/Localizable.strings; sourceTree = "<group>"; };
109112
C1409A08291EC22F006BE8D0 /* OSLog.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OSLog.swift; sourceTree = "<group>"; };
110113
C1409A0A291EC258006BE8D0 /* OSLog.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OSLog.swift; sourceTree = "<group>"; };
111114
C17F50C6291EAC3800555EB5 /* G7SensorKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = G7SensorKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -147,6 +150,9 @@
147150
C17F514C291EB79E00555EB5 /* AlgorithmError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlgorithmError.swift; sourceTree = "<group>"; };
148151
C17F5155291EBD8600555EB5 /* Image.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Image.swift; sourceTree = "<group>"; };
149152
C17F5158291EBE7500555EB5 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
153+
C1821671297E55A7001EB097 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Localizable.strings; sourceTree = "<group>"; };
154+
C18886E529830A5E004C982D /* nl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nl; path = nl.lproj/Localizable.strings; sourceTree = "<group>"; };
155+
C1BCB5AE298309C4001C50FF /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Localizable.strings; sourceTree = "<group>"; };
150156
C1E7171F292D84FE00DA646F /* G7ProgressBarState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = G7ProgressBarState.swift; sourceTree = "<group>"; };
151157
/* End PBXFileReference section */
152158

@@ -213,6 +219,7 @@
213219
C17F50C8291EAC3800555EB5 /* G7SensorKit */ = {
214220
isa = PBXGroup;
215221
children = (
222+
C1821670297E55A7001EB097 /* Localizable.strings */,
216223
C17F513D291EB1A500555EB5 /* BluetoothServices.swift */,
217224
C17F514C291EB79E00555EB5 /* AlgorithmError.swift */,
218225
C17F5134291EB06A00555EB5 /* AlgorithmState.swift */,
@@ -470,6 +477,25 @@
470477
knownRegions = (
471478
en,
472479
Base,
480+
es,
481+
nb,
482+
it,
483+
fr,
484+
nl,
485+
de,
486+
ar,
487+
"zh-Hans",
488+
da,
489+
fi,
490+
he,
491+
ja,
492+
pl,
493+
"pt-BR",
494+
ro,
495+
ru,
496+
sv,
497+
tr,
498+
vi,
473499
);
474500
mainGroup = C17F50BC291EAC3800555EB5;
475501
productRefGroup = C17F50C7291EAC3800555EB5 /* Products */;
@@ -504,6 +530,7 @@
504530
buildActionMask = 2147483647;
505531
files = (
506532
C109F14A291ECCE2008EA5B6 /* Assets.xcassets in Resources */,
533+
C1821672297E55A7001EB097 /* Localizable.strings in Resources */,
507534
);
508535
runOnlyForDeploymentPostprocessing = 0;
509536
};
@@ -608,6 +635,22 @@
608635
};
609636
/* End PBXTargetDependency section */
610637

638+
/* Begin PBXVariantGroup section */
639+
C1821670297E55A7001EB097 /* Localizable.strings */ = {
640+
isa = PBXVariantGroup;
641+
children = (
642+
C1821671297E55A7001EB097 /* es */,
643+
C11613462983096D00777E7C /* nb */,
644+
C1BCB5AE298309C4001C50FF /* it */,
645+
C11A2BCD29830A3100AC5135 /* fr */,
646+
C18886E529830A5E004C982D /* nl */,
647+
);
648+
name = Localizable.strings;
649+
path = ../G7SensorKitUI;
650+
sourceTree = "<group>";
651+
};
652+
/* End PBXVariantGroup section */
653+
611654
/* Begin XCBuildConfiguration section */
612655
C17F50D6291EAC3800555EB5 /* Debug */ = {
613656
isa = XCBuildConfiguration;
@@ -661,6 +704,11 @@
661704
GCC_WARN_UNUSED_FUNCTION = YES;
662705
GCC_WARN_UNUSED_VARIABLE = YES;
663706
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
707+
LOCALIZED_STRING_MACRO_NAMES = (
708+
NSLocalizedString,
709+
CFCopyLocalizedString,
710+
LocalizedString,
711+
);
664712
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
665713
MTL_FAST_MATH = YES;
666714
ONLY_ACTIVE_ARCH = YES;
@@ -717,6 +765,11 @@
717765
GCC_WARN_UNUSED_FUNCTION = YES;
718766
GCC_WARN_UNUSED_VARIABLE = YES;
719767
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
768+
LOCALIZED_STRING_MACRO_NAMES = (
769+
NSLocalizedString,
770+
CFCopyLocalizedString,
771+
LocalizedString,
772+
);
720773
MTL_ENABLE_DEBUG_INFO = NO;
721774
MTL_FAST_MATH = YES;
722775
SWIFT_COMPILATION_MODE = wholemodule;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* No comment provided by engineer. */
2+
"Bluetooth" = "Bluetooth";
3+
4+
/* No comment provided by engineer. */
5+
"Configuration" = "Configuración";
6+
7+
/* No comment provided by engineer. */
8+
"Done" = "Hecho";
9+
10+
/* No comment provided by engineer. */
11+
"Last Reading" = "Último dato";
12+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* No comment provided by engineer. */
2+
"Are you sure you want to delete this CGM?" = "Voulez-vous vraiment supprimer cet MGC?";
3+
4+
/* No comment provided by engineer. */
5+
"Last Reading" = "Dernière lecture";
6+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* No comment provided by engineer. */
2+
"Are you sure you want to delete this CGM?" = "Sei sicuro di voler eliminare questo CGM?";
3+
4+
/* No comment provided by engineer. */
5+
"Bluetooth" = "Bluetooth";
6+
7+
/* No comment provided by engineer. */
8+
"Configuration" = "Configurazione";
9+
10+
/* No comment provided by engineer. */
11+
"Delete CGM" = "Elimina Sensore";
12+
13+
/* No comment provided by engineer. */
14+
"Done" = "Fatto";
15+
16+
/* No comment provided by engineer. */
17+
"Last Reading" = "Ultima Lettura";
18+
19+
/* No comment provided by engineer. */
20+
"Scan for new sensor" = "Scansiona un nuovo sensore";
21+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* No comment provided by engineer. */
2+
"Are you sure you want to delete this CGM?" = "Er du sikker på at du vil slette denne CGM?";
3+
4+
/* No comment provided by engineer. */
5+
"Bluetooth" = "blåtann";
6+
7+
/* No comment provided by engineer. */
8+
"Delete CGM" = "Slett CGM";
9+
10+
/* No comment provided by engineer. */
11+
"Done" = "Ferdig";
12+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* No comment provided by engineer. */
2+
"Are you sure you want to delete this CGM?" = "Weet je zeker dat je deze CGM wilt verwijderen?";
3+
4+
/* No comment provided by engineer. */
5+
"Bluetooth" = "Bluetooth";
6+
7+
/* No comment provided by engineer. */
8+
"Configuration" = "Configuratie";
9+
10+
/* No comment provided by engineer. */
11+
"Delete CGM" = "Verwijder CGM";
12+
13+
/* No comment provided by engineer. */
14+
"Done" = "Gereed";
15+
16+
/* No comment provided by engineer. */
17+
"Last Reading" = "Laatste Meting";
18+
19+
/* No comment provided by engineer. */
20+
"Scan for new sensor" = "Scannen op nieuwe sensor";
21+

0 commit comments

Comments
 (0)