]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix wrong footer for English files with missing translation
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 9 Aug 2008 11:36:24 +0000 (13:36 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 9 Aug 2008 11:36:24 +0000 (13:36 +0200)
buildscripts/add_html_footer.py

index 59a723e25b90832495ea7b77784cfbc795ac4471..a1c81f3b14668ba0fdb57522a7b333a9af59423f 100644 (file)
@@ -279,9 +279,9 @@ def add_html_footer (package_name = '',
                 page_flavors = process_links (s, prefix, lang_ext, file_name, missing, target)
                 # Add menu after stripping: must not have autoselection for language menu.
                 page_flavors = add_menu (page_flavors, prefix, available, target, translation)
-            subst = dict ([i for i in globals().items() if type (i[1]) is str])
-            subst.update (dict ([i for i in locals().items() if type (i[1]) is str]))
             for k in page_flavors:
+                subst = dict ([i for i in globals().items() if type (i[1]) is str])
+                subst.update (dict ([i for i in locals().items() if type (i[1]) is str]))
                 if page_flavors[k][0] in translation:
                     for name in subst:
                         subst[name] = translation[page_flavors[k][0]] (subst[name])