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 Language Chooser #2150

Merged
merged 7 commits into from
Apr 4, 2022
Merged

Add Language Chooser #2150

merged 7 commits into from
Apr 4, 2022

Conversation

overheadhunter
Copy link
Member

@overheadhunter overheadhunter commented Apr 2, 2022

Fixes #2106

Important: When adding a new language, it needs to be added to SupportedLanguages#LANGUAGAE_TAGS manually in order to show up in the preferences menu.

Screenshot 2022-04-02 at 12 10 57

@overheadhunter

This comment was marked as outdated.

@overheadhunter overheadhunter removed the request for review from infeo April 3, 2022 10:23
Copy link
Member

@infeo infeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching the language is a nice to have feature.

Although: i don't like that a language needs to be added manually. Can't we generate some kind of properties file during build and load it via the getResource(String name)? Then we would notice when a new language is added.

Copy link
Member

@infeo infeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, and please adjust the SettingsJsonAdapterTest to also include the language tag.

Tests for SupportedLanguages would also be nice 😉

@overheadhunter
Copy link
Member Author

i don't like that a language needs to be added manually. Can't we generate some kind of properties file during build and load it via the getResource(String name)? Then we would notice when a new language is added.

me neither, but I wanted to keep the PR small, since the last one was so big.

@sonarcloud
Copy link

sonarcloud bot commented Apr 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

17.1% 17.1% Coverage
0.0% 0.0% Duplication

@overheadhunter overheadhunter merged commit 3136e22 into develop Apr 4, 2022
@overheadhunter overheadhunter deleted the feature/language-switcher branch April 4, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "change language" option
2 participants