Commit graph

26 commits

Author SHA1 Message Date
Benjamin Renard
3abd2a328b
Introduce new pre-commit hooks and code cleaning 2024-01-23 19:23:10 +01:00
Benjamin Renard
5741dbb604
I18n: add extract_messages_excluded_paths parameter 2023-11-22 15:03:37 +01:00
Benjamin Renard
c7f8c7c500
I18n: add init_locale CLI command 2023-11-17 09:52:28 +01:00
Benjamin Renard
6c9a2d1d3e
I18n: use xgettext & msgcat --force-po argument to be sure POT files will be created even if no message is found 2023-11-17 08:37:09 +01:00
Benjamin Renard
f4c75bc513
I18n: use xgettext --force-po argument to be sure POT file will be created even if no message is found 2023-11-17 08:31:27 +01:00
Benjamin Renard
8c108d0ebb
Properly declare & handle functions/methods that never return (exit/die inside) and add Cli::fatal_error() helper method 2023-07-26 17:02:28 +02:00
Benjamin Renard
32e27b931e
I18n: Move ___() function in functions.php 2023-03-22 18:19:08 +01:00
Benjamin Renard
85f631a911
I18n: remove useless (and potentially problematic) locales alias links 2023-03-09 18:16:09 +01:00
3bf65aea4d CLI compile_messages: include core translated messages in JSON catalog 2023-03-07 17:50:17 +01:00
Benjamin Renard
83f1445799
Make core libs set their default config values in App
This permit to homogenize the method to store it and permit an access to 
all config default values.
Futhermore, core libs init() methods now does not handle parameters: all 
are taken from config.
2023-03-01 16:22:11 +01:00
c626bc177a I18n CLI commands: replace --core parameter by Cli::core_mode() 2023-02-28 01:14:37 +01:00
6a810bf75a I18n: fix handling core mode in po2json() 2023-02-25 17:19:17 +01:00
5b9d09b644 I18n: to not extract messages from vendor directories and Smarty cache templates files 2023-02-25 17:00:14 +01:00
a4d2e3369c I18n: fix handling non-executable smarty-gettext/tsmarty2c.php script 2023-02-25 05:07:00 +01:00
8ff2fe663d Fix PHP 7.3 compatibility 2023-02-16 01:53:08 +01:00
73dc860972 I18n: Split translated messages of core and app in discting gettext domains 2023-02-14 01:21:52 +01:00
9213ae076f I18n: fix CLI commands messages 2023-02-13 03:02:00 +01:00
5bd930c838 I18n: fix locles JS file path in compile_messages CLI command 2023-02-13 02:48:37 +01:00
5691494f12 I18n: fix extracting messages from all PHP, JS and templates files 2023-02-13 02:36:40 +01:00
317cb30cb3 Tpl: Add stuff to have multiple templates directories with priority 2023-02-13 00:42:37 +01:00
4f47dc056d Tpl: Add stuff to handle static files
* Move example application in example sub-directory
* Widely use App::get() instead of Config::get()
2023-02-12 00:30:36 +01:00
f2edf4910a Switch to YAML configuration file, add Config & App classes in EesyPHP namespace
App initialization is now handle by App::init() method and all 
configuration information is now retreive using Config::get() method.
2023-02-08 02:27:15 +01:00
0eb2c543f1 Remove useless "use" statments in EesyPHP namespace 2023-01-31 01:00:56 +01:00
1fff8f0af4 Move templating stuff in EesyPHP namespace 2023-01-31 00:30:04 +01:00
c8659ea46f Move CLI stuff in EesyPHP namespace 2023-01-30 00:11:26 +01:00
5e8a2b6d1c Move translation (i18n) stuff in EesyPHP namespace 2023-01-29 23:35:17 +01:00