Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0008070 | Openbravo ERP | E. Translation | public | 2009-03-11 14:58 | 2009-06-22 08:04 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0008070: Translations do not work for manual windows if they don't set defaultLang variable |
Description | On line translation is taking the language to translate to from the defaultLang variable in HTML. This makes that in case this variable is not (properly) set the translation is not correctly performed. |
Steps To Reproduce | -Create a new manual window with translatable tags
-In the HTML do not include the defaultLang variable
-Run ant translate to generate text interfaces for the new window
-Translate these new entries to another lanugage
-Change application language to that langue
-Go to the window and check it is not translated at all |
Proposed Solution | In org.openbravo.uiTranslation.TranslationHandler.setLanguage method do not retrieve language information from html variable but from session variable (vars.getLanguage()) |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0009353 | | closed | alostale | With the application in spanish, terms of some reports are in English |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2009-03-11 14:58 | alostale | New Issue | |
2009-03-11 14:58 | alostale | Assigned To | => pheenan |
2009-03-11 14:58 | alostale | Regression testing | => No |
2009-03-12 13:37 | rafaroda | Priority | normal => high |
2009-03-12 13:37 | rafaroda | Status | new => scheduled |
2009-03-12 13:37 | rafaroda | version | => pi |
2009-03-24 10:40 | AinhoaPagola | Assigned To | pheenan => alostale |
2009-04-03 19:12 | shuehner | Note Added: 0015195 | |
2009-04-20 15:03 | alostale | Status | scheduled => closed |
2009-04-20 15:03 | alostale | Note Added: 0015440 | |
2009-04-20 15:03 | alostale | Resolution | open => no change required |
2009-04-21 00:00 | anonymous | sf_bug_id | 0 => 2776828 |
2009-06-22 07:23 | alostale | Relationship added | related to 0009353 |
2009-06-22 08:04 | hgbot | Checkin | |
2009-06-22 08:04 | hgbot | Note Added: 0017498 | |
2009-06-22 08:04 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/906b65e00d8ea79456e03603b757c1e6bc60c91a [^] |
Notes |
|
|
This current behavior to use defaultLang is consistent with translation of i.e. calendar & calculator. They do use this info for determining the language. It was added for these users in the first place. |
|
|
|
As Stefan says, this defaultLang is also needed for calendar and calculator so even we made not needed for interface we would still require it. Thus it is not worth to modify xmlEngine to retrieve it from session instead from html. |
|
|
(0017498)
|
hgbot
|
2009-06-22 08:04
|
|
Repository: erp/devel/pi
Changeset: 906b65e00d8ea79456e03603b757c1e6bc60c91a
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Jun 22 08:04:09 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/906b65e00d8ea79456e03603b757c1e6bc60c91a [^]
fixed bug 009353: With the application in spanish, terms of some reports are in English
Fixed several problems in online translation:
-Template was not properly selected for files not ending in .html
-Langauge was not taken for templates without language tag (reported as issue 8070)
-Text was not properly trimmed when doing the online translation
---
M src-core/src/org/openbravo/base/HttpBaseServlet.java
M src-core/src/org/openbravo/uiTranslation/TranslationUtils.java
M src-core/src/org/openbravo/xmlEngine/XmlDocument.java
M src-core/src/org/openbravo/xmlEngine/XmlEngine.java
---
|
|