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

i18n: reduce log spam for missing labels #681

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

skaldarnar
Copy link
Member

@skaldarnar skaldarnar commented Nov 2, 2022

Contains

Build up an index at runtime to remember which translations are missing and only log them once.

How to test

Go to the launcher settings and change the language.
Select a langauge with missing translations (German, French, and Italian definitely have missing translations for some labels).

The launcher log should print WARN logs about the missing translations only once.
Switching back and forth between those locales should not yield further log output.

Outstanding before merging

Based on #679.

Build up an index at runtime to remember which translations are missing and only log them once.
@skaldarnar skaldarnar added Type: Enhancement New features or noticable improvements. Topic: UI Related to user interface (UI) or design. labels Nov 2, 2022
@skaldarnar skaldarnar added this to the v4.7 milestone Nov 2, 2022
@jdrueckert jdrueckert merged commit 038f7bb into feat/bindings-for-i18n Nov 3, 2022
@jdrueckert jdrueckert deleted the chore/reduce-i18n-log-spam branch November 3, 2022 20:31
skaldarnar added a commit that referenced this pull request Nov 4, 2022
* i18n: use properties and bindings for i18n of resources bundles

- slim down `Languages` and merge it with `BundleUtils`
- rename `BundleUtils` >>> `I18N`, now holding utility for translating resource bundles in general
- add small FX-utility to `I18N` to create a `Tooltip` with a string binding
- migrate both application and settings controller to use string bindings for labels
- use `Locale`s as value for the language selection and use custom cell renderer for icon and translated text

Based on https://sodocumentation.net/javafx/topic/5434/internationalization-in-javafx

* chore: fix checkstyle error-level finding

* i18n: reduce log spam for missing labels (#681)

Build up an index at runtime to remember which translations are missing and only log them once.

* i18n: translate both selected and other entries in Java memory combo boxes

Co-authored-by: jdrueckert <jd.rueckert@googlemail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Topic: UI Related to user interface (UI) or design. Type: Enhancement New features or noticable improvements.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants