Repository navigation
refactor(help): la ayuda de la interfaz pasa a i18n/help.es.toml - #195
Merged
Merged
Conversation
Las 280 entradas de help.py y help_base.py (qué es, cómo se usa, efecto en el cálculo) y los textos de las páginas de referencia salen del código y quedan en i18n/help.es.toml. help_core las lee (help_catalog, help_items) y arma las páginas (render_page); help y help_base conservan su interfaz (HELP_ITEMS, help_text, BASE_ITEMS, render_*_help_markdown). Los tooltips y las entradas son idénticos; las dos páginas de docs/usuario solo cambian la línea que dice de dónde se generan. Una traducción sería help.<idioma>.toml con las mismas claves (queda pendiente, como decidió el plan). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014sGf7Ft5MPnvkqUgRxRwbg Signed-off-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumen
Etapa K, la última del plan de calidad. La ayuda de la interfaz sale del código Python.
src/openconex/i18n/help.es.tomltiene la ayuda completa:help.pyyhelp_base.py:shear.fields,shear.menus,shear.checks,base.fieldsybase.ui, cada una con qué es, cómo se usa y efecto en el cálculo;help_core.pylee el archivo (help_catalog,help_items) y arma las páginas (render_page).help.pyyhelp_base.pyquedan como módulos cortos con la misma interfaz que antes:HELP_ITEMS,help_text,shear_fields,shear_menus,BASE_ITEMSyrender_*_help_markdown. La GUI no cambia.help.<idioma>.toml, con las mismas claves.help_text. Si el.tomlno entrara en el paquete, ese paso fallaría.Validación
shear_fields(),shear_menus(), los 280 tooltips y las dos páginas generadas. Después del cambio todo es idéntico. En las páginas dedocs/usuario/10y11solo cambia la línea que dice de dónde se generan.tests/test_help.py:HELP_ITEMSy no tiene campos desconocidos;python -m pytest: 1165 pruebas pasan. También pasanruff check src testsypython -m mypy.Lista de verificación
docs/tecnico/01-arquitectura.md(módulos de ayuda)docs/tecnico/08-mantener-documentacion.md(fila nueva: qué hacer al cambiar un campo de la interfaz)docs/tecnico/13-agregar-familia.mddocs/usuario/09-interfaz.md-s(DCO).Generated by Claude Code