Fix static localized text#3400
Conversation
* upstream/master: (26 commits) Fix static localized text (#3400) Fix problems in source editor (#3398) Fix MathSciNet fetcher (#3402) Fix NPE when saving new file Improve SyncLang.py (#3184) Config intellj code style to adhere to empty lines checkstyle rule (#3365) Don't list same look and feels more than once (#3393) progessdialog and result table are now shown correclty on copy files Export pdf/linked files (#3147) Added checking integrity dialog (#3388) Update richtext and flowless (#3386) Source tab: hide notification pane when code is correct again (#3387) Titles are optional at crossref (#3378) Update entry for every change in the source panel (#3366) Rework AutoSetFileLinks (#3368) revert wrongly commited changes Refactorings (#3370) Fix freezing when running cleanup file operations like rename (#3315) This additional style setting for IDEA (#3355) Fix checkstyle ... # Conflicts: # CHANGELOG.md
|
The PR looks OK to me, although it's only cosmetics and not necessary. I just wanted to point out that these static texts should correctly be translated after my localization PR that cached the messages. The idea behind statically caching all messages was that it's anyway not possible to make a complete language change in the GUI without restarting JabRef. We always had the warning for the user to restart JabRef after setting a new language. Back then, I saw these static initializations as well and the main issue with them was, that they were initialized before the localization framework was initialized with the correct language. Therefore, in former times there was a hidden, but non-critical bug. In main:
I, therefore, reordered the init phase so that the language and localization were ready when the first access to it happened. This ensures correct language for the static things I found. Nevertheless, this is a good PR and although I haven't tested it, it looks correct. If you like, you can refactor the initialization phase again which means moving from |
I had some problems with not initialized resource bundles (an issue on my side), which lead me to discover a few instances where localized text were accessed statically. Such text would never be translated correctly. Should be fixed with this PR. (I didn't add a changelog entry since it is a really minor fix.)
gradle localizationUpdate?