-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix jsConfigHelper lang/locale mixup #17673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This messes with the translation of the date names etc. Signed-off-by: Roeland Jago Douma <[email protected]>
* Do not do translations in the constructor. This gets called to early so there is no user yet. Which means we can't obtain the locale. Which means we store the wrong translation instance. * Same for the theming app magic. Just use the parent call when needed. Signed-off-by: Roeland Jago Douma <[email protected]>
georgehrke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works 👍
Thx a lot!
| return $this->theme->getSlogan(); | ||
| } else { | ||
| if ($this->defaultSlogan === null) { | ||
| $l10n = \OC::$server->getL10N('lib'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can inject the IFactory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid to inject anything here in this legacy code. I vote to keep this as is for now so it backports clean and then spend time in cleaning up thise theming madness ;)
The reason is that the server funciton doesn't allow you to set a locale right now (but differnt issue) So this was 2 bugs.
|
|
Make sure this still works #11132 :) |
Should it? If my language is german and my locale is US, i want my dates to be MM/DD/YYYY, my time to be 12hours with am/pm and the first day to be Sunday. |
|
|
/backport to stable17 |
|
/backport to stable16 |
|
/backport to stable15 |
|
backport to stable17 in #17686 |
|
The backport to stable15 failed. Please do this backport manually. |
|
backport to stable16 in #17687 |

To test:
Open your js console and get the value of
Before:
Now: