Commit graph

223 commits

Author SHA1 Message Date
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
a7e4ea8168 Add update_messages & compile_messages CLI commands 2021-10-07 20:59:40 +02:00
Benjamin Renard
6684efab2f Improve CLI usage message format 2021-10-07 20:49:07 +02:00
Benjamin Renard
e26da38457 Add FR lang directory alias 2021-10-07 20:48:23 +02:00
Benjamin Renard
4bb16803bf Fix logging in run_external_command() 2021-10-07 20:47:26 +02:00
Benjamin Renard
5dd35cabb2 translation: improve initialization
- Keep current language in session
- allow selection using lang request parameter
- allow reseting current language using reset_lang request parameter
- improve logging problems
- add 'Hello word!' test to validate initializatio
2021-10-07 20:46:13 +02:00
Benjamin Renard
6d8abbf391 Always detect requested URL from REQUEST_URI
It's permit to access raw URL parameter values without automatic 
urldecode when access using $_GET or $_REQUEST. Also add 
UrlRequest::get_param() method that allow to access raw parameters 
values (without any decoding).
2021-07-28 18:18:36 +02:00
Benjamin Renard
a120571e62 CLI: add --trace parameter 2021-07-28 17:17:41 +02:00
Benjamin Renard
b10ba6cb73 Remove duplicated $log_file declaration in config file 2021-07-28 17:17:22 +02:00
Benjamin Renard
451b924cd1 Always include mail.php 2021-07-28 17:16:57 +02:00
Benjamin Renard
6d8812abb5 display_ajax_return(): Return HTTP 400 error code if success==false in retourned data 2021-07-28 17:16:43 +02:00
Benjamin Renard
d76c21c526 display_ajax_return(): add $pretty parameter 2021-07-28 17:15:46 +02:00
Benjamin Renard
e936064b78 Add translation system and improve URL routing system 2021-07-28 17:13:10 +02:00
Benjamin Renard
ec452a1ff4 Use php-unidecode instead of incomplete without_accent() function 2021-07-28 16:12:01 +02:00
Benjamin Renard
47a1d09e54 Set HTTP reponse code to 500 on FATAL error 2020-11-30 10:47:09 +01:00
Benjamin Renard
a80208adc0 logging: Add TRACE log level 2020-11-30 10:46:52 +01:00
Benjamin Renard
4a4f804ae2 Fix sqlite.init-db.sql file 2020-11-18 18:54:15 +01:00
Benjamin Renard
af1d112ae5 Move session stuff in dedicated file 2020-11-18 18:53:47 +01:00
Benjamin Renard
254ac22a64 Improve CLI usage message 2020-11-18 18:33:39 +01:00
Benjamin Renard
21e4bc935d Fix CLI wrapper and rename CLI tool to eesyphp 2020-11-18 18:33:08 +01:00
63bab08c48 Add some documentation 2020-04-18 01:25:49 +02:00
699b7c4d1f Initial version 2020-04-18 00:51:33 +02:00