Commit Graph

18 Commits (master)

Author SHA1 Message Date
Leandro Doctors 2733516cb9 Organize imports 2020-01-16 08:21:24 +08:00
Martin Petricek bd5ae5fd7a Refactoring (#1543)
* Fix typos.

* Remove unnecessary boxing/unboxing.

* Replace traditional 'for' loops with 'foreach' loops.

* Replace explicit types with <> (diamonds) where they can be inferred.

* Collapse identical catch branches.

* Replace statement lambda with expression lambda for short statements.

* Remove unnecessary imports.

* Replace some lambdas with Comparator.comparing

* Replace Runnables with lambdas.

* Use addAll instead of adding whole collection manually.

* Simplify boolean expressions.

* Remove redundant 'else'.

* Simplify some boolean conditions that are always true or false.

* Inline redundant local variables.

* Remove extraneous semicolons.

* Fix Javadoc errors.

* Replace anonymous classes with lambdas.

* Replace chain of 'if's with switch.

* Remove delaration of exception that is never thrown.

* Use String/StringBuilder properly.
2018-04-08 08:59:14 +08:00
lodici bc46cbbd05 fixes #1209 : 'P' referring to [P]layed and [P]ower might not work when translated. 2017-07-21 19:00:22 +01:00
lodici 1c85428aef Force unix line endings in translation file to stop git flagging an unchanged file as different when opened via Edit menu in Windows. 2017-07-21 16:14:49 +01:00
lodici c220e24998 move general config 'custom.fonts' to BooleanSetting. 2017-07-15 22:50:07 +01:00
lodici a003a26787 avoid empty if statement in MText. 2017-06-19 20:31:10 +01:00
lodici 2400cf9188 Position literals first in String comparisons to avoid potential NPEs. 2017-06-16 10:22:50 +01:00
lodici 7d73aef9f0 fix: language version not displayed. 2017-06-10 01:29:09 +01:00
lodici 9df381dd56 Display menu items using beleren font if translation allows. 2017-06-09 14:52:33 +01:00
lodici 4b300f4786 Display language version in preferences combobox. 2017-06-07 08:34:47 +01:00
lodici cbfb68ddf0 Language selection displays version of Magarena against which a translation was generated. (closes #1142). 2017-06-07 00:52:53 +01:00
lodici 49cbc0310c Use Logger for a more useful log message (includes call stack). 2017-01-10 18:13:31 +00:00
lodici 6245037367 rename UiString to MText. 2016-10-26 09:46:59 +01:00
lodici ae1de1e2c3 Hide Unsupported filter if not English UI. 2016-09-22 10:32:33 +01:00
lodici 81469fba6d add method to automatically wrap long strings by enclosing in <html>...</html> tags and use with animation settings (fixes #626). 2016-01-03 18:25:15 +00:00
melvinzhang c8f1262b45 remove trailing space from java code 2015-12-31 18:54:52 +08:00
lodici d3c4cca89f Can now load a Test* class directly from the load game state icon on the main menu (devMode required). 2015-09-26 13:22:39 +01:00
lodici 107824818f move translation classes into non-ui magic.translate package. 2015-08-06 09:49:09 +01:00