From 4425817d3cd61273431f79285676b616cea4cc38 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Wed, 27 Feb 2008 15:01:30 +0100 Subject: [PATCH] Do not include translations status template in docball --- ...ns.template.html => translations.template.html.in} | 0 buildscripts/translations-status.py | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) rename Documentation/{translations.template.html => translations.template.html.in} (100%) diff --git a/Documentation/translations.template.html b/Documentation/translations.template.html.in similarity index 100% rename from Documentation/translations.template.html rename to Documentation/translations.template.html.in diff --git a/buildscripts/translations-status.py b/buildscripts/translations-status.py index 3803038503..0242e973a5 100644 --- a/buildscripts/translations-status.py +++ b/buildscripts/translations-status.py @@ -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 ('', re.I) main_status_page = html_re.sub (''' ''', main_status_page) +translations.template.html.in; DO NOT EDIT !-->''', main_status_page) main_status_page = end_body_re.sub (main_status_html + '\n', main_status_page) -- 2.39.5