Commit graph

41 commits

Author SHA1 Message Date
Benjamin Renard
65d1d50c3a
Templating tr function: provided message could now be formated as LSformat string using extra provided parameters
Example: {tr msg="Hello %(who)!" who="World"}
2023-05-26 10:26:56 +02:00
Benjamin Renard
823006937a
generate_lang_file: ignore LSformat string with simple string substitution 2023-05-17 17:59:58 +02:00
Benjamin Renard
2d108c8b08
Allow translation of LSioFormat labels 2023-05-17 16:26:35 +02:00
Benjamin Renard
48e5d45d32
LScli / LSlang: starting CLI commands messages translation 2023-03-21 12:59:55 +01:00
Benjamin Renard
e103bee065
LSlang / generate_lang_file: add possibility to translate message in a text editor 2023-03-21 11:33:42 +01:00
Benjamin Renard
20432adb14 Clean errors detected by PHPstan (level 3) 2023-01-02 01:17:46 +01:00
Benjamin Renard
bbde10bbf0 Add some class properties type & coments and clean errors detected by PHPstan (level 2) 2023-01-01 19:38:03 +01:00
Benjamin Renard
8a02680114 Clean/normalize comments format about parameters & returned value of functions/methods 2022-12-31 05:52:31 +01:00
Benjamin Renard
e71823b644 Clean errors detected by PHPstan (level 1) 2022-12-31 04:09:56 +01:00
Benjamin Renard
7f862c9765 Clean errors detected by PHPstan (level 0) and configure CI to run it on each commit 2022-12-31 02:02:28 +01:00
Benjamin Renard
a0ceb1dbdc search: handle translation of LSformat, alternativeLSformats and formaterLSformat 2022-09-30 10:37:55 +02:00
Benjamin Renard
fd81cb496f Restore location paths in ldapsaisie.pot file but make it relative 2022-06-14 17:05:53 +02:00
Emmanuel Saracco
c657e318dd LSlang: add "--no-location" to xgettext 2022-06-14 16:10:02 +02:00
Benjamin Renard
27f06b7b66 generate_lang_file CLI command: add -F/--fix-utf8 parameter
Add an option to allow to try to load and fix existing translation files
with broken UTF-8 characters.
2021-10-08 17:20:31 +02:00
Benjamin Renard
c0d874c68d generate_lang_file CLI command: add -K/--keep-unused parameter 2021-10-08 17:17:17 +02:00
Benjamin Renard
9907e08f18 Code cleaning 2021-08-25 18:02:37 +02:00
Benjamin Renard
0b850e8acb LSlang: fix handling locales that only existing in local directory 2021-06-29 16:50:25 +02:00
Benjamin Renard
516cc12d1b LSlang: fix loading alternative lang files in local directory 2021-06-29 16:46:50 +02:00
Benjamin Renard
2b6b8ce270 Fix project URLs and list emails addresses 2021-04-13 18:04:19 +02:00
Benjamin Renard
40a17c3524 LSlang: improve generate_lang_file command
Improve detection in PHP files, add detection in LSaddons/LSauthMethod 
config files and includes PHP files. Add -I/--include-upstream parameter 
(and use it for generate_ldapsaisie_pot command)
2021-01-29 15:23:22 +01:00
Benjamin Renard
b93187f208 LSformElement::labeledValue: add translate_labels parameter and fix translating it 2020-11-25 15:46:25 +01:00
Benjamin Renard
00d92d1c37 generate_lang_file CLI command: improve logging 2020-09-10 12:26:25 +02:00
Benjamin Renard
4e87ddb898 generate_lang_file CLI command: factor handling possible_values of select list&box 2020-09-10 12:09:26 +02:00
Benjamin Renard
d344c56f45 generate_lang_file CLI command: fix PHP warning 2020-09-10 12:07:04 +02:00
Benjamin Renard
02ad9ded1e generate_lang_file CLI command: add Q choice in interactive mode to quit 2020-09-09 20:06:43 +02:00
Benjamin Renard
7e74853021 LSattr_html::date & LSformRule:📅 add special_values parameter 2020-09-09 18:40:44 +02:00
Benjamin Renard
3d49092262 LSlang: fix warning about return not True 2020-08-25 11:01:28 +02:00
Benjamin Renard
312b3dfb11 Wording 2020-07-07 12:38:28 +02:00
Benjamin Renard
dde982f42c generate_ldapsaisie_pot CLI command: fix handling ___() keyword 2020-06-30 09:58:22 +02:00
c8820ff841 Add autocompleter for CLI command LSlang :: generate_lang_file 2020-06-15 08:30:50 +02:00
079f39ab4b LSformElement::password: Add confirmChangeQuestion parameter 2020-06-13 10:14:16 +02:00
Benjamin Renard
4a3e4e3fbb LSlang :: generate_lang_file: fix handling smarty escape modifier 2020-05-12 19:24:38 +02:00
5674a99a7c LSldap : use LSlog_logger 2020-05-08 15:16:24 +02:00
7425555b3d LSlang : use LSlog_logger 2020-05-08 13:23:45 +02:00
Benjamin Renard
1dabe6d6aa LSlang :: setLocale(): don't warn if lang file not found 2020-05-07 11:35:06 +02:00
Benjamin Renard
3fbe53d4c6 Replace generate_ldapsaisie.pot.sh script by a LScli command 2020-05-06 19:58:57 +02:00
Benjamin Renard
1cb2c47bfb LSlang :: generate_lang_file : return boolean instead of exit 2020-05-06 19:57:14 +02:00
Benjamin Renard
6dcbddf84c LSlang :: generate_lang_file : does not need LDAP connection 2020-05-06 18:37:02 +02:00
Benjamin Renard
dfc3f8e8a8 LSlang :: generate_lang_file : fix detection of all messages 2020-05-06 18:35:39 +02:00
Benjamin Renard
68a2105900 Replace generate_lang_file.php by LScli command generate_lang_file 2020-05-06 17:48:49 +02:00
Benjamin Renard
52f7c3a205 Move LSsession lang stuff to dedicated LSlang class 2020-05-06 16:06:05 +02:00