From c00a1565f4e18a43628388e4d1d772539ca89dd5 Mon Sep 17 00:00:00 2001 From: bluesea <307723040@qq.com> Date: Thu, 14 Mar 2024 14:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=9A=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=EF=BC=8C=E9=80=9A=E8=BF=87=E5=A4=9A=E8=AF=AD=E8=A8=80=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E9=9A=90=E7=A7=81=E6=94=BF=E7=AD=96=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SwiftProject.xcodeproj/project.pbxproj | 17 +++++++++++++++++ .../Project/Controller/CCHomeController.swift | 3 ++- .../SwiftProject/Project/Util/ZZHHelper.swift | 2 ++ .../SwiftProject/en.lproj/Localizable.strings | 2 ++ .../zh-Hans.lproj/Localizable.strings | 2 ++ 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 SwiftProject/SwiftProject/en.lproj/Localizable.strings create mode 100644 SwiftProject/SwiftProject/zh-Hans.lproj/Localizable.strings diff --git a/SwiftProject/SwiftProject.xcodeproj/project.pbxproj b/SwiftProject/SwiftProject.xcodeproj/project.pbxproj index 51e2a2f..1041003 100644 --- a/SwiftProject/SwiftProject.xcodeproj/project.pbxproj +++ b/SwiftProject/SwiftProject.xcodeproj/project.pbxproj @@ -14,6 +14,7 @@ 00D33BF42B998BF700604A44 /* SpatialImageConvertor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00D33BF32B998BF700604A44 /* SpatialImageConvertor.swift */; }; 00D33BF62B99A19900604A44 /* SpatialVideoConvertor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00D33BF52B99A19900604A44 /* SpatialVideoConvertor.swift */; }; 00D33BFA2B9AB21A00604A44 /* ZZHAVExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00D33BF92B9AB21A00604A44 /* ZZHAVExtension.swift */; }; + 00EB2D022BA2D15700924D84 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 00EB2D012BA2D14700924D84 /* Localizable.strings */; }; 00ED6B342BA04AC200915BDE /* PlayByTransferConvertor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00ED6B332BA04AC200915BDE /* PlayByTransferConvertor.swift */; }; 04E1D3F12B68EDFE00743F2F /* CCWebController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E1D3F02B68EDFE00743F2F /* CCWebController.swift */; }; 1E02C9322B8990C600DD3143 /* CCDeviceOperationListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E02C9312B8990C600DD3143 /* CCDeviceOperationListView.swift */; }; @@ -98,6 +99,8 @@ 00D33BF32B998BF700604A44 /* SpatialImageConvertor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpatialImageConvertor.swift; sourceTree = ""; }; 00D33BF52B99A19900604A44 /* SpatialVideoConvertor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpatialVideoConvertor.swift; sourceTree = ""; }; 00D33BF92B9AB21A00604A44 /* ZZHAVExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZZHAVExtension.swift; sourceTree = ""; }; + 00EB2D002BA2D14700924D84 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; + 00EB2D032BA2D16300924D84 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = ""; }; 00ED6B332BA04AC200915BDE /* PlayByTransferConvertor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlayByTransferConvertor.swift; sourceTree = ""; }; 04E1D3F02B68EDFE00743F2F /* CCWebController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CCWebController.swift; sourceTree = ""; }; 1E02C9312B8990C600DD3143 /* CCDeviceOperationListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CCDeviceOperationListView.swift; sourceTree = ""; }; @@ -344,6 +347,7 @@ AF2120962B4E7F1C00400B7F /* Assets.xcassets */, AF2120982B4E7F1C00400B7F /* LaunchScreen.storyboard */, AF21209B2B4E7F1C00400B7F /* Info.plist */, + 00EB2D012BA2D14700924D84 /* Localizable.strings */, ); path = SwiftProject; sourceTree = ""; @@ -528,6 +532,7 @@ knownRegions = ( en, Base, + "zh-Hans", ); mainGroup = AF2120812B4E7F1A00400B7F; productRefGroup = AF21208B2B4E7F1A00400B7F /* Products */; @@ -544,6 +549,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 00EB2D022BA2D15700924D84 /* Localizable.strings in Resources */, AF21209A2B4E7F1C00400B7F /* LaunchScreen.storyboard in Resources */, AF2120972B4E7F1C00400B7F /* Assets.xcassets in Resources */, 00B946232B67B26D00DA668F /* ddd_video.mp4 in Resources */, @@ -679,6 +685,15 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXVariantGroup section */ + 00EB2D012BA2D14700924D84 /* Localizable.strings */ = { + isa = PBXVariantGroup; + children = ( + 00EB2D002BA2D14700924D84 /* en */, + 00EB2D032BA2D16300924D84 /* zh-Hans */, + ); + name = Localizable.strings; + sourceTree = ""; + }; AF2120932B4E7F1A00400B7F /* Main.storyboard */ = { isa = PBXVariantGroup; children = ( @@ -702,6 +717,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++20"; @@ -762,6 +778,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++20"; diff --git a/SwiftProject/SwiftProject/Project/Controller/CCHomeController.swift b/SwiftProject/SwiftProject/Project/Controller/CCHomeController.swift index a310968..167cc50 100644 --- a/SwiftProject/SwiftProject/Project/Controller/CCHomeController.swift +++ b/SwiftProject/SwiftProject/Project/Controller/CCHomeController.swift @@ -383,7 +383,8 @@ class CCHomeController: BaseController, LLCycleScrollViewDelegate { if((dic["name"] as! String).elementsEqual("隐私政策")){ let vc:CCWebController = CCWebController() - vc.urlString = "https://www.wolai.com/9BZr3sEbpbXJEUorHEyAoP" + let sizeUrl = NSLocalizedString("siteUrl", comment: "隐私政策") + vc.urlString = sizeUrl self.navigationController?.pushViewController(vc, animated: true) } self.deleteMenu() diff --git a/SwiftProject/SwiftProject/Project/Util/ZZHHelper.swift b/SwiftProject/SwiftProject/Project/Util/ZZHHelper.swift index d1b7964..4b42851 100644 --- a/SwiftProject/SwiftProject/Project/Util/ZZHHelper.swift +++ b/SwiftProject/SwiftProject/Project/Util/ZZHHelper.swift @@ -6,6 +6,8 @@ // import Foundation + + class ZZHHelper { class func formatVideoTime(second:Int) -> String { let allTime: Int = second diff --git a/SwiftProject/SwiftProject/en.lproj/Localizable.strings b/SwiftProject/SwiftProject/en.lproj/Localizable.strings new file mode 100644 index 0000000..049ad4f --- /dev/null +++ b/SwiftProject/SwiftProject/en.lproj/Localizable.strings @@ -0,0 +1,2 @@ +"siteUrl" = "https://ingenious-taro-hvwxmk.mystrikingly.com"; + diff --git a/SwiftProject/SwiftProject/zh-Hans.lproj/Localizable.strings b/SwiftProject/SwiftProject/zh-Hans.lproj/Localizable.strings new file mode 100644 index 0000000..806cead --- /dev/null +++ b/SwiftProject/SwiftProject/zh-Hans.lproj/Localizable.strings @@ -0,0 +1,2 @@ +"siteUrl" = "https://www.wolai.com/9BZr3sEbpbXJEUorHEyAoP"; +