Language\ namespace update

Update the Core Language classes to have all method parameter type
declaration.
GetTextReader has gettext as alias to translate.
GetTextReader public methods to get cache enable status and short
circuit (no translation loaded) status

Main language:
Add new methods for plural and plural in context (__n, __p, __pn)
Deprecate gettext, ngettext, _e

Add new translation loader in gettext standard
<locale>/LC_MESSAGES/<domain> style
Including locales checker, auto detect on enviroment variables, return
self as class (for functions type) return translator class after
loading, etc

New LoadFunctions to run all like functions. Names like php but with two
underscores prefixed. eg gettext -> __gettext
This commit is contained in:
Clemens Schwaighofer
2022-04-13 16:26:15 +09:00
parent 556cabca38
commit 82bc99b181
24 changed files with 2122 additions and 142 deletions

File diff suppressed because it is too large Load Diff