Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037259Openbravo ERPA. Platformpublic2017-11-08 11:572018-03-27 19:04
caristu 
caristu 
immediateminorhave not tried
closedfixed 
5
 
3.0PR18Q1 
alostale
Core
Production - QA Approved
2017-05-08
3.0PR17Q3
https://code.openbravo.com/erp/devel/pi/rev/554d8c055ea2e7cb078c405634e41c14079bd61e [^]
No
0037259: 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.
depends on backport 00372613.0PR17Q4 closed caristu Some labels are not properly translated after switching the language 
depends on backport 00372623.0PR17Q3.2 closed caristu Some labels are not properly translated after switching the language 
caused by feature request 0035852 closed caristu Add a mechanism to cache the static resources 
related to defect 0037266 closed caristu API Change required for I18NComponent class 
causes defect 0037303 closed caristu Sales Order selector in Generate Invoice process does not wok properly 
causes defect 0038189 closed caristu OBUISEL_Selector references are not displayed properly in tabs that shows 2.50 forms 
png image.png (99,634) 2017-11-08 11:57
https://issues.openbravo.com/file_download.php?file_id=11273&type=bug
png
Issue History
2017-11-08 11:57caristuNew Issue
2017-11-08 11:57caristuAssigned To => platform
2017-11-08 11:57caristuFile Added: image.png
2017-11-08 11:57caristuModules => Core
2017-11-08 11:57caristuTriggers an Emergency Pack => No
2017-11-08 11:58caristuAssigned Toplatform => caristu
2017-11-08 11:58caristuRelationship addedcaused by 0035852
2017-11-08 12:22caristuRegression level => Production - QA Approved
2017-11-08 12:22caristuRegression date => 2017-05-08
2017-11-08 12:22caristuRegression introduced in release => 3.0PR17Q3
2017-11-08 12:22caristuRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/554d8c055ea2e7cb078c405634e41c14079bd61e [^]
2017-11-08 12:28caristuStatusnew => acknowledged
2017-11-08 12:29caristuStatusacknowledged => scheduled
2017-11-08 14:20hgbotCheckin
2017-11-08 14:20hgbotNote Added: 0100351
2017-11-08 14:20hgbotStatusscheduled => resolved
2017-11-08 14:20hgbotResolutionopen => fixed
2017-11-08 14:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a87ba8a293e6224273bd2c70d0fcbb54d9ac8cf6 [^]
2017-11-08 14:35hgbotCheckin
2017-11-08 14:35hgbotNote Added: 0100352
2017-11-08 16:12hgbotCheckin
2017-11-08 16:12hgbotNote Added: 0100357
2017-11-08 17:49hgbotCheckin
2017-11-08 17:49hgbotNote Added: 0100358
2017-11-08 17:50caristuReview Assigned To => alostale
2017-11-08 18:38caristuRelationship addedrelated to 0037266
2017-11-08 19:04caristuRelationship addedrelated to 0037267
2017-11-08 19:04caristuRelationship deletedrelated to 0037267
2017-11-10 13:03alostaleNote Added: 0100424
2017-11-10 13:03alostaleStatusresolved => closed
2017-11-10 13:03alostaleFixed in Version => 3.0PR18Q1
2017-11-16 16:42caristuRelationship addedcauses 0037303
2018-01-03 12:38hudsonbotCheckin
2018-01-03 12:38hudsonbotNote Added: 0101381
2018-01-03 12:38hudsonbotCheckin
2018-01-03 12:38hudsonbotNote Added: 0101382
2018-01-03 12:38hudsonbotCheckin
2018-01-03 12:38hudsonbotNote Added: 0101383
2018-01-03 12:38hudsonbotCheckin
2018-01-03 12:38hudsonbotNote Added: 0101384
2018-03-27 17:34caristuRelationship addedcauses 0038189
2018-03-27 19:04PracticsIssue Monitored: Practics

Notes
(0100351)
hgbot   
2017-11-08 14:20   
Repository: erp/devel/pi
Changeset: a87ba8a293e6224273bd2c70d0fcbb54d9ac8cf6
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Nov 08 14:15:30 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a87ba8a293e6224273bd2c70d0fcbb54d9ac8cf6 [^]

fixes bug 37259: 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
---
(0100352)
hgbot   
2017-11-08 14:35   
Repository: erp/devel/pi
Changeset: 577cf6624b2a571d7c5bd79db668a4597ab7ca9d
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Nov 08 14:34:38 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/577cf6624b2a571d7c5bd79db668a4597ab7ca9d [^]

related to issue 37259: adapt test case to the new component's definition

---
M modules/org.openbravo.client.kernel/src-test/org/openbravo/client/kernel/freemarker/test/LabelTest.java
---
(0100357)
hgbot   
2017-11-08 16:12   
Repository: erp/devel/pi
Changeset: 04e362ada9264c4b190ecf3f76d7fb24bb220dea
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Nov 08 16:11:50 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/04e362ada9264c4b190ecf3f76d7fb24bb220dea [^]

related to issue 37259: adapt test case to the new component's definition

---
M modules/org.openbravo.client.kernel/src-test/org/openbravo/client/kernel/freemarker/test/GenerateComponentTest.java
---
(0100358)
hgbot   
2017-11-08 17:49   
Repository: erp/devel/pi
Changeset: 8968fc3eb9fe23b14ba06627cb42aa1676cef597
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Nov 08 17:46:31 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/8968fc3eb9fe23b14ba06627cb42aa1676cef597 [^]

related to issue 37259: minor code improvements
  - Removed testLabels() test from GenerateComponentTest as the generation of the I18NComponent component is already covered with the LabelTest class
  - Use the log to print the result of the component generation instead of the standard error output
  - Generate the I18NComponent using its generate method. This is how it is generated by the SessionDynamicResourceComponent

---
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
---
(0100424)
alostale   
2017-11-10 13:03   
reviewed + tested
(0101381)
hudsonbot   
2018-01-03 12:38   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c81e0d3cbab5 [^]
Maturity status: Test
(0101382)
hudsonbot   
2018-01-03 12:38   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c81e0d3cbab5 [^]
Maturity status: Test
(0101383)
hudsonbot   
2018-01-03 12:38   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c81e0d3cbab5 [^]
Maturity status: Test
(0101384)
hudsonbot   
2018-01-03 12:38   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c81e0d3cbab5 [^]
Maturity status: Test