El día 3 de abril de 2010 13:50, Francisco Vila <paconet....@gmail.com> escribió: > Here is what I've done so far. See attached diff. Now we have nice > es/ and English pages working, but other languages are a complete > mess, for example French pages have the "other languages" message > dozens of times repeated and links have fr.fr.fr.fr... in their URLs. > This is my first incursion into the build labyrinth, so clues > appreciated. What am I doing so bad?
I have just discovered that, for my surprise, this still happens without my changes, see for example out-website/website/manuals.nl.html therefore, I didn't cause it and maybe I could apply them to get the manual links properly translated. Attaching again as a patch. -- Francisco Vila. Badajoz (Spain) www.paconet.org , www.csmbadajoz.com
From 91cd18be51f7e2cf00b0b63f7bbab92674274cd0 Mon Sep 17 00:00:00 2001 From: Francisco Vila <francisco.v...@hispalinux.es> 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 dd9e234..7656452 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 @ifweblin...@manualstablelearningsplitnoname,@rlearningnamed{Top,Aprendizaje}} +...@item @ifweblin...@manualstablelearningsplitnoname-es,@rlearningnamed{Top,Aprendizaje}} una introducción a LilyPond amable e @qq{imprescindible}. @details{Aprendizaje} -...@item @ifweblin...@manualstableglossarysplitnoname,@rglosnamed{Top,Glosario}} +...@item @ifweblin...@manualstableglossarysplitnoname-es,@rglosnamed{Top,Glosario}} @emph{(lectura opcional)} términos musicales y traducciones. @details{Glosario} -...@item @ifweblin...@manualstableessaysplitnoname,@ressaynamed{Top,Ensayo}} +...@item @ifweblin...@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 @ifweblin...@manualstablenotationsplitnoname,@rusernamed{Top,Notación}} +...@item @ifweblin...@manualstablenotationsplitnoname-es,@rusernamed{Top,Notación}} referencia de la sintaxis. @details{Notación} -...@item @ifweblin...@manualstableusagesplitnoname,@rprogramnamed{Top,Utilización}} +...@item @ifweblin...@manualstableusagesplitnoname-es,@rprogramnamed{Top,Utilización}} cómo ejecutar los programas. @details{Utilización} -...@item @ifweblin...@manualstablesnippetssplitnoname,@rlsrnamed{Top,Fragmentos}} +...@item @ifweblin...@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 @ifweblin...@manualstablechangessplitnoname,@rchangesnamed{Top,Cambios}} +...@item @ifweblin...@manualstablechangessplitnoname-es,@rchangesnamed{Top,Cambios}} ¿qué hay de nuevo? @details{Cambios} -...@item @ifweblin...@manualstableextendingsplitnoname,@rextendnamed{Top,Extender}} +...@item @ifweblin...@manualstableextendingsplitnoname-es,@rextendnamed{Top,Extender}} trucos interesantes. @details{Extender} -...@item @ifweblin...@manualstableinternalssplitnoname,@rinternalsnamed{Top,Funcionamiento interno}} +...@item @ifweblin...@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 205214b..7204bc1 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('.') -- 1.6.3.3
_______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel