Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

It doesn't support Simplified and Traditional (iOS 9.0 or above) #449

Closed
youngshingjun opened this issue Aug 20, 2016 · 8 comments
Closed
Labels

Comments

@youngshingjun
Copy link

PayPal SDK It doesn't support Simplified Chinese and Traditional Chinese (iOS 9.0 or above).

//Sample Code

NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
NSArray* languages = [defaults objectForKey:@"AppleLanguages"];
NSString* language = [languages objectAtIndex:0];

if ([language hasPrefix:@"zh-Hans"]) {
// Language is Simplified Chinese.
}

if ([language hasPrefix:@"zh-Hant"] ||
[language hasPrefix:@"zh-HK"] ||
[language hasPrefix:@"zh-MO"] ||
[language hasPrefix:@"zh-TW"] ||
[language hasPrefix:@"zh-SG"] ) {
// Language is Traditional Chinese.
}

@bluk
Copy link
Contributor

bluk commented Aug 23, 2016

Thanks for reporting the issue. Release 2.14.6 should resolve the bug.

@bluk bluk closed this as completed Aug 23, 2016
@youngshingjun
Copy link
Author

@bluk PayPal iOS SDK 2.14.6 not resolve the bug.
My device is iPhone 5S (Gold) iOS system is 9.3.4.
img_0830

@bluk
Copy link
Contributor

bluk commented Aug 24, 2016

Can you please confirm if you've localized your app in the Project settings? Click on the Xcode project in the file navigation browser, Select your project and on the Info tab, you should have something like:

screen shot 2016-08-24 at 9 37 43 am

Furthermore, is the iOS simulator or phone set to use Chinese as its preferred language? In the Settings > General > Language & Region > iPhone Language.

@bluk bluk reopened this Aug 24, 2016
@youngshingjun
Copy link
Author

@bluk My phone set to use Chinese as its preferred language.
img_0831
My Project settings something like:
img_0832

@youngshingjun
Copy link
Author

@bluk If your app use Chinese as its preferred language (iOS 9.0 or above), so Targets > Info something like:
img_0833
You should set CFBundleDevelopmentRegion to en_US (Info.plist)

@bluk
Copy link
Contributor

bluk commented Aug 25, 2016

@youngshingjun Please see if 2.14.7 resolves your issue. Thanks.

@youngshingjun
Copy link
Author

@bluk #449 issue is resolved. Thanks.

@bluk
Copy link
Contributor

bluk commented Aug 26, 2016

@youngshingjun Great!

@bluk bluk closed this as completed Aug 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@bluk @youngshingjun and others