#4171 closed Defect (fixed)
user's language preference not loaded on login
| Reported by: | Purus | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Elgg 1.8.3 |
| Component: | Core | Version: | 1.8.1 |
| Severity: | minor | Keywords: | |
| Cc: | brett@… | Difficulty: |
Description
I have made a french translation plugin at top of the plugin list.
When the user changes his language and login, all the site text is displayed correctly in french. But the message "You have been logged in" is not displayed in french.
The language string in French is present. But its not shown as it's loaded later.
I use the below function in my plugin's start.php file.
register_translations(dirname(FILE) . "/languages/", true);
For me this looks like a bug, as the languages should be loaded very beginning.
Change History (3)
comment:1 Changed 18 months ago by cash
- Milestone changed from Needs Review to Elgg 1.8.3
- Summary changed from System Message Untranslatted to user's language preference not loaded on login
comment:2 Changed 17 months ago by Cash Costello
- Resolution set to fixed
- Status changed from new to closed
Fixes #4171 login success message is now i18n friendly
Changeset: e3d38a9e9905ea19b48f5413d5c5b371f1bd7316
comment:3 Changed 16 months ago by Cash Costello
Fixes #4171 login success message is now i18n friendly
Changeset: e3d38a9e9905ea19b48f5413d5c5b371f1bd7316

Confirmed. Logging the user in is not loading the user's language (it's loaded all subsequent pages). Also, the language code is being cached and not changed after login.