Bug 1121827
Summary: | Java Variables validator causes incorrect warnings on Seam/JSF variables | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Zanata | Reporter: | Marcelo Barbosa "firemanxbr" <marcelo.barbosa> | ||||
Component: | Component-UI | Assignee: | Damian Jansen <djansen> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Zanata-QA Mailling List <zanata-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.4 | CC: | damason, dchen, zanata-bugs | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-07-29 02:47:52 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: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Marcelo Barbosa "firemanxbr"
2014-07-22 02:51:55 UTC
This is caused because the java variables validator is not appropriate for the type of variables used in these strings. The warning in this case is caused because of an apostrophe (') in the source string before the variable, where there is no apostrophe in the translation. In this case the source string is "Help: Set this project's default #{messages['jsf.CopyTrans'} settings.", and the apostrophe in "project's" makes the validator see the rest of the string as escaped, so it does not identify the variable "#{messages['jsf.CopyTrans'}" Since we do not have a specific validator for these variables, the workaround at the moment is to save translations despite the warning, and never set Java Variables validator above warning for projects that are not using Java MessageFormat strings. The solution is to create a validator that handles JSF/Seam variables properly. Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-199 |