erplibre/script/git
Mathieu Benoit 54f44755cd [I18N] commit-msg : le garde-fou parle la langue du dépôt
Les messages du garde-fou étaient des littéraux français : l'anglais n'était
pas supporté, quelle que soit la valeur de EL_LANG. Onze clés passent
désormais par t(), pour 6 ms de surcoût mesuré par commit. L'en-tête
annonçait « sujet » alors que le contrôle lit aussi le corps ; il dit
« message ».

Les tests ne passaient que parce que le dépôt est en français : un poste en
anglais en cassait quarante. La langue devient une précondition — épinglée en
mémoire, car set_lang() écrirait un fichier suivi — et les assertions qui
citent du texte français se sautent en nommant leur raison.

Vérifié en basculant EL_LANG : 48 tests OK en français, 2 sautés en anglais.

--- EN ---

The guard rail's messages were French literals: English was not supported at
all, whatever EL_LANG said. Eleven keys now go through t(), for a measured
6 ms of overhead per commit. The header announced "subject" while the check
reads the body too; it says "message".

The tests passed only because the repository is in French: a workstation in
English broke forty of them. The language becomes a precondition — pinned in
memory, since set_lang() would write a tracked file — and the assertions
quoting French text skip while naming their reason.

Checked by switching EL_LANG: 48 tests OK in French, 2 skipped in English.

Assisted-by: Claude Opus 5
2026-08-31 00:50:31 -04:00
..
hooks [I18N] commit-msg : le garde-fou parle la langue du dépôt 2026-08-31 00:50:31 -04:00
__init__.py [UPD] script: move script git, manifest, database, poetry, install 2023-01-02 21:54:20 -05:00
clean_repo_manifest.sh [FIX] git clean repo manifest adapt for multi odoo 2025-11-05 04:36:47 -05:00
commit_msg_lib.py [I18N] commit-msg : le garde-fou parle la langue du dépôt 2026-08-31 00:50:31 -04:00
fork_project.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
fork_project_ERPLibre.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_change_remote.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_change_remote_https_to_git.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_diff_repo_manifest.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_local_server.py [UPD] script Format 2026-03-14 23:26:31 -04:00
git_merge_repo_manifest.py [ADD] installation: add optional extra modules (CybroOdoo) 2026-08-07 02:09:24 -04:00
git_repo_manifest.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_repo_update_group.py [ADD] commentaires : un relevé non bloquant, sa règle, le code nettoyé 2026-08-30 06:08:30 -04:00
git_show_code_diff_repo_manifest.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_tool.py [FIX] script: différer les annotations, la 12 tourne en Python 3.7 2026-08-23 03:13:58 -04:00
git_update_repo.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
github_api.py [FIX] script: différer les annotations, la 12 tourne en Python 3.7 2026-08-23 03:13:58 -04:00
pull_request_ERPLibre.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
remote_code_generation_git_compare.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
repo_diff_last_version.sh [IMP] refactoring .venv.erplibre 2025-10-31 01:34:26 -04:00
repo_diff_stat_last_version.sh [IMP] refactoring .venv.erplibre 2025-10-31 01:34:26 -04:00
repo_remove_auto_install.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
repo_revert_git_diff_date_from_code_generator.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
repo_url.py [FIX] script: différer les annotations, la 12 tourne en Python 3.7 2026-08-23 03:13:58 -04:00
tag_push_all.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00