From 63c4251a557f8786f84ed42d1bf79b0fad29a992 Mon Sep 17 00:00:00 2001 From: Francisco Vila Date: Sat, 3 Apr 2010 18:21:57 +0200 Subject: [PATCH] 1st attempt of making weblinks to work --- Documentation/es/web/manuals.itexi | 36 +++++++++++++------------- scripts/build/create-weblinks-itexi.py | 7 ++++- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/Documentation/es/web/manuals.itexi b/Documentation/es/web/manuals.itexi index dd9e2346c6..76564528fd 100644 --- a/Documentation/es/web/manuals.itexi +++ b/Documentation/es/web/manuals.itexi @@ -39,15 +39,15 @@ LilyPond es un sistema de grabado musical @strong{basado en texto}. ¡Lea esto primero! -@item @ifWebLinks{@manualStableLearningSplitNoName,@rlearningnamed{Top,Aprendizaje}} +@item @ifWebLinks{@manualStableLearningSplitNoName-es,@rlearningnamed{Top,Aprendizaje}} una introducción a LilyPond amable e @qq{imprescindible}. @details{Aprendizaje} -@item @ifWebLinks{@manualStableGlossarySplitNoName,@rglosnamed{Top,Glosario}} +@item @ifWebLinks{@manualStableGlossarySplitNoName-es,@rglosnamed{Top,Glosario}} @emph{(lectura opcional)} términos musicales y traducciones. @details{Glosario} -@item @ifWebLinks{@manualStableEssaySplitNoName,@ressaynamed{Top,Ensayo}} +@item @ifWebLinks{@manualStableEssaySplitNoName-es,@ressaynamed{Top,Ensayo}} @emph{(lectura opcional)} la información de trasfondo sobre grabado musical. @details{Ensayo} @@ -61,15 +61,15 @@ una introducción a LilyPond amable e @qq{imprescindible}. @itemize -@item @ifWebLinks{@manualStableNotationSplitNoName,@rusernamed{Top,Notación}} +@item @ifWebLinks{@manualStableNotationSplitNoName-es,@rusernamed{Top,Notación}} referencia de la sintaxis. @details{Notación} -@item @ifWebLinks{@manualStableUsageSplitNoName,@rprogramnamed{Top,Utilización}} +@item @ifWebLinks{@manualStableUsageSplitNoName-es,@rprogramnamed{Top,Utilización}} cómo ejecutar los programas. @details{Utilización} -@item @ifWebLinks{@manualStableSnippetsSplitNoName,@rlsrnamed{Top,Fragmentos}} +@item @ifWebLinks{@manualStableSnippetsSplitNoName-es,@rlsrnamed{Top,Fragmentos}} trucos y consejos cortos. @details{Fragmentos} @@ -90,15 +90,15 @@ Preguntas más frecuentes (Frequently Asked Questions). este documento. @details{Web} -@item @ifWebLinks{@manualStableChangesSplitNoName,@rchangesnamed{Top,Cambios}} +@item @ifWebLinks{@manualStableChangesSplitNoName-es,@rchangesnamed{Top,Cambios}} ¿qué hay de nuevo? @details{Cambios} -@item @ifWebLinks{@manualStableExtendingSplitNoName,@rextendnamed{Top,Extender}} +@item @ifWebLinks{@manualStableExtendingSplitNoName-es,@rextendnamed{Top,Extender}} trucos interesantes. @details{Extender} -@item @ifWebLinks{@manualStableInternalsSplitNoName,@rinternalsnamed{Top,Funcionamiento interno}} +@item @ifWebLinks{@manualStableInternalsSplitNoName-es,@rinternalsnamed{Top,Funcionamiento interno}} referencia sobre el trucaje. @details{Funcionamiento interno} @@ -419,9 +419,9 @@ producidas en LilyPond a partir de la version estable anterior. @docLinks{Cambios, changes, @rchangesnamed{Top,Cambios}, - @manualStableChangesSplit, - @manualStableChangesBig, 6 KB, - @manualStableChangesPdf, 200 KB} + @manualStableChangesSplit-es, + @manualStableChangesBig-es, 6 KB, + @manualStableChangesPdf-es, 200 KB} @divEnd @@ -441,9 +441,9 @@ Este manual explica cómo escribir extensiones de LilyPond. @docLinks{Extender, extending, @rextendnamed{Top,Extender}, - @manualStableExtendingSplit, - @manualStableExtendingBig, 200 KB, - @manualStableExtendingPdf, 400 KB} + @manualStableExtendingSplit-es, + @manualStableExtendingBig-es, 200 KB, + @manualStableExtendingPdf-es, 400 KB} @divEnd @@ -474,9 +474,9 @@ se refiere a la documentación generada. @docLinks{Funcionamiento interno, internals, @rinternalsnamed{Top,Funcionamiento interno}, - @manualStableInternalsSplit, - @manualStableInternalsBig, 2.5 MB, - @manualStableInternalsPdf, 2.8 MB} + @manualStableInternalsSplit-es, + @manualStableInternalsBig-es, 2.5 MB, + @manualStableInternalsPdf-es, 2.8 MB} @divEnd diff --git a/scripts/build/create-weblinks-itexi.py b/scripts/build/create-weblinks-itexi.py index 205214b71d..7204bc16c3 100644 --- a/scripts/build/create-weblinks-itexi.py +++ b/scripts/build/create-weblinks-itexi.py @@ -226,6 +226,11 @@ def translateNameToUrl(manual, version): def make_manual_links(name, version, lang): + """Here is where all the macros manualStableLearningSplit, + manualStableLearningBig, manualStableLearningSplitNoName, etc. are + created on the fly. Hopefully this documentation string will help + others a bit while grepping for those. + """ for m in manuals: manual = m # TODO: this is a stupid way of doing it @@ -273,7 +278,7 @@ def make_manual_links(name, version, lang): newurl = url + '/index.html' make_ver_link(macroLang("manual"+name+mshort+'SplitNoName',lang), newurl, - manual.capitalize()) + getTrans(manual.capitalize(),lang)) def make_regtest_links(name, version, lang): ver_split = version.split('.') -- 2.39.5