Openbravo Issue Tracking System - POS2
View Issue Details
0052190POS2Corepublic2023-04-20 14:322023-06-05 10:36
javierRodriguez 
meriem_azaf 
normalminoralways
closedfixed 
5
 
 
approved
No
No
0052190: The application switch to English if it is in offline
In offline mode, the application language switches to English
Having an environment with translations (for example, French)

- Login
- Verify that the application is in French
- Go offline
- Refresh
- KO, the application is in English
take the language from the terminal (language_string attribute). In case this one is not defined, set it to English
No tags attached.
depends on backport 005232123Q2.1 closed meriem_azaf The application switch to English if it is in offline 
depends on backport 005232223Q1.3 closed meriem_azaf The application switch to English if it is in offline 
Issue History
2023-04-20 14:32javierRodriguezNew Issue
2023-04-20 14:32javierRodriguezAssigned To => javierRodriguez
2023-04-20 14:32javierRodriguezOBNetwork customer => No
2023-04-20 14:32javierRodriguezTriggers an Emergency Pack => No
2023-04-20 15:29javierRodriguezAssigned TojavierRodriguez => Triage Platform Base
2023-05-03 11:03meriem_azafAssigned ToTriage Platform Base => meriem_azaf
2023-05-03 11:03meriem_azafStatusnew => scheduled
2023-05-03 11:15hgbotMerge Request Status => open
2023-05-03 11:15hgbotNote Added: 0149188
2023-05-03 11:18hgbotNote Added: 0149189
2023-06-04 21:00hgbotMerge Request Statusopen => approved
2023-06-04 21:00hgbotNote Added: 0150684
2023-06-04 21:00hgbotResolutionopen => fixed
2023-06-04 21:00hgbotStatusscheduled => closed
2023-06-04 21:00hgbotFixed in Version => 23Q3
2023-06-04 21:00hgbotNote Added: 0150685
2023-06-04 21:00hgbotNote Added: 0150686
2023-06-04 21:00hgbotFixed in Version23Q3 => RR23Q3
2023-06-04 21:00hgbotNote Added: 0150687
2023-06-05 10:36hgbotNote Added: 0150709

Notes
(0149188)
hgbot   
2023-05-03 11:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1073 [^]
(0149189)
hgbot   
2023-05-03 11:18   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/506 [^]
(0150684)
hgbot   
2023-06-04 21:00   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1073 [^]
(0150685)
hgbot   
2023-06-04 21:00   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 2da4c8fdee57186e24f7b07291ad600adfd13e8a
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 04-06-2023 20:50:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/2da4c8fdee57186e24f7b07291ad600adfd13e8a [^]

Fixes ISSUE-52190: The application switch to English if it is in offline

In offline mode, the application language switches to English.

To fix this, we added a new property to the session in indexDB to keep the language and set it in offline mode.

---
M web-jspack/org.openbravo.core2/src/core/authentication/LoginProcess.js
M web-jspack/org.openbravo.core2/src/core/authentication/RestoreSession.js
M web-jspack/org.openbravo.core2/src/core/authentication/__test__/LoginProcess.test.js
M web-jspack/org.openbravo.core2/src/core/user-interface/__test__/View.test.js
M web-jspack/org.openbravo.core2/src/model/session/__test__/SetSession.test.js
M web-jspack/org.openbravo.core2/src/model/session/actions/SetSession.js
---
(0150686)
hgbot   
2023-06-04 21:00   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/506 [^]
(0150687)
hgbot   
2023-06-04 21:00   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: f430b6e961070a3e98616227f050a0a00ac06b67
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 04-06-2023 20:59:12
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/f430b6e961070a3e98616227f050a0a00ac06b67 [^]

Fixes ISSUE-52190: The application switch to English if it is in offline

In offline mode, the application language switches to English.

To fix this, we added a new property to the session in indexDB to keep the language and set it in offline mode.

---
M web/org.openbravo.mobile.core/app/model/login/OfflineSession.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0150709)
hgbot   
2023-06-05 10:36   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: e073760818033ec049b905b9b5692198956151a0
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 05-06-2023 10:36:24
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/e073760818033ec049b905b9b5692198956151a0 [^]

Related to ISSUE-52190: Makes sure terminal is not null

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---