Bug 794375 (JBEPP-1420) - Only one character is redered in navigation node name for Japanese and Nepali
Summary: Only one character is redered in navigation node name for Japanese and Nepali
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-1420
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.2.0.CR03
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.2.0.GA
Assignee: Thomas Heute
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-30 07:38 UTC by Toshiya Kobayashi
Modified: 2012-02-28 16:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-07 09:05:27 UTC
Type: Bug


Attachments (Terms of Use)
epp520cr02-ja.png (375.43 KB, image/png)
2011-11-30 07:39 UTC, Toshiya Kobayashi
no flags Details
epp520cr02-ne.png (381.92 KB, image/png)
2011-11-30 07:39 UTC, Toshiya Kobayashi
no flags Details
epp520cr03-es.png (111.57 KB, image/png)
2011-11-30 09:25 UTC, Toshiya Kobayashi
no flags Details
navigation.xml (5.89 KB, text/xml)
2011-11-30 09:38 UTC, Toshiya Kobayashi
no flags Details


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

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



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