]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add check-translation support to the user manual
authorJohn Mandereau <john.mandereau@gmail.com>
Wed, 3 Jan 2007 23:59:50 +0000 (00:59 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Sun, 7 Jan 2007 15:47:57 +0000 (16:47 +0100)
- 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

47 files changed:
Documentation/GNUmakefile
Documentation/fr/user/advanced-notation.itely
Documentation/fr/user/basic-notation.itely
Documentation/fr/user/changing-defaults.itely
Documentation/fr/user/cheatsheet.itely
Documentation/fr/user/converters.itely
Documentation/fr/user/instrument-notation.itely
Documentation/fr/user/introduction.itely
Documentation/fr/user/lilypond-book.itely
Documentation/fr/user/lilypond.tely
Documentation/fr/user/literature.itely
Documentation/fr/user/non-music.itely
Documentation/fr/user/notation-appendices.itely
Documentation/fr/user/preface.itely
Documentation/fr/user/programming-interface.itely
Documentation/fr/user/putting.itely
Documentation/fr/user/running.itely
Documentation/fr/user/scheme-tutorial.itely
Documentation/fr/user/spacing.itely
Documentation/fr/user/templates.itely
Documentation/fr/user/tutorial.itely
Documentation/fr/user/tweaks.itely
Documentation/fr/user/working.itely
Documentation/user/advanced-notation.itely
Documentation/user/basic-notation.itely
Documentation/user/changing-defaults.itely
Documentation/user/cheatsheet.itely
Documentation/user/converters.itely
Documentation/user/dedication.itely
Documentation/user/instrument-notation.itely
Documentation/user/introduction.itely
Documentation/user/lilypond-book.itely
Documentation/user/lilypond.tely
Documentation/user/literature.itely
Documentation/user/non-music.itely
Documentation/user/notation-appendices.itely
Documentation/user/preface.itely
Documentation/user/programming-interface.itely
Documentation/user/putting.itely
Documentation/user/running.itely
Documentation/user/scheme-tutorial.itely
Documentation/user/spacing.itely
Documentation/user/templates.itely
Documentation/user/tutorial.itely
Documentation/user/tweaks.itely
Documentation/user/working.itely
buildscripts/check_translation.py [new file with mode: 0644]

index 37a452a11f1b975c33a484ac18f2b76e1b428572..cd96e38b5b61630c6bf3404be337826b59136442 100644 (file)
@@ -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
index e1f82f07483490a74ba1a0259966a3a01481ee56..7ccfd95f9f519a76e86392b50c9ff47d1638005b 100644 (file)
@@ -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
 
index d7c1bccb577fe99e74258a63c1af5a7d4f23a94e..c928e68fd241cae5ffb246def98fd16beb9109c8 100644 (file)
@@ -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
 
index 69342deaffa76e001a568f7515aee5216bdc697a..a6d78a053ec5c3039bd3a32d9226b7571adbdb80 100644 (file)
@@ -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
 
index 24a63dc7745967a565016818afd00c3b6355effc..b346e443377baf2cf1c32bfadf85af7ddb4ffb1c 100644 (file)
@@ -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
 
index 07b91238fdde1468db28e35ecf3862cc188fc87f..9c49f9507b8dd883fefc4ffb81f02fed7bca2ce4 100644 (file)
@@ -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
 
index bf8742de5d59586df25ee4866c4b014f6ad71fbf..9b3aedfeddce072d29f3ea268390f03d4c94d44e 100644 (file)
@@ -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
 
index bfb50ccdef13e1e8a4ad36d5f6f400016d9bdb57..f74b8c602920264d8b31f7551c2f74147a093f4e 100644 (file)
@@ -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
 
index a01caad7e5a543f67d3110da30dcb7c227598484..972f5d9250eb05f91501f9875c5584743a65c78f 100644 (file)
@@ -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
 
index 12fcd5750f4645c4aee7445c8dfad76b52930109..9d76c66cbfe43c58ebc6eb5276d4d6fdd360cc5f 100644 (file)
@@ -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
index 1400e5288afe83d7e08167c889a82ee18044e038..a81e20cd2ad24583b75c519694df4a4672ca9d65 100644 (file)
@@ -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
 
index 38977cad047ae761b4f6a6e83c34aec63cdf954f..88a01c25a5a7321575c625e9936ca9f3844e87b5 100644 (file)
@@ -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
 
index 21642c5fe8045e9504d2e2030414fe13339891e4..70e91b7a8c7c5478bf3b3377743d6eb69b97671e 100644 (file)
@@ -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
 
index 91a0b4235b130db6ecb12ba588d15e4a9d44041f..425728bf5c5fd7959bd5f55eda57f5c54144a8f4 100644 (file)
@@ -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
 
index 2417124af9ce2b50d1aa493d22c5a1c64293c1f3..23b12769f8c291eb9ae257218316e5bf77681b38 100644 (file)
@@ -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
 
index 16d2054dfb1aa181df967e52eaf5742114c02c15..9829eb7cf97db65daaeb81aeafa97fed86b9b18e 100644 (file)
@@ -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
 
index 438c5bf07254ec50fc4adbef274bad9225262b21..d5c9ae7e45197fd3672e4ea967eeacc38205f374 100644 (file)
@@ -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
 
index d89fb346fd4a9f94dbe277dc7140d57eaacf8ce7..accf827754528903260e62cc2ac890ef75e52fd8 100644 (file)
@@ -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
 
index bb9119890ea450e9e37fff4176a165ce4b429bd9..c66607b3ba2dc0162d5ebca29c925ec2e5dc8444 100644 (file)
@@ -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
 
index bd3c4228a027b78389ec888de516e717bc6ade38..13fa552eb0d3418afa622e3ccc53a347ba3a6766 100644 (file)
@@ -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
 
index 5f7e7138b774d883bdc7fa1c4eed2fd9dd256a2c..4acf232097fb464f0a5ac0e427aa32ba3af00149 100644 (file)
@@ -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,
index ca79cdefce1f3360585779db3d3192e6c8580fbf..b7c170331d91a159fbb384ab3bde68f3ffe40f67 100644 (file)
@@ -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
 
index a05a3bc4336798c7905d34c23425b62c8253c0d6..9e51e9249dad75e8d0b72020008d2a9457956222 100644 (file)
@@ -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
 
index 2e4463ba15911f80904e23040f9ac58a78f6bfba..49163a8f2833de30b4198abf2aac560ab9ef75b2 100644 (file)
@@ -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
index 1e1a59a874a8223096009f74da8a39edb5e342c2..ad2cc92492fd2833b46cbfa6467986f8f239f2ba 100644 (file)
@@ -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
index 1dfaffd479c947cfce38278b5ea17f9bbfc4710d..f54ccc87626d803a53385167c810dd67383b649a 100644 (file)
@@ -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
 
index 634026393fc095d93d662e090b5377613d93f0cd..1bef3ccfebc123b77783438034da6b9f50f7c11d 100644 (file)
@@ -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.
 
index 7ba2816ab23941d6878743b9c62153f71e735be7..40bd08e91dfd259c46f8a0822ace5dd0b0e7ce3b 100644 (file)
@@ -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
index cc5b1fc081a51db2fe56175e974663628c1ac38c..59cae48337e71d8a9e82abd7db48e3d73f4c29af 100644 (file)
@@ -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
index d4da68346bf4af46db633947a0f89da0db8a242d..721c7f16bf5af549ddde8a98e26ebd752b954cc9 100644 (file)
@@ -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
index ce38bab3a546d260489afa98b76e5b432a1640a3..caf6d1715ca43ec63d76587bbefd46e6ef8ce37d 100644 (file)
@@ -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
index 571bdbc199f3c1eeab5607e7d6f2c67b49a35f0a..bc15506b73ba8964ae2f02e6df6bc8e5495da800 100644 (file)
@@ -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
index 2b0b3091e44e9ce1446fee381fbbe9dca2123871..3bd4ca5623de61e964933a32c1d4e141207978cb 100644 (file)
@@ -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
index 2e7f3f7c2cd208cf54be159d6bc5e130688e3a2b..9501d7949dd2619c545abf032312104f950a7980 100644 (file)
@@ -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
 
index 0743851592084f383d586f60f70e063d15de6392..522ddef67febec7f974f6897e384b1edf75c568d 100644 (file)
@@ -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
index 32afbd6f1bf2e9df3ddc562e8a450eb1c8ea305a..f52d831f4a873271cd01df91caea5e9a23bc65f0 100644 (file)
@@ -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
index 09d561a6c0342510fbfe4f048a4616dc4772ca81..a4d8f295eaf9b4c9f3ec9a57221172d97c5b2761 100644 (file)
@@ -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
index 3909b5b65c2c38faff53ffd690c7781d54c151dc..b64f0d87d126bf555d71b616d345a850739fba9c 100644 (file)
@@ -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
 
index f585f2d00f834f8852caf7a983363455a6aa4fdf..7e8f45fb51f8edae0d9ad5b97bc6d934e510209b 100644 (file)
@@ -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
 
index 89c786b535b27c680baad8fbce95e3afa9a84090..f4cbfdd3263765a292b297e1fcdeca0fad8bf4bb 100644 (file)
@@ -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
index 64f1ff6e18b03d84b3ad6a1bf52fae2cb458bb26..5eba9a146516b5022e760650f75cfe4b5dbe54f0 100644 (file)
@@ -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
index b94c1da95a9382899d3fc4eb54c0dc03c6123336..08b4acc687bf7db27f488ee704ddbb67918d3bfa 100644 (file)
@@ -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
index dbb1490dfd6c76d2876bb724fb041a74b4632efa..fca2900d655f1b1cc9d53a332f37c7e448032f58 100644 (file)
@@ -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
 
index 33e147d4328b478386802b9118acecbe5b67da1b..995e75fb73ae597cdcb54d4604d3316df4e530d9 100644 (file)
@@ -1,14 +1,11 @@
 @c -*- coding: utf-8; mode: texinfo; -*-
 @c This file is part of lilypond.tely
-@c
-@c Translation of GIT committish: <FILL-IN-HEAD-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,
index 27b74e1fc21f45c9e425674c59f561b9bb664d8a..dc4de56f2a20bf7bc3b67b9f6974c87ef018aefc 100644 (file)
@@ -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
 
index 73b83dc16e7abe300776a9250893ed44b15ffa1d..d02b6114985bb2275dab85655c2781902adf11e3 100644 (file)
@@ -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 (file)
index 0000000..35ab59e
--- /dev/null
@@ -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: <hash>
+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: <hash> 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 ()