]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/auxiliar/texi-langutils.py
Add '-dcrop' option to ps and svg backends
[lilypond.git] / scripts / auxiliar / texi-langutils.py
index 056dc8964bf8102f7d73a0a06350cfb72e753d07..a2da780f2619de34fdf3c99ffb5c1d1eefe7b185 100755 (executable)
@@ -147,13 +147,7 @@ def process_texi (texifilename, i_blurb, n_blurb, write_skeleton, topfile,
                 g.write (end_blurb)
             g.close ()
 
-        elif output_file:
-            m = re.search ('Documentation/(..)/', texifilename)
-            if m:
-                lang = m.group (1)
-                print 'FIXME: extracting node names from:', texifilename
-                print 'please explain why extract translated (LANG=%(lang)s) node names into node_list' % locals ()
-                print 'and thus into Documentation/*.po for translation?'
+        elif output_file and scan_ly:
             toto = texinfo_re.findall (texifile)
             for item in toto:
                 if item[0] == 'include':
@@ -184,14 +178,16 @@ if make_gettext:
         # Urgly: scan ly comments and variable names only in English doco
         is_english_doc = (
             True
+            and not 'Documentation/cs/' in texi_file
             and not 'Documentation/de/' in texi_file
             and not 'Documentation/es/' in texi_file
             and not 'Documentation/fr/' in texi_file
-            and not 'Documentation/ja/' in texi_file
             and not 'Documentation/hu/' in texi_file
+            and not 'Documentation/ja/' in texi_file
             and not 'Documentation/it/' in texi_file
             and not 'Documentation/nl/' in texi_file
             and not 'Documentation/po/' in texi_file
+            and not 'Documentation/zh/' in texi_file
             )
         process_texi (texi_file, intro_blurb, node_blurb, make_skeleton,
                       os.path.basename (texi_file), node_list,