X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fbuild%2Fcreate-weblinks-itexi.py;h=e631c27fd8b43a5e7c75792be202237fadfb9d3d;hb=HEAD;hp=cb785b43a0ae28e51edf09d8d3381086b8f9eae3;hpb=cb951038d3e74a85ec8539d0dc51260088251556;p=lilypond.git diff --git a/scripts/build/create-weblinks-itexi.py b/scripts/build/create-weblinks-itexi.py index cb785b43a0..e631c27fd8 100644 --- a/scripts/build/create-weblinks-itexi.py +++ b/scripts/build/create-weblinks-itexi.py @@ -28,7 +28,7 @@ depth = "../" # Get/update node translations ''' -for i in cs de es fr hu it ja nl zh; do +for i in ca cs de es fr hu it ja nl zh; do echo "'"$i"': {" (echo '--' ; grep -nH -B1 translationof Documentation/$i/web/* ) \ | pytt '^--\n.*@(?:unnum|sub)[^ ]* (.*)\n.*@translationof (.*)\n' "'\2': '\1',\n" \ @@ -38,6 +38,64 @@ done ''' translations = { + 'ca': { + 'Source': 'Font', + 'Learning': 'Aprenentatge', + 'Music glossary': 'Glossari musical', + 'Essay': 'Monografia', + 'Notation': 'Notació', + 'Usage': 'Ús', + 'Snippets': 'Fragments', + 'Web': 'Web', + 'Changes': 'Canvis', + + 'Extending': 'Extensions', + 'Internals': 'Funcionament intern', + 'Contributor': 'Guia del col·laborador', + + ' (split HTML)': ' (HTML seccionat)', + ' (big HTML)': ' (HTML monolític)', + + 'Regression tests for ': 'Proves de regressió per a ', + 'PDF of regtests for ': 'Proves de regressió en PDF per a ', + 'abc2ly Regression tests for ': 'Proves de regressió d\'abc2ly per a ', + 'PDF of abc2ly regtests for ': 'Proves de regressió d\'abc2ly en PDF per a ', + 'lilypond-book Regression tests for ': 'Proves de regressió de lilypond-book per a ', + 'PDF of lilypond-book regtests for ': 'Proves de regressió de lilypond-book en PDF per a ', + 'MusicXML Regression tests for ': 'Proves de regressió de MusicXML per a ', + 'PDF of MusicXML regtests for ': 'Proves de regressió de MusicXML en PDF per a ', + + 'Doc tarball for ': 'Tarball de la documentació per a ', + }, + 'cs': { + 'Source': 'Source', + 'Learning': 'Učení', + 'Music glossary': 'Slovníček', + 'Essay': 'Článek', + 'Notation': 'Notový zápis', + 'Usage': 'Používání', + 'Snippets': 'Úryvky', + 'Web': 'Web', + 'Changes': 'Změny', + + 'Extending': 'Rozšíření', + 'Internals': 'Vnitřnosti', + 'Contributor': 'Vývojářské', + + ' (split HTML)': ' (rozdělené HTML)', + ' (big HTML)': ' (velké HTML)', + + 'Regression tests for ': 'Zkoušky regresí ', + 'PDF of regtests for ': 'PDF zkoušky regresí ', + 'abc2ly Regression tests for ': 'abc2ly zkoušky regresí ', + 'PDF of abc2ly regtests for ': 'PDF abc2ly zkoušky regresí ', + 'lilypond-book Regression tests for ': 'lilypond-book zkoušky regresí ', + 'PDF of lilypond-book regtests for ': 'PDF lilypond-book zkoušky regresí ', + 'MusicXML Regression tests for ': 'MusicXML zkoušky regresí ', + 'PDF of MusicXML regtests for ': 'PDF MusicXML zkoušky regresí ', + + 'Doc tarball for ': 'Doc tarball for ', + }, 'de': { 'Source': 'Quellen', 'Learning': 'Einführung', @@ -66,7 +124,6 @@ translations = { 'PDF of MusicXML regtests for ': 'PDF der MusicXML Regressionstests für ', 'Doc tarball for ': 'Dokumentation tar-gepackt für ', - ' (did not exist in 2.12)': ' (nicht existent in 2.12)', }, 'es': { 'Source': 'Código fuente', @@ -97,7 +154,6 @@ translations = { 'PDF of MusicXML regtests for ': 'Pruebas de MusicXML en PDF para ', 'Doc tarball for ': 'Tarball de la documentación para ', - ' (did not exist in 2.12)': ' (no existía en la versión 2.12)', }, 'fr': { 'Source': 'Sources', @@ -128,7 +184,6 @@ translations = { 'PDF of MusicXML regtests for ': 'PDF des tests de régression de MusicXML pour ', 'Doc tarball for ': 'Archive de la documentation pour ', - ' (did not exist in 2.12)': ' (non disponible pour la version 2.12)', }, 'hu': { 'Source': 'Forrás', @@ -157,7 +212,35 @@ translations = { 'PDF of MusicXML regtests for ': 'PDF formátumban - verzió: ', 'Doc tarball for ': 'Tömörített csomag - verzió: ', - ' (did not exist in 2.12)': ' (nem létezett a 2.12-es verzióban)', + }, + 'it': { + 'Source': 'Sorgenti', + 'Learning': 'Apprendimento', + 'Music glossary': 'Glossario', + 'Essay': 'Saggio', + 'Notation': 'Notazione', + 'Usage': 'Uso', + 'Snippets': 'Frammenti', + 'Web': 'Web', + 'Changes': 'Cambiamenti', + 'Extending': 'Estendere', + 'Internals': 'Funzionamento interno', + 'Contributor': 'Guida del collaboratore', + +# keep the spaces! + ' (split HTML)': ' (HTML multipagina)', + ' (big HTML)': ' (HTML pagina unica)', + + 'Regression tests for ': 'Test di collaudo per ', + 'PDF of regtests for ': 'PDF dei test di collaudo per ', + 'abc2ly Regression tests for ': 'Test di collaudo di abc2ly per ', + 'PDF of abc2ly regtests for ': 'PDF dei test di collaudo di abc2ly per ', + 'lilypond-book Regression tests for ': 'Test di collaudo di lilypond-book per ', + 'PDF of lilypond-book regtests for ': 'PDF dei test di collaudo di lilypond-book per ', + 'MusicXML Regression tests for ': 'Test di collaudo di MusicXML per ', + 'PDF of MusicXML regtests for ': 'PDF dei test di collaudo di MusicXML per ', + + 'Doc tarball for ': 'Archivio della documentazione per ', }, 'ja': { 'Source': 'ソース', @@ -189,7 +272,6 @@ translations = { 'PDF of MusicXML regtests for ': 'MusicXML 回帰テスト (PDF 版) バージョン ', 'Doc tarball for ': 'ドキュメント アーカイブ バージョン ', - ' (did not exist in 2.12)': ' (バージョン 2.12 には存在しません)', }, 'nl': { @@ -221,7 +303,6 @@ translations = { 'PDF of MusicXML regtests for ': 'MusicXML regressietesten voor ', 'Doc tarball for ': 'Tarball met documentation voor ', - ' (did not exist in 2.12)': ' (bestond nog niet in 2.12)', }, 'zh': { 'Source': '源码', @@ -252,7 +333,6 @@ translations = { 'PDF of MusicXML regtests for ': 'MusicXML 的 PDF 回归测试 ', 'Doc tarball for ': '为文档压缩包', - ' (did not exist in 2.12)': ' (在 2.12 中不存在)', }, } @@ -386,29 +466,7 @@ def translateNameToUrl(manual, version): ver_minor = ver_split[0] + '.' + ver_split[1] url = depth + "doc/v" + ver_minor + "/Documentation/" - if (ver_minor == '2.12'): - if (manual=='learning'): - return url+'user/lilypond-learning' - elif (manual=='internals'): - return url+'user/lilypond-internals' - elif (manual=='notation'): - return url+'user/lilypond' - elif (manual=='usage'): - return url+'user/lilypond-program' - elif (manual=='snippets'): - return url+'../input/lsr/lilypond-snippets' - elif (manual=='changes'): - return url+'topdocs/NEWS.html' - elif (manual=='music-glossary'): - return url+'user/music-glossary' - elif (manual=='essay'): - return url+'user/lilypond-learning/Background.html' - elif (manual=='extending'): - return url+'user/lilypond/Interfaces-for-programmers.html' - else: - return '' - else: - return url+manual + return url+manual def addLang(url, lang): if lang: @@ -434,25 +492,6 @@ def make_manual_links(name, version, lang): manual = 'Music glossary' url = translateNameToUrl(m, version) - if (url == ''): - # can't have a comma here due to texinfo - make_ver_link(macroLang("manual"+name+mshort+'Pdf',lang), - "http://lilypond.org", - mshort+getTrans(" (did not exist in 2.12)",lang)) - make_ver_link(macroLang("manual"+name+mshort+'Split',lang), - "http://lilypond.org", - mshort+getTrans(" (did not exist in 2.12)",lang)) - make_ver_link(macroLang("manual"+name+mshort+'Big',lang), - "http://lilypond.org", - mshort+getTrans(" (did not exist in 2.12)",lang)) - make_ver_link(macroLang("manual"+name+mshort+'SplitNoName',lang), - "http://lilypond.org", - mshort+getTrans(" (did not exist in 2.12)",lang)) - continue - # this is stupid and I shouldn't have bothered trying - # to support the 2.12 docs and it will be deleted once - # 2.14 is out and the website won't be visible to users - # until 2.14 is out. -gp if (url.endswith('.html')): make_ver_link(macroLang("manual"+name+mshort+'Pdf',lang), addLang(url, lang), @@ -515,7 +554,7 @@ def make_regtest_links(name, version, lang): getTrans("PDF of lilypond-book regtests for ", lang)+version) def make_doctarball_links(name, version, lang): - url = depth + "download/binaries/documentation/lilypond-" + url = depth + "downloads/binaries/documentation/lilypond-" # ugly FIXME, but proper build number support isn't Critical. url += version + "-1" url += ".documentation.tar.bz2" @@ -523,7 +562,7 @@ def make_doctarball_links(name, version, lang): url, getTrans("Doc tarball for ", lang)+version) print "@c This file was autogenerated" -print "@c from: VERSION" +print "@c from: %s" % VERSION print "@c by: %s" % sys.argv[0] print "" print "@c ************************ Download binaries ************"