From bf1866056c9d286fdaafbff9c6351fc4e0dc2d44 Mon Sep 17 00:00:00 2001 From: Terry Yiu <963907+tyiu@users.noreply.github.com> Date: Sun, 8 Jan 2023 00:24:35 -0500 Subject: [PATCH] Change development locale to en-US and add es-419 as a target locale --- damus.xcodeproj/project.pbxproj | 15 +++-- .../Localizable.stringsdict | 0 damus/es-419.lproj/Localizable.stringsdict | 60 +++++++++++++++++++ 3 files changed, 71 insertions(+), 4 deletions(-) rename damus/{en.lproj => en-US.lproj}/Localizable.stringsdict (100%) create mode 100644 damus/es-419.lproj/Localizable.stringsdict diff --git a/damus.xcodeproj/project.pbxproj b/damus.xcodeproj/project.pbxproj index dad6456..1ed2f91 100644 --- a/damus.xcodeproj/project.pbxproj +++ b/damus.xcodeproj/project.pbxproj @@ -169,7 +169,8 @@ 3169CAE5294E69C000EE4006 /* EmptyTimelineView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyTimelineView.swift; sourceTree = ""; }; 3169CAEC294FCCFC00EE4006 /* Constants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = Constants.swift; path = damus/Util/Constants.swift; sourceTree = SOURCE_ROOT; }; 31D2E846295218AF006D67F8 /* Shimmer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Shimmer.swift; sourceTree = ""; }; - 3A4325A92961E11400BFCD9D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = en; path = en.lproj/Localizable.stringsdict; sourceTree = ""; }; + 3A2B8B0A296A8982009CC16D /* en-US */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "en-US"; path = "en-US.lproj/Localizable.stringsdict"; sourceTree = ""; }; + 3A5C4575296A879E0032D398 /* es-419 */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "es-419"; path = "es-419.lproj/Localizable.stringsdict"; sourceTree = ""; }; 3ACBCB77295FE5C70037388A /* TimeAgoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimeAgoTests.swift; sourceTree = ""; }; 4C06670028FC7C5900038D2A /* RelayView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RelayView.swift; sourceTree = ""; }; 4C06670528FCB08600038D2A /* ImageCarousel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImageCarousel.swift; sourceTree = ""; }; @@ -738,11 +739,12 @@ }; buildConfigurationList = 4CE6DEDE27F7A08100C66700 /* Build configuration list for PBXProject "damus" */; compatibilityVersion = "Xcode 13.0"; - developmentRegion = en; + developmentRegion = "en-US"; hasScannedForEncodings = 0; knownRegions = ( - en, Base, + "es-419", + "en-US", ); mainGroup = 4CE6DEDA27F7A08100C66700; packageReferences = ( @@ -962,7 +964,8 @@ 3A4325AA2961E11400BFCD9D /* Localizable.stringsdict */ = { isa = PBXVariantGroup; children = ( - 3A4325A92961E11400BFCD9D /* en */, + 3A5C4575296A879E0032D398 /* es-419 */, + 3A2B8B0A296A8982009CC16D /* en-US */, ); name = Localizable.stringsdict; sourceTree = ""; @@ -974,6 +977,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; @@ -1027,6 +1031,7 @@ ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; }; name = Debug; @@ -1035,6 +1040,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; @@ -1081,6 +1087,7 @@ MTL_FAST_MATH = YES; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OPTIMIZATION_LEVEL = "-O"; VALIDATE_PRODUCT = YES; }; diff --git a/damus/en.lproj/Localizable.stringsdict b/damus/en-US.lproj/Localizable.stringsdict similarity index 100% rename from damus/en.lproj/Localizable.stringsdict rename to damus/en-US.lproj/Localizable.stringsdict diff --git a/damus/es-419.lproj/Localizable.stringsdict b/damus/es-419.lproj/Localizable.stringsdict new file mode 100644 index 0000000..c3a3669 --- /dev/null +++ b/damus/es-419.lproj/Localizable.stringsdict @@ -0,0 +1,60 @@ + + + + + replying_to_one_and_others + + NSStringLocalizedFormatKey + Replying to %@%#@OTHERS@ + OTHERS + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + zero + + one + & 1 other + other + & %d others + + + replying_to_two_and_others + + NSStringLocalizedFormatKey + Replying to %@, %@%#@OTHERS@ + OTHERS + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + zero + + one + & 1 other + other + & %d others + + + collapsed_event_view_other_notes + + NSStringLocalizedFormatKey + ··· %#@NOTES@ ··· + NOTES + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + zero + 0 notes + one + 1 note + other + %d notes + + + +