Commit graph

7 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
0219714d4a Fix JS translations loading method to make translations available earlier 2022-04-24 20:17:48 +02:00
Benjamin Renard
3a61299005 Add handler for common HTTP errors 2022-04-24 19:11:37 +02:00
Benjamin Renard
efc7352404 Code cleaning 2022-04-24 17:43:44 +02:00
Benjamin Renard
9886cb0720 Switch to SUXUMI bootstrap4dialog lib 2022-04-24 16:52:44 +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