Commit graph

6 commits

Author SHA1 Message Date
5e8a2b6d1c Move translation (i18n) stuff in EesyPHP namespace 2023-01-29 23:35:17 +01:00
Benjamin Renard
01759fb4c2 Fix handling authentication
- URL routes now defaulty required authentication if
  force_authentication special function is defined.
- handle_request() now trigger a fatal error if user try to access to
  a required route and if force_authentication function is not defined.
- logging() now retreive username from $auth_user['username'].
2022-04-25 18:42:18 +02:00
Benjamin Renard
3a61299005 Add handler for common HTTP errors 2022-04-24 19:11:37 +02:00
Benjamin Renard
444c1ec2fc Improve translations
- Add support for translations in JavaScript code using babel lib and
  a custom PO file converter to JSON (using sepia/po-parser lib for
  PO files parsing)
- Put translation CLI commands in a dedicated file
- update_messages CLI command now provide PO file initialization feature
  using msginit and support of compendium files
2022-04-24 16:46:38 +02:00
Benjamin Renard
129eff1986 Update translation 2021-10-07 20:59:58 +02:00
Benjamin Renard
e936064b78 Add translation system and improve URL routing system 2021-07-28 17:13:10 +02:00