]> git.donarmstrong.com Git - lilypond.git/commitdiff
Do not include translations status template in docball
authorJohn Mandereau <john.mandereau@gmail.com>
Wed, 27 Feb 2008 14:01:30 +0000 (15:01 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Wed, 27 Feb 2008 14:01:30 +0000 (15:01 +0100)
Documentation/translations.template.html [deleted file]
Documentation/translations.template.html.in [new file with mode: 0644]
buildscripts/translations-status.py

diff --git a/Documentation/translations.template.html b/Documentation/translations.template.html
deleted file mode 100644 (file)
index e0bbadc..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
-<!--
-    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.
-!-->
-<head>
-  <title>LilyPond documentation translations status</title>
-  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-</head>
-
-<body>
-<p><a href="index.html">Up to documentation index</a></p>
-
-<h1>Documentation translations status</h1>
-
-<p>This is an overview of which parts of LilyPond @TOPLEVEL_VERSION@
-  documentation are translated; for each documentation section, you
-  can read the word count in parentheses, who translated and verified
-  it (translation checkers are printed with a smaller font size), how
-  much of the original section in English has been translation, how
-  up-to-date is the translation, and whether the translation has
-  already been updated after Grand Documentation Project (GDP) was
-  started.
-</p>
-
-<p>Please note that GDP makes a lot of changes to documentation in
-  English, therefore translated documentation is mostly not
-  up-to-date; however, this does not mean translated documentation is
-  inaccurate regarding current LilyPond version, it only means that
-  translated docmentation is not synced with documentation in English.
-  We do our best to keep translated documentation consistent with
-  current LilyPond syntax and features, and will update it per
-  section, when GDP processing of the corresponding section in English
-  is finished.
-</p>
-
-</body>
-</html>
diff --git a/Documentation/translations.template.html.in b/Documentation/translations.template.html.in
new file mode 100644 (file)
index 0000000..e0bbadc
--- /dev/null
@@ -0,0 +1,40 @@
+<html>
+<!--
+    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.
+!-->
+<head>
+  <title>LilyPond documentation translations status</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+<p><a href="index.html">Up to documentation index</a></p>
+
+<h1>Documentation translations status</h1>
+
+<p>This is an overview of which parts of LilyPond @TOPLEVEL_VERSION@
+  documentation are translated; for each documentation section, you
+  can read the word count in parentheses, who translated and verified
+  it (translation checkers are printed with a smaller font size), how
+  much of the original section in English has been translation, how
+  up-to-date is the translation, and whether the translation has
+  already been updated after Grand Documentation Project (GDP) was
+  started.
+</p>
+
+<p>Please note that GDP makes a lot of changes to documentation in
+  English, therefore translated documentation is mostly not
+  up-to-date; however, this does not mean translated documentation is
+  inaccurate regarding current LilyPond version, it only means that
+  translated docmentation is not synced with documentation in English.
+  We do our best to keep translated documentation consistent with
+  current LilyPond syntax and features, and will update it per
+  section, when GDP processing of the corresponding section in English
+  is finished.
+</p>
+
+</body>
+</html>
index 38030385031f285e45525bd122fb6bb3ddbb9a8e..0242e973a5a1bbf2b21ec659f6408c9f6e9833c4 100644 (file)
@@ -5,8 +5,8 @@ USAGE: translations-status.py BUILDSCRIPT-DIR LOCALEDIR
 
   This script must be run from Documentation/
 
-  Reads template files translations.template.html
-and for each LANG in LANGUAGES LANG/translations.template.html
+  Reads template files translations.template.html.in
+and for each LANG in LANGUAGES LANG/translations.template.html.in
 
   Writes translations.html.in and for each LANG in LANGUAGES
 translations.LANG.html.in
@@ -92,7 +92,8 @@ texi_level = {
     'appendix': ('l', 1)
 }
 
-appendix_number_trans = string.maketrans ('@ABCDEFGHIJKLMNOPQRSTUVWXY','ABCDEFGHIJKLMNOPQRSTUVWXYZ')
+appendix_number_trans = string.maketrans ('@ABCDEFGHIJKLMNOPQRSTUVWXY',
+                                          'ABCDEFGHIJKLMNOPQRSTUVWXYZ')
 
 class SectionNumber (object):
     def __init__ (self):
@@ -349,7 +350,7 @@ tely_files = read_pipe ("find -maxdepth 2 -name '*.tely'")[0].splitlines ()
 master_docs = [MasterTelyDocument (os.path.normpath (filename)) for filename in tely_files]
 master_docs = [doc for doc in master_docs if doc.translations]
 
-main_status_page = open ('translations.template.html').read ()
+main_status_page = open ('translations.template.html.in').read ()
 
 ## TODO
 #per_lang_status_pages = dict ([(l, open (os.path.join (l, 'translations.template.html')). read ())
@@ -366,7 +367,7 @@ end_body_re = re.compile ('</body>', re.I)
 
 main_status_page = html_re.sub ('''<html>
 <!-- This page is automatically generated by translation-status.py from
-translations.template.html; DO NOT EDIT !-->''', main_status_page)
+translations.template.html.in; DO NOT EDIT !-->''', main_status_page)
 
 main_status_page = end_body_re.sub (main_status_html + '\n</body>', main_status_page)