Bug 31178 - localized strings not working correctly on iOS 7.1 for the Chinese language (ZH)
Summary: localized strings not working correctly on iOS 7.1 for the Chinese language (ZH)
Status: RESOLVED UPSTREAM
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 8.10
Hardware: PC Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-06-16 23:21 UTC by Cody Beyer (MSFT)
Modified: 2015-07-16 21:22 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
TestCase (8.96 KB, application/x-rar)
2015-06-16 23:21 UTC, Cody Beyer (MSFT)
Details
Objective-C test case with the same problem (13.73 KB, application/zip)
2015-07-16 21:22 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED UPSTREAM

Description Cody Beyer (MSFT) 2015-06-16 23:21:50 UTC
Created attachment 11638 [details]
TestCase

### Description

The following sample app has a simple localized string for China (ZH). On iOS 8.1 with Chinese language selected, the string translates properly. On iOS 7 with Chinese language selected, it does not translate

### Sample

Attached

### Steps to Reproduce

1. Run iOS 7.1 Simulator
2. Set language = Chinese 
3. Run Sample

### Expected Results

Screen should display "Translated"

### Actual Results

Screen displays "Not Translated"

### Versions

=== Xamarin Studio ===

Version 5.9.4 (build 5)
Installation UUID: ce01dbe4-a6d3-4af8-a4ab-ad5096081276
Runtime:
	Mono 4.0.2 ((detached/198235d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400020004

=== Apple Developer Tools ===

Xcode 6.3.2 (7718)
Build 6D2105

=== Xamarin.iOS ===

Version: 8.10.2.17 (Business Edition)
Hash: 03fdc45
Branch: master
Build date: 2015-06-09 07:44:00-0400

=== Xamarin.Mac ===

Version: 2.0.2.17 (Business Edition)

=== Xamarin.Android ===

Version: 5.1.4.8 (Business Edition)
Android SDK: /Users/codybeyer/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Build Information ===

Release ID: 509040005
Git revision: 8010a90f6e246b32364e3fb46ef2c9d1be9c9a2b
Build date: 2015-06-08 16:52:06-04
Xamarin addins: 7e93e9c3503f28770f23ce1b7eafd829919f18e8

=== Operating System ===

Mac OS X 10.10.3
Darwin BeyerStudios.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Comment 3 Brendan Zagaeski (Xamarin Team, assistant) 2015-07-16 21:22:36 UTC
Created attachment 12081 [details]
Objective-C test case with the same problem

This problem is not specific to Xamarin. I have now attached a corresponding Xcode Objective-C test case that shows the same problem.


See also:

http://stackoverflow.com/questions/12197765/chinese-localization


As suggested on that SO thread, I can solve the problem in the original test case by renaming the "zh.lproj" folder to "zh-Hans.lproj" (for Simplified Chinese).