增加日文测试
This commit is contained in:
parent
042a24ea67
commit
b96b669ead
@ -54,6 +54,12 @@
|
|||||||
4B32F2051EF003E40066445B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ThirdViewController.xib; sourceTree = "<group>"; };
|
4B32F2051EF003E40066445B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ThirdViewController.xib; sourceTree = "<group>"; };
|
||||||
4B32F2081EF003E50066445B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/ThirdViewController.strings; sourceTree = "<group>"; };
|
4B32F2081EF003E50066445B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/ThirdViewController.strings; sourceTree = "<group>"; };
|
||||||
4B32F20A1EF003E60066445B /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/ThirdViewController.strings"; sourceTree = "<group>"; };
|
4B32F20A1EF003E60066445B /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/ThirdViewController.strings"; sourceTree = "<group>"; };
|
||||||
|
C0CED9E4240F481400AB9EDD /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/FirstViewController.strings; sourceTree = "<group>"; };
|
||||||
|
C0CED9E5240F481400AB9EDD /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/SecondViewController.strings; sourceTree = "<group>"; };
|
||||||
|
C0CED9E6240F481500AB9EDD /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/ThirdViewController.strings; sourceTree = "<group>"; };
|
||||||
|
C0CED9E7240F481500AB9EDD /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
|
||||||
|
C0CED9E8240F481500AB9EDD /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Localizable.strings; sourceTree = "<group>"; };
|
||||||
|
C0CED9E9240F481500AB9EDD /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
@ -157,7 +163,7 @@
|
|||||||
TargetAttributes = {
|
TargetAttributes = {
|
||||||
4B32F1A71EEFDE840066445B = {
|
4B32F1A71EEFDE840066445B = {
|
||||||
CreatedOnToolsVersion = 8.3.1;
|
CreatedOnToolsVersion = 8.3.1;
|
||||||
DevelopmentTeam = YP3GK894M5;
|
DevelopmentTeam = 9H3JSEL6A9;
|
||||||
ProvisioningStyle = Automatic;
|
ProvisioningStyle = Automatic;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -170,6 +176,7 @@
|
|||||||
en,
|
en,
|
||||||
Base,
|
Base,
|
||||||
"zh-Hans",
|
"zh-Hans",
|
||||||
|
ja,
|
||||||
);
|
);
|
||||||
mainGroup = 4B32F19F1EEFDE840066445B;
|
mainGroup = 4B32F19F1EEFDE840066445B;
|
||||||
productRefGroup = 4B32F1A91EEFDE840066445B /* Products */;
|
productRefGroup = 4B32F1A91EEFDE840066445B /* Products */;
|
||||||
@ -220,6 +227,7 @@
|
|||||||
children = (
|
children = (
|
||||||
4B32F1BA1EEFDE840066445B /* Base */,
|
4B32F1BA1EEFDE840066445B /* Base */,
|
||||||
4B32F1C61EEFE7A50066445B /* zh-Hans */,
|
4B32F1C61EEFE7A50066445B /* zh-Hans */,
|
||||||
|
C0CED9E7240F481500AB9EDD /* ja */,
|
||||||
);
|
);
|
||||||
name = LaunchScreen.storyboard;
|
name = LaunchScreen.storyboard;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@ -230,6 +238,7 @@
|
|||||||
4B32F1D21EEFE8A40066445B /* Base */,
|
4B32F1D21EEFE8A40066445B /* Base */,
|
||||||
4B32F1D51EEFE8A50066445B /* en */,
|
4B32F1D51EEFE8A50066445B /* en */,
|
||||||
4B32F1D71EEFE8A60066445B /* zh-Hans */,
|
4B32F1D71EEFE8A60066445B /* zh-Hans */,
|
||||||
|
C0CED9E4240F481400AB9EDD /* ja */,
|
||||||
);
|
);
|
||||||
name = FirstViewController.xib;
|
name = FirstViewController.xib;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@ -240,6 +249,7 @@
|
|||||||
4B32F1D91EEFE9850066445B /* Base */,
|
4B32F1D91EEFE9850066445B /* Base */,
|
||||||
4B32F1F51EEFF4340066445B /* en */,
|
4B32F1F51EEFF4340066445B /* en */,
|
||||||
4B32F1F71EEFF4360066445B /* zh-Hans */,
|
4B32F1F71EEFF4360066445B /* zh-Hans */,
|
||||||
|
C0CED9E5240F481400AB9EDD /* ja */,
|
||||||
);
|
);
|
||||||
name = SecondViewController.xib;
|
name = SecondViewController.xib;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@ -250,6 +260,7 @@
|
|||||||
4B32F1E81EEFF38C0066445B /* Base */,
|
4B32F1E81EEFF38C0066445B /* Base */,
|
||||||
4B32F1EA1EEFF38D0066445B /* en */,
|
4B32F1EA1EEFF38D0066445B /* en */,
|
||||||
4B32F1EB1EEFF38D0066445B /* zh-Hans */,
|
4B32F1EB1EEFF38D0066445B /* zh-Hans */,
|
||||||
|
C0CED9E8240F481500AB9EDD /* ja */,
|
||||||
);
|
);
|
||||||
name = Localizable.strings;
|
name = Localizable.strings;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@ -260,6 +271,7 @@
|
|||||||
4B32F1FB1EF000220066445B /* Base */,
|
4B32F1FB1EF000220066445B /* Base */,
|
||||||
4B32F1FD1EF000240066445B /* en */,
|
4B32F1FD1EF000240066445B /* en */,
|
||||||
4B32F1FE1EF000250066445B /* zh-Hans */,
|
4B32F1FE1EF000250066445B /* zh-Hans */,
|
||||||
|
C0CED9E9240F481500AB9EDD /* ja */,
|
||||||
);
|
);
|
||||||
name = InfoPlist.strings;
|
name = InfoPlist.strings;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@ -270,6 +282,7 @@
|
|||||||
4B32F2051EF003E40066445B /* Base */,
|
4B32F2051EF003E40066445B /* Base */,
|
||||||
4B32F2081EF003E50066445B /* en */,
|
4B32F2081EF003E50066445B /* en */,
|
||||||
4B32F20A1EF003E60066445B /* zh-Hans */,
|
4B32F20A1EF003E60066445B /* zh-Hans */,
|
||||||
|
C0CED9E6240F481500AB9EDD /* ja */,
|
||||||
);
|
);
|
||||||
name = ThirdViewController.xib;
|
name = ThirdViewController.xib;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@ -375,7 +388,7 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
DEVELOPMENT_TEAM = YP3GK894M5;
|
DEVELOPMENT_TEAM = 9H3JSEL6A9;
|
||||||
INFOPLIST_FILE = iOSAppLanguageSwitchDemo/Info.plist;
|
INFOPLIST_FILE = iOSAppLanguageSwitchDemo/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
@ -388,7 +401,7 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
DEVELOPMENT_TEAM = YP3GK894M5;
|
DEVELOPMENT_TEAM = 9H3JSEL6A9;
|
||||||
INFOPLIST_FILE = iOSAppLanguageSwitchDemo/Info.plist;
|
INFOPLIST_FILE = iOSAppLanguageSwitchDemo/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
|
@ -1,5 +1,15 @@
|
|||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
|
{
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"size" : "20x20",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"size" : "20x20",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"size" : "29x29",
|
"size" : "29x29",
|
||||||
@ -30,6 +40,16 @@
|
|||||||
"size" : "60x60",
|
"size" : "60x60",
|
||||||
"scale" : "3x"
|
"scale" : "3x"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"size" : "20x20",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"size" : "20x20",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"size" : "29x29",
|
"size" : "29x29",
|
||||||
@ -59,6 +79,16 @@
|
|||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"size" : "76x76",
|
"size" : "76x76",
|
||||||
"scale" : "2x"
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"size" : "83.5x83.5",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ios-marketing",
|
||||||
|
"size" : "1024x1024",
|
||||||
|
"scale" : "1x"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"info" : {
|
"info" : {
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="12118" systemVersion="16F73" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||||
<device id="retina4_7" orientation="portrait">
|
<device id="retina4_7" orientation="portrait">
|
||||||
<adaptation id="fullscreen"/>
|
<adaptation id="fullscreen"/>
|
||||||
</device>
|
</device>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="iOS"/>
|
<deployment identifier="iOS"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12086"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
@ -26,15 +26,16 @@
|
|||||||
<action selector="setupChineseAction:" destination="-1" eventType="touchUpInside" id="mBY-0D-cH6"/>
|
<action selector="setupChineseAction:" destination="-1" eventType="touchUpInside" id="mBY-0D-cH6"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FKp-xO-AWr">
|
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="OKg-nQ-EXp">
|
||||||
<rect key="frame" x="65" y="179" width="77" height="30"/>
|
<rect key="frame" x="65" y="205" width="77" height="30"/>
|
||||||
<state key="normal" title="设置成英文"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
|
<state key="normal" title="设置成日文"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="setupEnglishAction:" destination="-1" eventType="touchUpInside" id="Dnz-Rf-lBd"/>
|
<action selector="setupJapaneseAction:" destination="-1" eventType="touchUpInside" id="VRc-KM-yoP"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="wzO-U2-Cbk">
|
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="wzO-U2-Cbk">
|
||||||
<rect key="frame" x="65" y="235" width="138" height="30"/>
|
<rect key="frame" x="65" y="243" width="138" height="30"/>
|
||||||
<state key="normal" title="获取当前自定义语言"/>
|
<state key="normal" title="获取当前自定义语言"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="currentLanguage:" destination="-1" eventType="touchUpInside" id="np0-hM-mXL"/>
|
<action selector="currentLanguage:" destination="-1" eventType="touchUpInside" id="np0-hM-mXL"/>
|
||||||
@ -61,6 +62,13 @@
|
|||||||
<action selector="strTestAction:" destination="-1" eventType="touchUpInside" id="PO5-5G-jhi"/>
|
<action selector="strTestAction:" destination="-1" eventType="touchUpInside" id="PO5-5G-jhi"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
|
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FKp-xO-AWr">
|
||||||
|
<rect key="frame" x="65" y="167" width="77" height="30"/>
|
||||||
|
<state key="normal" title="设置成英文"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="setupEnglishAction:" destination="-1" eventType="touchUpInside" id="Dnz-Rf-lBd"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
</subviews>
|
</subviews>
|
||||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
|
@ -35,10 +35,6 @@
|
|||||||
[self presentViewController:vc animated:YES completion:nil];
|
[self presentViewController:vc animated:YES completion:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)didReceiveMemoryWarning {
|
|
||||||
[super didReceiveMemoryWarning];
|
|
||||||
// Dispose of any resources that can be recreated.
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#pragma mark - Navigation
|
#pragma mark - Navigation
|
||||||
|
@ -47,6 +47,14 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (IBAction)setupJapaneseAction:(id)sender {
|
||||||
|
[self showHUDCompletion:^{
|
||||||
|
[NSBundle setCusLanguage:@"ja"];
|
||||||
|
}];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
- (IBAction)currentLanguage:(id)sender {
|
- (IBAction)currentLanguage:(id)sender {
|
||||||
NSString *currLanguage = [NSBundle getCusLanguage];
|
NSString *currLanguage = [NSBundle getCusLanguage];
|
||||||
NSLog(@"当前语言是=%@", currLanguage);
|
NSLog(@"当前语言是=%@", currLanguage);
|
||||||
@ -69,11 +77,6 @@
|
|||||||
[self presentViewController:vc animated:NO completion:completion];
|
[self presentViewController:vc animated:NO completion:completion];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)didReceiveMemoryWarning {
|
|
||||||
[super didReceiveMemoryWarning];
|
|
||||||
// Dispose of any resources that can be recreated.
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#pragma mark - Navigation
|
#pragma mark - Navigation
|
||||||
|
|
||||||
|
@ -26,10 +26,6 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)didReceiveMemoryWarning {
|
|
||||||
[super didReceiveMemoryWarning];
|
|
||||||
// Dispose of any resources that can be recreated.
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#pragma mark - Navigation
|
#pragma mark - Navigation
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
/* Class = "UIButton"; normalTitle = "下一页"; ObjectID = "dJk-yb-oRh"; */
|
||||||
|
"dJk-yb-oRh.normalTitle" = "下一页日语";
|
@ -0,0 +1,8 @@
|
|||||||
|
/*
|
||||||
|
InfoPlist.strings
|
||||||
|
iOSAppLanguageSwitchDemo
|
||||||
|
|
||||||
|
Created by zengqingfu on 2017/6/13.
|
||||||
|
Copyright © 2017年 zengqingfu. All rights reserved.
|
||||||
|
*/
|
||||||
|
"CFBundleDisplayName" = "日文切换d测试";
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
/*
|
||||||
|
Localizable.strings
|
||||||
|
iOSAppLanguageSwitchDemo
|
||||||
|
|
||||||
|
Created by zengqingfu on 2017/6/13.
|
||||||
|
Copyright © 2017年 zengqingfu. All rights reserved.
|
||||||
|
*/
|
||||||
|
"cus_item" = "这是日文";
|
@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
/* Class = "UIButton"; normalTitle = "关闭"; ObjectID = "CK4-kE-Lyr"; */
|
||||||
|
"CK4-kE-Lyr.normalTitle" = "关闭(日文)";
|
||||||
|
|
||||||
|
/* Class = "UIButton"; normalTitle = "设置成英文"; ObjectID = "FKp-xO-AWr"; */
|
||||||
|
"FKp-xO-AWr.normalTitle" = "设置成英文(日文)";
|
||||||
|
|
||||||
|
/* Class = "UIButton"; normalTitle = "恢复成系统语言"; ObjectID = "hqn-O1-exW"; */
|
||||||
|
"hqn-O1-exW.normalTitle" = "恢复成系统语言(日文)";
|
||||||
|
|
||||||
|
/* Class = "UIButton"; normalTitle = "字符串测试"; ObjectID = "kXe-Ad-9Ls"; */
|
||||||
|
"kXe-Ad-9Ls.normalTitle" = "字符串测试(日文)";
|
||||||
|
|
||||||
|
/* Class = "UIButton"; normalTitle = "设置成中文"; ObjectID = "sRN-Uf-gCL"; */
|
||||||
|
"sRN-Uf-gCL.normalTitle" = "设置成中文(日文)";
|
||||||
|
|
||||||
|
/* Class = "UIButton"; normalTitle = "获取当前自定义语言"; ObjectID = "wzO-U2-Cbk"; */
|
||||||
|
"wzO-U2-Cbk.normalTitle" = "获取当前自定义语言(日文)";
|
@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
/* Class = "UILabel"; text = "正在设置语言..."; ObjectID = "yTu-Le-1xE"; */
|
||||||
|
"yTu-Le-1xE.text" = "正在设置语言...";
|
Loading…
Reference in New Issue
Block a user