Bug 1318739

Summary: Product Home Page has localized URLs in Zanata
Product: [Retired] JBoss BRMS Platform 6 Reporter: manstis
Component: Business CentralAssignee: manstis
Status: CLOSED EOL QA Contact: Jiri Locker <jlocker>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: manstis, mbiarnes
Target Milestone: ER2   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:07:47 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:

Description manstis 2016-03-17 16:05:51 UTC
Description of problem:

Source code has localized images for the Home Page. See https://github.com/jboss-integration/kie-wb-distributions/tree/bsync-6.4.x-2016.03.08/kie-wb/kie-wb-home-page-product/src/main/resources/org/kie/workbench/public/images/home

These are referenced in i18n files held in Zanata. See https://translate.jboss.org/webtrans/translate?project=kie-wb-distributions&iteration=6.4.0&localeId=ja&locale=en#view:doc;doc:org.kie/kie-wb-home-page-product/org/kie/workbench/client/resources/i18n/HomePageProductConstants

The problem is the "translations" are easily overwritten by the translators (as to be honest they have no idea these keys have secretive meaning and values).

It'd be best to remove the URLs from Zanata and construct the path programmatically based on locale.
 
Version-Release number of selected component (if applicable):

6.3.0.ER1

How reproducible:

Run BPMS 6.3.0.ER1 and pick a locale other than English.

Comment 6 jsoltes 2016-03-30 17:14:09 UTC
Manstis, the first link in the description isn't working. Now I am not sure what I shoudn't see or I should see instead. ;) Can you please provide some working link?

Comment 7 manstis 2016-03-30 19:42:10 UTC
@jsoltes, You can see the different images for BPMS here: https://github.com/jboss-integration/kie-wb-distributions/tree/sync-6.4.x-2016.03.24/kie-wb/kie-wb-home-page-product/src/main/resources/org/kie/workbench/public/images/home (looks like the old "tag" has been deleted, hence the original URL no longer works).

The "Home Page" used to store relative URLs to the different images for each locale in Zanata (https://translate.jboss.org/project/view/kie-wb-distributions) which was problematic when people within the translation team altered the URLs. The fix covered by this BZ is to remove the URLs from Zanata and instead construct them from the locale programmatically.

To test, deploy BxMS and switch between the different locales (either append "?locale=xxx" to the URL, use the "Language Switcher" - cog icon - on the Home Page or a browser plugin). Home Page images should be correct.

Comment 8 jsoltes 2016-03-31 08:45:28 UTC
Verified for 6.3.0.ER2 BRMS & BPMS.