From: John Mandereau Date: Wed, 3 Jan 2007 23:59:50 +0000 (+0100) Subject: Add check-translation support to the user manual X-Git-Tag: release/2.11.10-1~18^2~6 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2dd2f19ece96f2fe7e9ca9217ea79af9589c1960;p=lilypond.git Add check-translation support to the user manual - buildscripts/check_translation.py taken from web/master - add "Translation of GIT committish: FILL-IN-HEAD-COMMITTISH" headers to every *.*tely of the Encglish user manual - set initial committish for French user manual - Documentation/GNUmakefile: new check-translation target --- diff --git a/Documentation/GNUmakefile b/Documentation/GNUmakefile index 37a452a11f..cd96e38b5b 100644 --- a/Documentation/GNUmakefile +++ b/Documentation/GNUmakefile @@ -44,4 +44,7 @@ new-lang: msgmerge -U po/lilypond-doc.pot $(outdir)/doc.pot cp po/lilypond-doc.pot po/$(ISOLANG).po @echo "*** Please add a language definition for $(ISOLANG) in buildscripts/langdefs.py ***" + +check-translation: + find $(ISOLANG)/user/ -name '*.*tely' | xargs $(PYTHON) $(buildscript-dir)/check_translation.py $(buildscript-dir) endif diff --git a/Documentation/fr/user/advanced-notation.itely b/Documentation/fr/user/advanced-notation.itely index e1f82f0748..7ccfd95f9f 100644 --- a/Documentation/fr/user/advanced-notation.itely +++ b/Documentation/fr/user/advanced-notation.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Advanced notation @chapter Advanced notation diff --git a/Documentation/fr/user/basic-notation.itely b/Documentation/fr/user/basic-notation.itely index d7c1bccb57..c928e68fd2 100644 --- a/Documentation/fr/user/basic-notation.itely +++ b/Documentation/fr/user/basic-notation.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Basic notation @chapter Basic notation diff --git a/Documentation/fr/user/changing-defaults.itely b/Documentation/fr/user/changing-defaults.itely index 69342deaff..a6d78a053e 100644 --- a/Documentation/fr/user/changing-defaults.itely +++ b/Documentation/fr/user/changing-defaults.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Changing defaults @chapter Changing defaults diff --git a/Documentation/fr/user/cheatsheet.itely b/Documentation/fr/user/cheatsheet.itely index 24a63dc774..b346e44337 100644 --- a/Documentation/fr/user/cheatsheet.itely +++ b/Documentation/fr/user/cheatsheet.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Cheat sheet @appendix Cheat sheet diff --git a/Documentation/fr/user/converters.itely b/Documentation/fr/user/converters.itely index 07b91238fd..9c49f9507b 100644 --- a/Documentation/fr/user/converters.itely +++ b/Documentation/fr/user/converters.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Converting from other formats @chapter Converting from other formats diff --git a/Documentation/fr/user/instrument-notation.itely b/Documentation/fr/user/instrument-notation.itely index bf8742de5d..9b3aedfedd 100644 --- a/Documentation/fr/user/instrument-notation.itely +++ b/Documentation/fr/user/instrument-notation.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Instrument-specific notation @chapter Instrument-specific notation diff --git a/Documentation/fr/user/introduction.itely b/Documentation/fr/user/introduction.itely index bfb50ccdef..f74b8c6029 100644 --- a/Documentation/fr/user/introduction.itely +++ b/Documentation/fr/user/introduction.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Introduction @chapter Introduction diff --git a/Documentation/fr/user/lilypond-book.itely b/Documentation/fr/user/lilypond-book.itely index a01caad7e5..972f5d9250 100644 --- a/Documentation/fr/user/lilypond-book.itely +++ b/Documentation/fr/user/lilypond-book.itely @@ -1,5 +1,14 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node LilyPond-book -@chapter +@chapter @command{lilypond-book}: Integrating text and music UNTRANSLATED NODE: IGNORE ME diff --git a/Documentation/fr/user/lilypond.tely b/Documentation/fr/user/lilypond.tely index 12fcd5750f..9d76c66cbf 100644 --- a/Documentation/fr/user/lilypond.tely +++ b/Documentation/fr/user/lilypond.tely @@ -1,4 +1,11 @@ -\input texinfo @c -*- coding: utf-8; mode: texinfo; -*- +\input texinfo @c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @setfilename lilypond.info @settitle GNU LilyPond @iftex diff --git a/Documentation/fr/user/literature.itely b/Documentation/fr/user/literature.itely index 1400e5288a..a81e20cd2a 100644 --- a/Documentation/fr/user/literature.itely +++ b/Documentation/fr/user/literature.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Literature list @appendix Literature list diff --git a/Documentation/fr/user/non-music.itely b/Documentation/fr/user/non-music.itely index 38977cad04..88a01c25a5 100644 --- a/Documentation/fr/user/non-music.itely +++ b/Documentation/fr/user/non-music.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Non-musical notation @chapter Non-musical notation diff --git a/Documentation/fr/user/notation-appendices.itely b/Documentation/fr/user/notation-appendices.itely index 21642c5fe8..70e91b7a8c 100644 --- a/Documentation/fr/user/notation-appendices.itely +++ b/Documentation/fr/user/notation-appendices.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Notation manual tables @appendix Notation manual tables diff --git a/Documentation/fr/user/preface.itely b/Documentation/fr/user/preface.itely index 91a0b4235b..425728bf5c 100644 --- a/Documentation/fr/user/preface.itely +++ b/Documentation/fr/user/preface.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Preface @unnumbered Preface diff --git a/Documentation/fr/user/programming-interface.itely b/Documentation/fr/user/programming-interface.itely index 2417124af9..23b12769f8 100644 --- a/Documentation/fr/user/programming-interface.itely +++ b/Documentation/fr/user/programming-interface.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Interfaces for programmers @chapter Interfaces for programmers diff --git a/Documentation/fr/user/putting.itely b/Documentation/fr/user/putting.itely index 16d2054dfb..9829eb7cf9 100644 --- a/Documentation/fr/user/putting.itely +++ b/Documentation/fr/user/putting.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Putting it all together @chapter Putting it all together diff --git a/Documentation/fr/user/running.itely b/Documentation/fr/user/running.itely index 438c5bf072..d5c9ae7e45 100644 --- a/Documentation/fr/user/running.itely +++ b/Documentation/fr/user/running.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Running LilyPond @chapter Running LilyPond diff --git a/Documentation/fr/user/scheme-tutorial.itely b/Documentation/fr/user/scheme-tutorial.itely index d89fb346fd..accf827754 100644 --- a/Documentation/fr/user/scheme-tutorial.itely +++ b/Documentation/fr/user/scheme-tutorial.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Scheme tutorial @appendix Scheme tutorial diff --git a/Documentation/fr/user/spacing.itely b/Documentation/fr/user/spacing.itely index bb9119890e..c66607b3ba 100644 --- a/Documentation/fr/user/spacing.itely +++ b/Documentation/fr/user/spacing.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Spacing issues @chapter Spacing issues diff --git a/Documentation/fr/user/templates.itely b/Documentation/fr/user/templates.itely index bd3c4228a0..13fa552eb0 100644 --- a/Documentation/fr/user/templates.itely +++ b/Documentation/fr/user/templates.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Example templates @appendix Example templates diff --git a/Documentation/fr/user/tutorial.itely b/Documentation/fr/user/tutorial.itely index 5f7e7138b7..4acf232097 100644 --- a/Documentation/fr/user/tutorial.itely +++ b/Documentation/fr/user/tutorial.itely @@ -1,14 +1,11 @@ @c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- @c This file is part of lilypond.tely -@c -@c Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 -@c -@c When revising a translation, copy the HEAD committish of the -@c version that you are working on. Use -@c -@c git-rev-list HEAD | head -1 -@c -@c to discover that. +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @c TODO: @c * more details about running lilypond; error messages, diff --git a/Documentation/fr/user/tweaks.itely b/Documentation/fr/user/tweaks.itely index ca79cdefce..b7c170331d 100644 --- a/Documentation/fr/user/tweaks.itely +++ b/Documentation/fr/user/tweaks.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Tweaking output @chapter Tweaking output diff --git a/Documentation/fr/user/working.itely b/Documentation/fr/user/working.itely index a05a3bc433..9e51e9249d 100644 --- a/Documentation/fr/user/working.itely +++ b/Documentation/fr/user/working.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: 829be449be664ea765ed43f5d56b50b41e43b397 + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Working on LilyPond projects @chapter Working on LilyPond projects diff --git a/Documentation/user/advanced-notation.itely b/Documentation/user/advanced-notation.itely index 2e4463ba15..49163a8f28 100644 --- a/Documentation/user/advanced-notation.itely +++ b/Documentation/user/advanced-notation.itely @@ -1,5 +1,11 @@ @c -*- coding: utf-8; mode: texinfo; -*- @c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @c A menu is needed before every deeper *section nesting of @node's; run @c M-x texinfo-all-menus-update diff --git a/Documentation/user/basic-notation.itely b/Documentation/user/basic-notation.itely index 1e1a59a874..ad2cc92492 100644 --- a/Documentation/user/basic-notation.itely +++ b/Documentation/user/basic-notation.itely @@ -1,5 +1,12 @@ @c -*- coding: utf-8; mode: texinfo; -*- @c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @c A menu is needed before every deeper *section nesting of @node's; run @c M-x texinfo-all-menus-update diff --git a/Documentation/user/changing-defaults.itely b/Documentation/user/changing-defaults.itely index 1dfaffd479..f54ccc8762 100644 --- a/Documentation/user/changing-defaults.itely +++ b/Documentation/user/changing-defaults.itely @@ -1,4 +1,12 @@ @c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Changing defaults @chapter Changing defaults diff --git a/Documentation/user/cheatsheet.itely b/Documentation/user/cheatsheet.itely index 634026393f..1bef3ccfeb 100644 --- a/Documentation/user/cheatsheet.itely +++ b/Documentation/user/cheatsheet.itely @@ -1,4 +1,12 @@ @c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @c TODO: add tablature. diff --git a/Documentation/user/converters.itely b/Documentation/user/converters.itely index 7ba2816ab2..40bd08e91d 100644 --- a/Documentation/user/converters.itely +++ b/Documentation/user/converters.itely @@ -1,4 +1,11 @@ @c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @node Converting from other formats @chapter Converting from other formats diff --git a/Documentation/user/dedication.itely b/Documentation/user/dedication.itely index cc5b1fc081..59cae48337 100644 --- a/Documentation/user/dedication.itely +++ b/Documentation/user/dedication.itely @@ -1,3 +1,11 @@ +@c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @quotation We want to dedicate this program to all the friends that we diff --git a/Documentation/user/instrument-notation.itely b/Documentation/user/instrument-notation.itely index d4da68346b..721c7f16bf 100644 --- a/Documentation/user/instrument-notation.itely +++ b/Documentation/user/instrument-notation.itely @@ -1,5 +1,12 @@ @c -*- coding: utf-8; mode: texinfo; -*- @c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @c A menu is needed before every deeper *section nesting of @node's; run @c M-x texinfo-all-menus-update diff --git a/Documentation/user/introduction.itely b/Documentation/user/introduction.itely index ce38bab3a5..caf6d1715c 100644 --- a/Documentation/user/introduction.itely +++ b/Documentation/user/introduction.itely @@ -1,5 +1,11 @@ @c -*- coding: utf-8; mode: texinfo; -*- @c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @node Introduction @chapter Introduction diff --git a/Documentation/user/lilypond-book.itely b/Documentation/user/lilypond-book.itely index 571bdbc199..bc15506b73 100644 --- a/Documentation/user/lilypond-book.itely +++ b/Documentation/user/lilypond-book.itely @@ -1,4 +1,11 @@ -c -*- coding: utf-8; mode: texinfo; -*- +@c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @ignore diff --git a/Documentation/user/lilypond.tely b/Documentation/user/lilypond.tely index 2b0b3091e4..3bd4ca5623 100644 --- a/Documentation/user/lilypond.tely +++ b/Documentation/user/lilypond.tely @@ -1,4 +1,10 @@ \input texinfo @c -*- coding: utf-8; mode: texinfo; -*- +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @setfilename lilypond.info @settitle GNU LilyPond @iftex diff --git a/Documentation/user/literature.itely b/Documentation/user/literature.itely index 2e7f3f7c2c..9501d7949d 100644 --- a/Documentation/user/literature.itely +++ b/Documentation/user/literature.itely @@ -1,3 +1,12 @@ +@c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Literature list @appendix Literature list diff --git a/Documentation/user/non-music.itely b/Documentation/user/non-music.itely index 0743851592..522ddef67f 100644 --- a/Documentation/user/non-music.itely +++ b/Documentation/user/non-music.itely @@ -1,5 +1,11 @@ @c -*- coding: utf-8; mode: texinfo; -*- @c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @c A menu is needed before every deeper *section nesting of @node's; run @c M-x texinfo-all-menus-update diff --git a/Documentation/user/notation-appendices.itely b/Documentation/user/notation-appendices.itely index 32afbd6f1b..f52d831f4a 100644 --- a/Documentation/user/notation-appendices.itely +++ b/Documentation/user/notation-appendices.itely @@ -1,5 +1,11 @@ @c -*- coding: utf-8; mode: texinfo; -*- @c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @node Notation manual tables @appendix Notation manual tables diff --git a/Documentation/user/preface.itely b/Documentation/user/preface.itely index 09d561a6c0..a4d8f295ea 100644 --- a/Documentation/user/preface.itely +++ b/Documentation/user/preface.itely @@ -1,4 +1,11 @@ @c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @node Preface @unnumbered Preface diff --git a/Documentation/user/programming-interface.itely b/Documentation/user/programming-interface.itely index 3909b5b65c..b64f0d87d1 100644 --- a/Documentation/user/programming-interface.itely +++ b/Documentation/user/programming-interface.itely @@ -1,4 +1,12 @@ @c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Interfaces for programmers @chapter Interfaces for programmers diff --git a/Documentation/user/putting.itely b/Documentation/user/putting.itely index f585f2d00f..7e8f45fb51 100644 --- a/Documentation/user/putting.itely +++ b/Documentation/user/putting.itely @@ -1,4 +1,12 @@ @c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Putting it all together @chapter Putting it all together diff --git a/Documentation/user/running.itely b/Documentation/user/running.itely index 89c786b535..f4cbfdd326 100644 --- a/Documentation/user/running.itely +++ b/Documentation/user/running.itely @@ -1,5 +1,12 @@ @c -*- coding: utf-8; mode: texinfo; -*- @c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Running LilyPond @chapter Running LilyPond diff --git a/Documentation/user/scheme-tutorial.itely b/Documentation/user/scheme-tutorial.itely index 64f1ff6e18..5eba9a1465 100644 --- a/Documentation/user/scheme-tutorial.itely +++ b/Documentation/user/scheme-tutorial.itely @@ -1,4 +1,11 @@ - +@c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @node Scheme tutorial @appendix Scheme tutorial diff --git a/Documentation/user/spacing.itely b/Documentation/user/spacing.itely index b94c1da95a..08b4acc687 100644 --- a/Documentation/user/spacing.itely +++ b/Documentation/user/spacing.itely @@ -1,5 +1,11 @@ @c -*- coding: utf-8; mode: texinfo; -*- @c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @c A menu is needed before every deeper *section nesting of @node's; run @c M-x texinfo-all-menus-update diff --git a/Documentation/user/templates.itely b/Documentation/user/templates.itely index dbb1490dfd..fca2900d65 100644 --- a/Documentation/user/templates.itely +++ b/Documentation/user/templates.itely @@ -1,4 +1,12 @@ @c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Example templates @appendix Example templates diff --git a/Documentation/user/tutorial.itely b/Documentation/user/tutorial.itely index 33e147d432..995e75fb73 100644 --- a/Documentation/user/tutorial.itely +++ b/Documentation/user/tutorial.itely @@ -1,14 +1,11 @@ @c -*- coding: utf-8; mode: texinfo; -*- @c This file is part of lilypond.tely -@c -@c Translation of GIT committish: -@c -@c When revising a translation, copy the HEAD committish of the -@c version that you are working on. Use -@c -@c git-rev-list HEAD | head -1 -@c -@c to discover that. +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore @c TODO: @c * more details about running lilypond; error messages, diff --git a/Documentation/user/tweaks.itely b/Documentation/user/tweaks.itely index 27b74e1fc2..dc4de56f2a 100644 --- a/Documentation/user/tweaks.itely +++ b/Documentation/user/tweaks.itely @@ -1,4 +1,12 @@ @c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Tweaking output @chapter Tweaking output diff --git a/Documentation/user/working.itely b/Documentation/user/working.itely index 73b83dc16e..d02b611498 100644 --- a/Documentation/user/working.itely +++ b/Documentation/user/working.itely @@ -1,4 +1,12 @@ @c -*- coding: utf-8; mode: texinfo; -*- +@c This file is part of lilypond.tely +@ignore + Translation of GIT committish: FILL-IN-HEAD-COMMITTISH + + When revising a translation, copy the HEAD committish of the + version that you are working on. See TRANSLATION for details. +@end ignore + @node Working on LilyPond projects @chapter Working on LilyPond projects diff --git a/buildscripts/check_translation.py b/buildscripts/check_translation.py new file mode 100644 index 0000000000..35ab59ee5f --- /dev/null +++ b/buildscripts/check_translation.py @@ -0,0 +1,88 @@ +#!@PYTHON@ + +import __main__ +import optparse +import gettext +import os +import re +import sys + +verbose = 0 +lang = 'site' +C = lang + +def dir_lang (file, lang): + path_components = [lang] + file.split ('/')[1:] + return os.path.join (*path_components) + +## Translation of GIT Commit: +REVISION_RE = re.compile ('.*GIT [Cc]ommittish: ([a-f0-9]+)', re.DOTALL) +CVS_DIFF = 'git diff %(revision)s HEAD -- %(original)s | cat' + +def check_file (original, translated): + s = open (translated).read () + m = REVISION_RE.match (s) + if not m: + raise translated + ': no GIT committish: found' + revision = m.group (1) + + c = CVS_DIFF % vars () + if verbose: + sys.stderr.write ('running: ' + c) + os.system (c) + +def do_file (file_name, langdefs): + if verbose: + sys.stderr.write ('%s...\n' % file_name) + file_lang = file_name.split ('/')[0] + if file_lang in langdefs.LANGDICT.keys(): + check_lang = file_lang + else: + check_lang = lang + if check_lang == C: + raise 'cannot determine language for: ' + file_name + + original = dir_lang (file_name, '') + translated = dir_lang (file_name, check_lang) + check_file (original, translated) + +def usage (): + sys.stdout.write (r''' +Usage: +check-translation [--language=LANG] [--verbose] BUILDSCRIPT-DIR FILE... + +This script is licensed under the GNU GPL. +''') + +def do_options (): + global lang, verbose + + p = optparse.OptionParser (usage="check-translation [--language=LANG] [--verbose] FILE...", + description="This script is licensed under the GNU GPL.") + p.add_option ("--language", + action='store', + default='site', + dest="language") + p.add_option ("--verbose", + action='store_true', + default=False, + dest="verbose", + help="the GIT directory to merge.") + + (options, files) = p.parse_args () + verbose = options.verbose + lang = options.language + + return (files[0], files[1:]) + +def main (): + import_path, files = do_options () + + sys.path.append (import_path) + import langdefs + + for i in files: + do_file (i, langdefs) + +if __name__ == '__main__': + main ()