Openbravo Issue Tracking System - POS2
View Issue Details
0052321POS2Corepublic2023-04-20 14:322023-06-05 10:39
javierRodriguez 
meriem_azaf 
normalminoralways
closedfixed 
5
 
23Q2.123Q2.1 
approved
No
No
0052321: 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.
has duplicate backport 005231923Q2 closed meriem_azaf English language in offline mode 
blocks design defect 0052190 closed meriem_azaf The application switch to English if it is in offline 
Issue History
2023-05-03 11:03meriem_azafTypedesign defect => backport
2023-05-03 11:03meriem_azafTarget Version => 23Q2
2023-05-03 13:10AugustoMauchRelationship addedhas duplicate 0052319
2023-05-03 13:12AugustoMauchTarget Version23Q2 => 23Q2.1
2023-05-05 11:02hgbotMerge Request Status => open
2023-05-05 11:02hgbotNote Added: 0149337
2023-05-05 11:06hgbotNote Added: 0149338
2023-06-04 21:04hgbotMerge Request Statusopen => approved
2023-06-04 21:04hgbotResolutionopen => fixed
2023-06-04 21:04hgbotStatusscheduled => closed
2023-06-04 21:04hgbotFixed in Version => RR23Q2.1
2023-06-04 21:04hgbotNote Added: 0150688
2023-06-04 21:04hgbotNote Added: 0150689
2023-06-04 21:05hgbotNote Added: 0150690
2023-06-04 21:05hgbotFixed in VersionRR23Q2.1 => 23Q2.1
2023-06-04 21:05hgbotNote Added: 0150691
2023-06-05 10:39hgbotNote Added: 0150710
2023-06-05 10:39hgbotNote Added: 0150711
2023-06-05 10:39hgbotNote Added: 0150712

Notes
(0149337)
hgbot   
2023-05-05 11:02   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1083 [^]
(0149338)
hgbot   
2023-05-05 11:06   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/514 [^]
(0150688)
hgbot   
2023-06-04 21:04   
Directly closing issue as related merge request is already approved.

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

Fixes ISSUE-52321: 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
---
(0150689)
hgbot   
2023-06-04 21:04   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/514 [^]
(0150690)
hgbot   
2023-06-04 21:05   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1083 [^]
(0150691)
hgbot   
2023-06-04 21:05   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 4ecb2c5eda28d8cd3a33b8fc5c5460040627a845
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 04-06-2023 21:04:36
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/4ecb2c5eda28d8cd3a33b8fc5c5460040627a845 [^]

Fixes ISSUE-52321: 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
---
(0150710)
hgbot   
2023-06-05 10:39   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/539 [^]
(0150711)
hgbot   
2023-06-05 10:39   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: c62455c3f1738f010a6d4ca5dda4b02a8ac153ff
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 05-06-2023 10:38:54
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/c62455c3f1738f010a6d4ca5dda4b02a8ac153ff [^]

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

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0150712)
hgbot   
2023-06-05 10:39   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/539 [^]