]> 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>
Wed, 3 Jan 2007 23:59:50 +0000 (00:59 +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 9da4641ccdf825f4c02e52cbdc1e5771a232b9b2..ec7826a07b42e553a13ae54c61eed74f2b677808 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 bdc345a0b919a9fe2d2cceed3d29d12732e03e4e..bdcbfee6fbd99f9034d55e4405aa5b3d83cecef7 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 6adc20620fa6a94f4b6e44492b9aa24fbf4244bc..676ee7fed9a69d6150153127bc75be34cb8c360e 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 a784db0e08d0d7040ab7ae7e16053ff2a6e74bb7..8e4810dcf0b7361b20515711b09af2f4031f96d2 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 f080f81e41d086d698938862b2f46d28bbbbb75d..c09b9d9d11b011e28920c99de7dd6b4e12a1a67a 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 4ca0142e04eb581bf3b42256a8b13a72f9e5dc81..f4c6043af392b26cbcfe6df5d11862d2947a540c 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 97d32ec4c66ccbc20567a9e624c9b8b5dbfb5d98..b15ecfeb1c368af38ade758ad14b9b204b0893eb 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 84860dd899bb6bb67bc51345f10b964bce1a4861..45aa7d4f7f7241e1823eb6558950099c0950b331 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 ce5b8b4f1096d886611866f52d669f54acb8f3d6..9e273db4008dc5cac83d988641aa9661a44f9f94 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 bd2596410da33547f5b726c5a883c625376d0a66..c29fcfe82ef4e2769a6577f617c5905bafc16493 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 57b5d1da88ff8974e45c5cd11bb210acdfa8cf40..7bc78c63966957e3ede087faff70f18ff088ea0b 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 0cc5ecd908ff926d5c6b9226482325ee3f4d314f..6d197c8c5634a7de4f2960760a75a8fc739ad331 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 aa4a6039b8f9f5fffc7f6f3dd914586e9377e050..919301aaafb7f9f507f5f1474aaaf6cfc8a6dcfd 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 3e7845709c03c1ebeafe8b6d1b28019b25d9ac16..69cd035be5bef02e8ca553b4c01806161a158a7f 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 42543bd93d685fb14d4ab5a6f66aecce718c4f7d..040e8ced6730d6e95d15f25039a98eb256769e95 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 bbef69b00b094477b42670432b0a8cd17ad0040e..a614744c2a27dfbc761bba8db34a085c9d07d4ca 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 2872272a9f09c7341d70129e976dd0e41669ee5b..c27b9deae8659354e79fcd29ecd7bc3cd230352f 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 ()