Bug 794375 (JBEPP-1420)

Summary: Only one character is redered in navigation node name for Japanese and Nepali
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Toshiya Kobayashi <tkobayas>
Component: PortalAssignee: Thomas Heute <theute>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.2.0.CR03CC: epp-bugs, tkobayas
Target Milestone: ---   
Target Release: 5.2.0.GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-1420
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-07 09:05:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
epp520cr02-ja.png
none
epp520cr02-ne.png
none
epp520cr03-es.png
none
navigation.xml none

Description Toshiya Kobayashi 2011-11-30 07:38:37 UTC
project_key: JBEPP

http://localhost:8080/portal/

After changing language to 'Japanese', you will see only one character in 'home' and 'SiteMap' link in navigation. (e.g. Now 'home' is 'ホ' but it should be 'ホーム' --- 3 characters)
The same happens in Nepali. I don't see this issue in other languages.

Comment 1 Toshiya Kobayashi 2011-11-30 07:39:23 UTC
Attachment: Added: epp520cr02-ja.png
Attachment: Added: epp520cr02-ne.png


Comment 2 Toshiya Kobayashi 2011-11-30 07:59:03 UTC
My findings:

Japanese and Nepali have message properties which are converted into unicode chars by native2ascii.

./deploy/gatein.ear/02portal.war/WEB-INF/classes/locale/navigation/portal/classic_ne.properties:portal.classic.home=\u0917\u0943\u0939 \u092a\u0943\u0937\u094d\u200d\u0920
./deploy/gatein.ear/02portal.war/WEB-INF/classes/locale/navigation/portal/classic_ja.properties:portal.classic.home=\u30db\u30fc\u30e0

Other languages' properties are written in native characters.

./deploy/gatein.ear/02portal.war/WEB-INF/classes/locale/navigation/portal/classic_uk.properties:portal.classic.home=Додому
./deploy/gatein.ear/02portal.war/WEB-INF/classes/locale/navigation/portal/classic_ru.properties:portal.classic.home=Главная

But I'm not sure if it is really related to this issue because editing ./deploy/gatein.ear/02portal.war/WEB-INF/classes/locale/navigation/portal/classic_ja.properties doesn't seem to affect (even with clean database) so I cannot confirm. 
I have to confess I don't understand how message resources work...

Comment 3 Toshiya Kobayashi 2011-11-30 09:23:16 UTC
I found that the label exists in ./deploy/gatein.ear/02portal.war/WEB-INF/conf/portal/portal/classic/navigation.xml
It was written in unicode entity for ja and ne. Changing the line with native characters solved the issue.
In EPP 5.1.0, navigation.xml doesn't have such labels

Comment 4 Toshiya Kobayashi 2011-11-30 09:25:59 UTC
Attachment: Added: epp520cr03-es.png


Comment 5 Toshiya Kobayashi 2011-11-30 09:26:10 UTC
I noticed that any unicode entity in navigation.xml causes the issue. In case of Spanish, see attached epp520cr03-es.png (2 'Navegaci' nodes) 

Comment 6 Toshiya Kobayashi 2011-11-30 09:38:41 UTC
Attachment: Added: navigation.xml


Comment 7 Toshiya Kobayashi 2011-11-30 09:40:42 UTC
Attached navigation.xml which I fixed every occurrence of unicode entity (Japanese, Nepali, German, Spanish).

Comment 8 Thomas Heute 2011-11-30 11:08:31 UTC
Release Notes Docs Status: Added: Not Required