添加多语言,通过多语言实现隐私政策对应跳转
This commit is contained in:
parent
f713d1445d
commit
c00a1565f4
@ -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 = "<group>"; };
|
||||
00D33BF52B99A19900604A44 /* SpatialVideoConvertor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpatialVideoConvertor.swift; sourceTree = "<group>"; };
|
||||
00D33BF92B9AB21A00604A44 /* ZZHAVExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZZHAVExtension.swift; sourceTree = "<group>"; };
|
||||
00EB2D002BA2D14700924D84 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
|
||||
00EB2D032BA2D16300924D84 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
|
||||
00ED6B332BA04AC200915BDE /* PlayByTransferConvertor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlayByTransferConvertor.swift; sourceTree = "<group>"; };
|
||||
04E1D3F02B68EDFE00743F2F /* CCWebController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CCWebController.swift; sourceTree = "<group>"; };
|
||||
1E02C9312B8990C600DD3143 /* CCDeviceOperationListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CCDeviceOperationListView.swift; sourceTree = "<group>"; };
|
||||
@ -344,6 +347,7 @@
|
||||
AF2120962B4E7F1C00400B7F /* Assets.xcassets */,
|
||||
AF2120982B4E7F1C00400B7F /* LaunchScreen.storyboard */,
|
||||
AF21209B2B4E7F1C00400B7F /* Info.plist */,
|
||||
00EB2D012BA2D14700924D84 /* Localizable.strings */,
|
||||
);
|
||||
path = SwiftProject;
|
||||
sourceTree = "<group>";
|
||||
@ -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 = "<group>";
|
||||
};
|
||||
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";
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -6,6 +6,8 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
class ZZHHelper {
|
||||
class func formatVideoTime(second:Int) -> String {
|
||||
let allTime: Int = second
|
||||
|
||||
2
SwiftProject/SwiftProject/en.lproj/Localizable.strings
Normal file
2
SwiftProject/SwiftProject/en.lproj/Localizable.strings
Normal file
@ -0,0 +1,2 @@
|
||||
"siteUrl" = "https://ingenious-taro-hvwxmk.mystrikingly.com";
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
"siteUrl" = "https://www.wolai.com/9BZr3sEbpbXJEUorHEyAoP";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user