Views are not working correctly with local language (cl=ru-ru)

Post Reply
pavnask
Posts: 4
Joined: 18 Apr 2018, 13:27

Dear Colleagues,

I'm working on translation of EA repository to the local language (Russian).

The Language and Report Language classes has been created. The ru-ru.xml is created in the essential_viewer2\language folder

After Publishing the repository I can see the synonymous in the local language displayed in Catalog view.

However the links from the Catalog view are not working.

For example in the View: Business Domain Catalogue by Name I do have the link to the BUSINESS DOMAINS VIEWS: Business Domain Process Analysis and Business Domain IT Analysis.

Both links generating HTTP400 The webpage cannot be found.

The Catalog URL is
http://localhost:8080/essential_viewer2/report?XML=reportXML.xml&PAGEXSL=&PMA=&XSL=business/core_bl_bus_domain_list_by_name.xsl&LABEL=Business%20Domain%20Catalogue%20by%20Name&&targetReportId=&targetMenuShortName=&cl=ru-ru


The links
http://localhost:8080/essential_viewer2/report?XML=reportXML.xml&PMA=essential_baseline_v611_Class1&cl=ru-ru&XSL=business/core_bl_bus_cap_app_svc_analysis.xsl&PAGEXSL=&LABEL=Business Domain IT Analysis -Корпоративные действия

http://localhost:8080/essential_viewer2/report?XML=reportXML.xml&PMA=essential_baseline_v611_Class1&cl=ru-ru&XSL=business/core_bl_bus_cap_analysis_by_bus_domain.xsl&PAGEXSL=&LABEL=Business Domain Process Analysis -Корпоративные действия



With cl=en-gb both views are working fine.

What can be the reason for that?

Thank you in advance.

Best regards,
Pavel
pavnask
Posts: 4
Joined: 18 Apr 2018, 13:27

Dear colleagues,

This issue fixed by adding encodeURI in core_menu.xsl.
</xsl:variable>function <xsl:value-of select="$menuItemFunctionName"/>(key,opt) { window.location="<xsl:value-of select="$pathPrefix"/>" + opt.$trigger.attr("href") + "&amp;XSL=<xsl:value-of select="$menuItemTargetXSLPath"/>&amp;PAGEXSL=<xsl:value-of select="$menuItemTargetContextXSLPath"/>&amp;LABEL=<xsl:value-of select="$menuItemTargetHistoryLabel"/>" + encodeURI(opt.$trigger.attr("id")); } </xsl:template>
After that URL will be working fine.
http://localhost:8080/essential_viewer2 ... L=Business Domain IT Analysis -%D0%9A%D0%BE%D1%80%D0%BF%D0%BE%D1%80%D0%B0%D1%82%D0%B8%D0%B2%D0%BD%D1%8B%D0%B5%20%D0%B4%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D1%8F
Thank you.

Best regards,
Pavel.
User avatar
jonathan.carter
Posts: 1087
Joined: 04 Feb 2009, 15:44

Thanks Pavel

That’s great. We’ll get this into the next release.

Jonathan
Essential Project Team
Post Reply