Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037262Openbravo ERPA. Platformpublic2017-11-08 11:572017-11-10 13:09
caristu 
caristu 
immediateminorhave not tried
closedfixed 
5
 
3.0PR17Q3.23.0PR17Q3.2 
alostale
Core
Production - QA Approved
2017-05-08
3.0PR17Q3
https://code.openbravo.com/erp/devel/pi/rev/554d8c055ea2e7cb078c405634e41c14079bd61e [^]
No
0037262: Some labels are not properly translated after switching the language
Some labels are not properly translated after switching the language. This can be reproduced when there are not modules in "in development" status because in that case the labels are being cached in the client since the changes introduced with the issue 0035852
1) Install the Spanish Localization pack
2) Ensure that there are not modules in "in development" status
3) Log-in as F&B International Group (it has English language by default)
4) Switch to the Spanish language
5) Note that some labels do no appear translated: in the toolbar, profile widget or in the workspace (see attached image).
No tags attached.
blocks defect 0037259 closed caristu Some labels are not properly translated after switching the language 
Issue History
2017-11-08 12:29caristuTypedefect => backport
2017-11-08 12:29caristuTarget Version => 3.0PR17Q3.2
2017-11-08 19:18hgbotCheckin
2017-11-08 19:18hgbotNote Added: 0100364
2017-11-08 19:18hgbotStatusscheduled => resolved
2017-11-08 19:18hgbotResolutionopen => fixed
2017-11-08 19:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q3.2/rev/1289a7fd9281100cabe767705ed6271ccb5830cd [^]
2017-11-08 19:18hgbotCheckin
2017-11-08 19:18hgbotNote Added: 0100365
2017-11-08 19:25caristuReview Assigned To => alostale
2017-11-10 13:09alostaleNote Added: 0100438
2017-11-10 13:09alostaleStatusresolved => closed
2017-11-10 13:09alostaleFixed in Version => 3.0PR17Q3.2

Notes
(0100364)
hgbot   
2017-11-08 19:18   
Repository: erp/backports/3.0PR17Q3.2
Changeset: 1289a7fd9281100cabe767705ed6271ccb5830cd
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Nov 08 18:22:52 2017 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR17Q3.2/rev/1289a7fd9281100cabe767705ed6271ccb5830cd [^]

fixes issue 37262: Some labels are not translated after switching the language

  After the changes introduced on issue 0035852 the labels were being cached together with the rest of the static javascript code. Thus, being in an environment not in "in development" status, the labels were being cached in the language of the first login avoiding the translation when switching to another language afterwards.

  To fix the problem now the component responsible of collecting the labels has been defined as a session dynamic component. This way the labels will be retrieved on every login. And to avoid querying to the database on each login request, the labels are now being cached in the server per language.

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/I18NComponent.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelComponentProvider.java
---
(0100365)
hgbot   
2017-11-08 19:18   
Repository: erp/backports/3.0PR17Q3.2
Changeset: a9765d90bea8a317949200f4cbd090cf54d0e943
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Nov 08 18:25:02 2017 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR17Q3.2/rev/a9765d90bea8a317949200f4cbd090cf54d0e943 [^]

related to issue 37262: adapt test cases to the new component's definition

---
M modules/org.openbravo.client.kernel/src-test/org/openbravo/client/kernel/freemarker/test/GenerateComponentTest.java
M modules/org.openbravo.client.kernel/src-test/org/openbravo/client/kernel/freemarker/test/LabelTest.java
---
(0100438)
alostale   
2017-11-10 13:09   
tested + reviewed