Bug 724261 (BRMS-206) - BRMS Chinese i18n support - Contants_zh_CN.properties
Summary: BRMS Chinese i18n support - Contants_zh_CN.properties
Keywords:
Status: CLOSED NEXTRELEASE
Alias: BRMS-206
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: Internationalization
Version: 5.1.0 GA
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: 5.0.2
Assignee: Jervis Liu
QA Contact:
URL: http://jira.jboss.org/jira/browse/BRM...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-23 18:22 UTC by Tihomir Surdilovic
Modified: 2013-11-07 22:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-29 13:00:56 UTC
Type: Bug


Attachments (Terms of Use)
zhCNLocale.png (115.79 KB, image/png)
2009-07-23 18:23 UTC, Tihomir Surdilovic
no flags Details
Screenshot.png (147.15 KB, image/png)
2010-03-26 19:16 UTC, Len DiMaggio
no flags Details
screen1.png (20.75 KB, image/png)
2010-03-29 07:49 UTC, Jaroslaw Kijanowski
no flags Details
jervis'sversion.jpg (90.24 KB, image/jpeg)
2010-03-29 08:21 UTC, Jervis Liu
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker BRMS-206 0 None None None Never

Description Tihomir Surdilovic 2009-07-23 18:22:32 UTC
Date of First Response: 2009-07-29 00:25:34
Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/320260
securitylevel_name: Public

When deploying BRMS from trunk (https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/drools-5.1.0.SNAPSHOT-guvnor.zip) and trying to use the Chinese local (http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html?locale=zh_CN), all characters display as question marks (see uploaded screenshot). Same version when japanese or any other supported locales are used works fine.

Comment 1 Tihomir Surdilovic 2009-07-23 18:23:28 UTC
Attachment: Added: zhCNLocale.png


Comment 2 Tihomir Surdilovic 2009-07-23 18:24:10 UTC
Help Desk Ticket Reference: Added: https://enterprise.redhat.com/issue-tracker/320260


Comment 3 Tihomir Surdilovic 2009-07-28 19:56:33 UTC
Hello, any info on this issue?
Thanks.

Comment 4 Jervis Liu 2009-07-29 04:25:34 UTC
I  can confirm that the Chinese version is not working anyway.  It appears to me that the Constants_zh_CN.properties file was corrupted by some editors that are not unique code compatible (Constants_zh_CN.properties was working before). Can be a file encoding problem or like. But I have not figured out the exact problem yet.

What I am going to now is re-creating this file from scratch instead of playing with the old problematic file. This will take a little time as there are 890 lines in this file. Copy and paste from the old file wont work. I have to input each line by myself...

It will be fixed by EOB tomorrow. 

Comment 5 Michael Neale 2009-07-29 05:49:21 UTC
Any ideas on what caused this? what commit corrupted it? 
The only time I update it is if an IDE such as IntelliJ does... 

need to make sure it doesn't happen again. 

Comment 6 Jervis Liu 2009-07-29 06:11:12 UTC
No idea...Spent half day tried to recover the current version of Constants_zh_CN.properties, no luck. SVN does not record the change of file encoding, which means I can not track change log to see which commit is to blame. Then I gave up and started a new file from scratch. 

Comment 7 Michael Neale 2009-07-31 04:27:59 UTC
Can't you do a manual binary search with the version history of the Constants_zh_CN.properties - just keep trying until you find where it flipped form bad to good - I would like to know how it happened otherwise it will just happen again. 

I try to not commit any changes to the chinese or japanese versions (in fact only english, when I change the GUI).

Comment 9 Len DiMaggio 2010-03-26 19:16:04 UTC
Not reproducible with BRMS 5.0.2 CR1 build.

Comment 10 Len DiMaggio 2010-03-26 19:16:05 UTC
Attachment: Added: Screenshot.png


Comment 11 Len DiMaggio 2010-03-26 19:17:03 UTC
Not reproducible with BRMS 5.0.2 CR1 build.

Comment 12 Jaroslaw Kijanowski 2010-03-29 07:49:23 UTC
Hey Jervis, could you have a look at this? Some text might still be wrong, attaching screen1.png (see the squares in the left pane, not sure if this is a font or encoding problem on my side).

Comment 13 Jaroslaw Kijanowski 2010-03-29 07:49:50 UTC
Attachment: Added: screen1.png


Comment 14 Jervis Liu 2010-03-29 08:20:50 UTC
Hi Jaroslaw, have you selected the correct encoding? (GB2312)
It works for me, see attached screen. 

Comment 15 Jervis Liu 2010-03-29 08:21:28 UTC
Attachment: Added: jervis'sversion.jpg


Comment 16 Jaroslaw Kijanowski 2010-03-29 13:00:56 UTC
Jervis' screen shot proves it's fixed.


Note You need to log in before you can comment on or make changes to this bug.