Skip to content

2022-January-15 - Prerelease - 2.6.543

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 15 Jan 17:09
ef6c094
PoC i18n (internationalization) (#9960)

* i18n PoC

MetaSetupPanel.java:
- Extraction of UI texts
- HTML builder methods

* i18n PoC

I18nResourceBundle.java
- Base class to work with ResourceBundle instantiated with Singleton pattern by each subclasses

I18nEngineFramework.java
- First subclass for I18nResourceBundle.java

HtmlUtils.java
- Extracted reusable helper method to build HTML

MetaSetupPanel.java:
- Refactoring according to new classes

ui.properties / ui_en.properties
- Adapted keys (shortcut for button as btn and tooltip as tltp)
- Completed DE translations

I18nResourceBundleTest.java
- First test methods

propertyTest.property
- Test property file

* i18n PoC

I18nResourceBundle.java
- method getSupportedLanguages

ClientSetting.java
- Check for supported language (default English)

ui_de.properties
- German correction

propertyTest.properties
- renamed from propertyTest.property

* i18n PoC

ui.properties
- double "single quote"

* i18n PoC

ClientSetting.java
- weird google-format error for one line

I18nResourceBundle.java
- Constructor for bundle instantiation added

* i18n PoC

I18nResourceBundleTest.java
- Tests added

I18nResourceBundle.java
- Instantiation of bundle moved to constructor

ui_en.properties
- Needed as default language (can stay empty)

* i18n PoC

I18nResourceBundle.java
- incorporate NumberFormat and DateFormat helper methods

GameResourceBundle.java
- deleted

* i18n PoC

I18nResourceBundleTest.java
I18nResourceBundle.java
ClientSetting.java
- Changed from language to Locale focus

ui.properties
ui_en.properties
propertyTest.properties
- added newline at the end

GameResourceBundle.java
- deleted

* i18n PoC

i18n_languages.md
- documentation started

* i18n PoC

String counts added