[
https://issues.jboss.org/browse/GTNPORTAL-2344?page=com.atlassian.jira.pl...
]
Toshiya Kobayashi commented on GTNPORTAL-2344:
----------------------------------------------
Quick workaround is editing gtmpl to disable the truncation.
gatein.ear/web.war/groovy/portal/webui/component/UIPortalNavigation.gtmpl
{code}
56 //if(label.length() > 40) {
57 // title = label;
58 // label = label.substring(0,37) + "...";
59 //}
{code}
{code}
116 //if(label.length()
> 30) label = label.substring(0,29) + "...";
{code}
gatein.ear/exoadmin.war/groovy/admintoolbar/webui/component/UIUserToolBarSitePortlet.gtmpl
{code}
91 //boolean toolong = (node.getEncodedResolvedLabel().length() >
60);^M
92 boolean toolong = false;^M
93 String label = ( toolong ? node.getEncodedResolvedLabel().substring(0,
57) + "..." : node.getEncodedResolvedLabel());^M
{code}
gatein.ear/exoadmin.war/groovy/admintoolbar/webui/component/UIUserToolBarGroupPortlet.gtmpl
{code}
53 //boolean toolong = (node.getEncodedResolvedLabel().length() >
60);^M
54 boolean toolong = false;^M
55 String label = ( toolong ? node.getEncodedResolvedLabel().substring(0,
57) + "..." : node.getEncodedResolvedLabel());
{code}
gatein.ear/exoadmin.war/groovy/admintoolbar/webui/component/UIUserToolBarDashboardPotlet.gtmpl
{code}
53 //boolean toolong = (resolvedLabel.length() > 60);
54 boolean toolong = false;
55 String label = ( toolong ? resolvedLabel.substring(0, 57) +
"..." : resolvedLabel);
{code}
Navigation labels are shortened but not looking good in multibyte
languages
---------------------------------------------------------------------------
Key: GTNPORTAL-2344
URL:
https://issues.jboss.org/browse/GTNPORTAL-2344
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Internationalization and Localization, User Interface
Affects Versions: 3.2.0-Beta01
Reporter: Toshiya Kobayashi
Attachments: label-shortened_gatein.png
Labels are shortened in Navigation bar and Menu bar in multibyte languages. It seems to
be intentional but it has tailing ascii char (likely cut in the middle of multibyte). See
attached png. ('グルー0...', 'アドミニストレ&...')
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira