Skip to content
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

Add L10n factory method for generic language heuristics #29015

Merged

Conversation

ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented Oct 1, 2021

The existing findLanguage method tries its best to find the best
language for the current users. For some tasks we don't want this but
rather determine the most generic language for another user, e.g. when
the current user trigger an email notification to someone else. In this
case the current user's language is a bad guess in many multi-language
environments.

Ref #28665 (comment), we'll need this new method to finally fix calendar invites that are sent with the wrong language.

The existing `findLanguage` method tries its best to find the best
language for the current users. For some tasks we don't want this but
rather determine the most generic language for *another* user, e.g. when
the current user trigger an email notifiaction to someone else. In this
case the current user's language is a bad guess in many multi-language
environments.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst force-pushed the enhancement/l10n-factory-find-generic-language branch from 2d8793b to 5b727fc Compare October 13, 2021 07:57
@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 13, 2021
@ChristophWurst ChristophWurst marked this pull request as ready for review October 13, 2021 08:01
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 13, 2021
@ChristophWurst ChristophWurst merged commit e163d19 into master Oct 13, 2021
@ChristophWurst ChristophWurst deleted the enhancement/l10n-factory-find-generic-language branch October 13, 2021 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement feature: language l10n and translations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants