9109c61af5
[TOOLS][CS-FIXER] Run new PHP CS Fixer config. Notably, adds strict_types
2021-10-27 04:19:28 +01:00
add8f4a52f
[TOOLS] Fix all errors found by PHPStan level 1
2021-09-14 13:13:42 +01:00
7a2574eafb
[CORE][TemporaryFile] Add option to specify attempts and better handle when reaching the attemp limit without being able to create a file
2021-09-14 13:13:15 +01:00
27fb2da1d0
[DOCS][Dev] Add Internationalisation
2021-09-14 13:13:11 +01:00
8b5bd40421
[TESTS] Add tests to all relevant methods under App\Util and fix errors that popup
2021-09-14 13:10:23 +01:00
460712e15e
[GIT] Change my email to the new one in all files and bump copyright year
2021-09-14 13:06:56 +01:00
Hugo Sales
e8feb2ae84
[DOCUMENTATION][REFACTOR] Add documentation to all flagged function and do some small cleanup
2021-09-14 13:06:55 +01:00
Hugo Sales
e482ecfb87
[I18N] Remove support for context until it proves necessary, as it broke the code
2021-09-14 13:05:39 +01:00
Hugo Sales
fffa17448f
[CORE][I18n][DEFAULTS] Remove I18nHelper
2021-09-14 13:05:38 +01:00
Hugo Sales
753f852941
[I18N] Fix implementation of I18nHelper::formatICU
2021-09-14 13:05:28 +01:00
Hugo Sales
f28ff24f2a
[I18N] Small fixes. Still broken, though :')
2021-09-14 13:05:28 +01:00
Hugo Sales
10ca51e72a
[I18N] Overhaul _m() implementation to support ICU message formats
2021-09-14 13:05:27 +01:00
Hugo Sales
711af58dcd
[I18N] Added ability to call _m_dynamic
from any class, allowing it to define translations for dynamic-valued calls to _m
2021-09-14 13:05:27 +01:00
Hugo Sales
dc7387cc8d
[I18N] Custom translation extractor based on Symfony's PhpExtractor, since we use instead of
2021-09-14 13:05:27 +01:00
Hugo Sales
f283613443
[I18N] Refactor since rfc/use-static-function is not implemented
...
As the above mentioned RFC is not implemented, `_m` needs to be
outside of the I18n class, otherwise it would have to always be called
with `I18n::_m`.
2021-09-14 13:05:27 +01:00