From 45e1cd8ad83f61cef6d0a5c286e74ab47bc94bba Mon Sep 17 00:00:00 2001 From: Gemini Date: Fri, 3 Jul 2026 18:26:05 -0300 Subject: [PATCH] =?UTF-8?q?KB-PLUGIN-028:=20corrige=20path=20do=20cache=20?= =?UTF-8?q?de=20tradu=C3=A7=C3=B5es=20(translations,=20n=C3=A3o=20locales)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Verificado no GLPI 11.0.8: _cache/--production/translations. Nota sobre compilar .mo com Python puro quando msgfmt não está disponível. Co-Authored-By: Claude Fable 5 --- ...PLUGIN-028-glpi11-plugin-rights-and-menu-visibility.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/records/plugin-dev/KB-PLUGIN-028-glpi11-plugin-rights-and-menu-visibility.md b/records/plugin-dev/KB-PLUGIN-028-glpi11-plugin-rights-and-menu-visibility.md index 5840a3b..6412915 100644 --- a/records/plugin-dev/KB-PLUGIN-028-glpi11-plugin-rights-and-menu-visibility.md +++ b/records/plugin-dev/KB-PLUGIN-028-glpi11-plugin-rights-and-menu-visibility.md @@ -391,9 +391,15 @@ cd marketplace//locales msgfmt pt_BR.po -o pt_BR.mo # 4. Limpar cache do GLPI -docker exec find /var/glpi/files/_cache -name "locales" -type d -exec rm -rf {} + +# (correção 2026-07-03, verificado no GLPI 11.0.8: o cache de traduções fica +# em _cache/--production/translations — não existe dir "locales") +docker exec sh -c 'rm -rf /var/glpi/files/_cache/*-production/translations' ``` +> **Nota (2026-07-03):** sem `msgfmt` no host/container, dá para compilar o +> `.mo` com Python puro (formato binário simples: magic 0x950412de + tabelas +> de offsets; ~60 linhas). Feito no plugin butterfly com sucesso. + #### Formato `.po` ```