Openbravo Issue Tracking System - POS2
View Issue Details
0052322POS2Corepublic2023-04-20 14:322023-06-05 10:42
javierRodriguez 
meriem_azaf 
normalminoralways
closedfixed 
5
 
23Q1.323Q1.3 
approved
No
No
0052322: 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 005232023Q1.2 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 => 23Q1.2
2023-05-04 09:03AugustoMauchRelationship addedhas duplicate 0052320
2023-05-04 09:03AugustoMauchTarget Version23Q1.2 => 23Q1.3
2023-05-05 09:17hgbotMerge Request Status => open
2023-05-05 09:17hgbotNote Added: 0149323
2023-05-05 09:20hgbotNote Added: 0149324
2023-06-04 21:05hgbotMerge Request Statusopen => approved
2023-06-04 21:05hgbotResolutionopen => fixed
2023-06-04 21:05hgbotStatusscheduled => closed
2023-06-04 21:05hgbotNote Added: 0150692
2023-06-04 21:05hgbotFixed in Version => RR23Q1.3
2023-06-04 21:05hgbotNote Added: 0150693
2023-06-04 21:07hgbotNote Added: 0150694
2023-06-04 21:07hgbotFixed in VersionRR23Q1.3 => 23Q1.3
2023-06-04 21:07hgbotNote Added: 0150695
2023-06-05 10:41hgbotNote Added: 0150713
2023-06-05 10:42hgbotNote Added: 0150714
2023-06-05 10:42hgbotNote Added: 0150715

Notes
(0149323)
hgbot   
2023-05-05 09:17   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1081 [^]
(0149324)
hgbot   
2023-05-05 09:20   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/512 [^]
(0150692)
hgbot   
2023-06-04 21:05   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/512 [^]
(0150693)
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.mobile.core [^]
Changeset: 14210ccc0c01a0c330211c928857b664fd559637
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 01-06-2023 12:47:27
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/14210ccc0c01a0c330211c928857b664fd559637 [^]

Fixes ISSUE-52322: 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
---
(0150694)
hgbot   
2023-06-04 21:07   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1081 [^]
(0150695)
hgbot   
2023-06-04 21:07   
Directly closing issue as related merge request is already approved.

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

Fixes ISSUE-52322: 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
---
(0150713)
hgbot   
2023-06-05 10:41   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/540 [^]
(0150714)
hgbot   
2023-06-05 10:42   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/540 [^]
(0150715)
hgbot   
2023-06-05 10:42   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 6dcd39b635981083e41008f47d65a532a4233a06
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 05-06-2023 10:40:20
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/6dcd39b635981083e41008f47d65a532a4233a06 [^]

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

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