Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0052745 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
defect | [POS2] Core | minor | have not tried | 2023-06-14 17:44 | 2024-03-14 12:47 | |||||||
Reporter | cberner | View Status | public | |||||||||
Assigned To | Triage Platform Base | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Any | Database | Any | Java version | ||||||||
OS Version | Database version | Ant version | ||||||||||
Product Version | SCM revision | |||||||||||
Review Assigned To | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0052745: Chrome auto-detects wrong language, always detecting English(also when language changed) | |||||||||||
Description | Chrome based browsers use the following mechanism to detect the current language of a website: https://stackoverflow.com/a/3130857 [^] It seems that in the react application we are always setting the main html element to lang="en", which stands for English language. This means, that when changing the profile language to for example French, the language of the page to chrome is still English and not French. This results in the browser suggesting to translate the page from English to the system's language. For example, if I have my system set to Spanish language and I logged in and switched my profile default language to Spanish in pos2, I will get suggested by chrome to translate the webpage from English to Spanish, although it is already in Spanish. | |||||||||||
Steps To Reproduce | 1. Set system language to any other than English(or keep english and see that there's no suggestion to translate when switching to another language) 2. Open WebPOS2, login and change the current default language to another than English. Profile -> Change language (mark the set default checkbox) 3. Check that when refreshing or reentering the page, you're shown the suggestion to translate from English to your system language. | |||||||||||
Proposed Solution | Apply the solution provided here but using react: https://stackoverflow.com/a/3130857 [^] This means to change the main html element when switching profile language: https://stackoverflow.com/a/52287911 [^] | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | french suggested language.gif [^] (1,366,915 bytes) 2024-03-14 12:47 | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Issue History | |||
Date Modified | Username | Field | Change |
2023-06-14 17:44 | cberner | New Issue | |
2023-06-14 17:44 | cberner | Assigned To | => Triage Platform Base |
2023-06-14 17:44 | cberner | Triggers an Emergency Pack | => No |
2023-06-14 17:48 | cberner | Description Updated | View Revisions |
2024-03-14 12:47 | cberner | File Added: french suggested language.gif |
Copyright © 2000 - 2009 MantisBT Group |