diff options
Diffstat (limited to 'platform/ios')
-rw-r--r-- | platform/ios/CHANGELOG.md | 1 | ||||
-rw-r--r-- | platform/ios/framework/Settings.bundle/zh-Hans.lproj/Root.strings | 3 | ||||
-rw-r--r-- | platform/ios/ios.xcodeproj/project.pbxproj | 9 | ||||
-rw-r--r-- | platform/ios/resources/zh-Hans.lproj/Localizable.strings | 84 |
4 files changed, 97 insertions, 0 deletions
diff --git a/platform/ios/CHANGELOG.md b/platform/ios/CHANGELOG.md index 308542f79c..c43a5f24a3 100644 --- a/platform/ios/CHANGELOG.md +++ b/platform/ios/CHANGELOG.md @@ -7,6 +7,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT * Labels written in Arabic, Hebrew, and other scripts are written right-to-left. Arabic characters are correctly shaped. ([#6984](https://github.com/mapbox/mapbox-gl-native/pull/6984), [#7123](https://github.com/mapbox/mapbox-gl-native/pull/7123)) * Improved the line wrapping behavior of point-placed labels written in Chinese, Japanese, and Yi. ([#6828](https://github.com/mapbox/mapbox-gl-native/pull/6828)) * Fixed an issue where translucent, non-view-backed point annotations along tile boundaries would be drawn darker than expected. ([#6832](https://github.com/mapbox/mapbox-gl-native/pull/6832)) +* Added the Simplified Chinese localization. ([#7316](https://github.com/mapbox/mapbox-gl-native/pull/7316)) ## 3.4.0 diff --git a/platform/ios/framework/Settings.bundle/zh-Hans.lproj/Root.strings b/platform/ios/framework/Settings.bundle/zh-Hans.lproj/Root.strings new file mode 100644 index 0000000000..3cfb1a4bad --- /dev/null +++ b/platform/ios/framework/Settings.bundle/zh-Hans.lproj/Root.strings @@ -0,0 +1,3 @@ +"TELEMETRY_GROUP_TITLE" = "隐私设置"; +"TELEMETRY_SWITCH_TITLE" = "Mapbox传感数据"; +"TELEMETRY_GROUP_FOOTER" = "此设置允许应用将用户位置和数据以匿名的方式分享给Mapbox。"; diff --git a/platform/ios/ios.xcodeproj/project.pbxproj b/platform/ios/ios.xcodeproj/project.pbxproj index 2dcfd71216..85cd723a97 100644 --- a/platform/ios/ios.xcodeproj/project.pbxproj +++ b/platform/ios/ios.xcodeproj/project.pbxproj @@ -492,6 +492,9 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 20DABE861DF78148007AC5FF /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Foundation.strings"; sourceTree = "<group>"; }; + 20DABE881DF78148007AC5FF /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; }; + 20DABE8A1DF78149007AC5FF /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Root.strings"; sourceTree = "<group>"; }; 30E578111DAA7D690050F07E /* UIImage+MGLAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIImage+MGLAdditions.h"; path = "src/UIImage+MGLAdditions.h"; sourceTree = SOURCE_ROOT; }; 30E578121DAA7D690050F07E /* UIImage+MGLAdditions.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = "UIImage+MGLAdditions.mm"; path = "src/UIImage+MGLAdditions.mm"; sourceTree = SOURCE_ROOT; }; 350098B91D480108004B2AF0 /* MGLVectorSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MGLVectorSource.h; sourceTree = "<group>"; }; @@ -1755,6 +1758,7 @@ knownRegions = ( en, Base, + "zh-Hans", ); mainGroup = DA1DC9411CB6C1C2006E619F; productRefGroup = DA1DC94B1CB6C1C2006E619F /* Products */; @@ -2114,6 +2118,7 @@ isa = PBXVariantGroup; children = ( DA25D5C51CCDA06800607828 /* Base */, + 20DABE8A1DF78149007AC5FF /* zh-Hans */, ); name = Root.strings; sourceTree = "<group>"; @@ -2122,6 +2127,7 @@ isa = PBXVariantGroup; children = ( DA8933A01CCC951200E68420 /* Base */, + 20DABE881DF78148007AC5FF /* zh-Hans */, ); name = Localizable.strings; sourceTree = "<group>"; @@ -2130,6 +2136,7 @@ isa = PBXVariantGroup; children = ( DA8933BB1CCD2CA100E68420 /* Base */, + 20DABE861DF78148007AC5FF /* zh-Hans */, ); name = Foundation.strings; sourceTree = "<group>"; @@ -2165,6 +2172,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "c++14"; CLANG_CXX_LIBRARY = "libc++"; @@ -2216,6 +2224,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "c++14"; CLANG_CXX_LIBRARY = "libc++"; diff --git a/platform/ios/resources/zh-Hans.lproj/Localizable.strings b/platform/ios/resources/zh-Hans.lproj/Localizable.strings new file mode 100644 index 0000000000..087a09dbb8 --- /dev/null +++ b/platform/ios/resources/zh-Hans.lproj/Localizable.strings @@ -0,0 +1,84 @@ +/* Accessibility hint */ +"ANNOTATION_A11Y_HINT" = "显示信息"; + +/* No comment provided by engineer. */ +"API_CLIENT_400_DESC" = "The session data task failed. Original request was: %@"; + +/* No comment provided by engineer. */ +"API_CLIENT_400_REASON" = "The status code was %ld"; + +/* No comment provided by engineer. */ +"CANCEL" = "取消"; + +/* Accessibility hint */ +"COMPASS_A11Y_HINT" = "旋转地图使正北朝上"; + +/* Accessibility label */ +"COMPASS_A11Y_LABEL" = "指南针"; + +/* Compass abbreviation for north */ +"COMPASS_NORTH" = "北"; + +/* Copyright notice in attribution sheet */ +"COPY_MAPBOX" = "© Mapbox"; + +/* Copyright notice in attribution sheet */ +"COPY_OSM" = "© OpenStreetMap"; + +/* Instructions in Interface Builder designable; {key}, {plist file name} */ +"DESIGNABLE" = "在%2$@中将你的access token设为%1$@可在这里显示Mapbox上的地图\n\n更多说明请见"; + +/* Setup documentation URL display string; keep as short as possible */ +"FIRST_STEPS_URL" = "mapbox.com/help/first-steps-ios-sdk"; + +/* Accessibility hint */ +"INFO_A11Y_HINT" = "显示致谢、用户反馈及更多"; + +/* Accessibility label */ +"INFO_A11Y_LABEL" = "关于这个地图"; + +/* Accessibility label */ +"LOGO_A11Y_LABEL" = "Mapbox"; + +/* Accessibility label */ +"MAP_A11Y_LABEL" = "地图"; + +/* Map accessibility value */ +"MAP_A11Y_VALUE" = "地图缩放%1$d倍\n有%2$ld处标记可见"; + +/* Action in attribution sheet */ +"MAP_FEEDBACK" = "改进地图"; + +/* Action sheet title */ +"SDK_NAME" = "Mapbox iOS SDK"; + +/* Telemetry prompt message */ +"TELEMETRY_DISABLED_MSG" = "你可以提供匿名数据来帮助OpenStreetMap和Mapbox的地图变得更好。"; + +/* Telemetry prompt button */ +"TELEMETRY_DISABLED_OFF" = "暂不参与"; + +/* Telemetry prompt button */ +"TELEMETRY_DISABLED_ON" = "我要参与"; + +/* Telemetry prompt message */ +"TELEMETRY_ENABLED_MSG" = "你的匿名数据在帮助OpenStreetMap和Mapbox的地图变得更好。"; + +/* Telemetry prompt button */ +"TELEMETRY_ENABLED_OFF" = "不再参与"; + +/* Telemetry prompt button */ +"TELEMETRY_ENABLED_ON" = "继续参与"; + +/* Telemetry prompt button */ +"TELEMETRY_MORE" = "详细信息"; + +/* Action in attribution sheet */ +"TELEMETRY_NAME" = "Mapbox传感数据"; + +/* Telemetry prompt title */ +"TELEMETRY_TITLE" = "让Mapbox地图变得更好"; + +/* Default user location annotation title */ +"USER_DOT_TITLE" = "你在这里"; + |