From 03479012028ddf7c516784b7477b32e9d303eb97 Mon Sep 17 00:00:00 2001 From: richard Date: Sat, 5 Jan 2002 02:22:33 +0000 Subject: [PATCH] fixes git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@498 57a73879-2fb5-44c3-a270-3262357dd7e2 --- I18N_PROGRESS.txt | 11 ++++++----- cgi-bin/roundup.cgi | 8 ++++++-- roundup-admin | 16 ++++++++++++---- roundup-server | 7 +++++-- roundup/templates/extended/htmlbase.py | 9 ++++++++- 5 files changed, 37 insertions(+), 14 deletions(-) diff --git a/I18N_PROGRESS.txt b/I18N_PROGRESS.txt index ecc5cf9..a664c53 100644 --- a/I18N_PROGRESS.txt +++ b/I18N_PROGRESS.txt @@ -17,11 +17,6 @@ whether there is at least one use of "_()". THESE FILES DO NOT USE _() ========================== -roundup-admin -roundup-mailgw -roundup-server -cgi-bin/roundup.cgi -roundup/__init__.py roundup/cgitb.py roundup/date.py roundup/htmltemplate.py @@ -57,7 +52,13 @@ roundup/templates/extended/detectors/nosyreaction.py THESE FILES DO USE _() ====================== +roundup-admin +roundup-mailgw +roundup-server +cgi-bin/roundup.cgi +roundup/__init__.py roundup/cgi_client.py +roundup/admin.py WE DON'T CARE ABOUT THESE FILES diff --git a/cgi-bin/roundup.cgi b/cgi-bin/roundup.cgi index 93c1ebd..ca146d3 100755 --- a/cgi-bin/roundup.cgi +++ b/cgi-bin/roundup.cgi @@ -16,11 +16,12 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundup.cgi,v 1.23 2002-01-05 02:19:03 richard Exp $ +# $Id: roundup.cgi,v 1.24 2002-01-05 02:21:22 richard Exp $ # python version check from roundup import version_check from roundup.i18n import _ +import sys # ## Configuration @@ -51,7 +52,7 @@ ROUNDUP_INSTANCE_HOMES = { class DevNull: def write(self, info): pass - def close(): + def close(self): pass #LOG = open('/var/log/roundup.cgi.log', 'a') LOG = DevNull() @@ -197,6 +198,9 @@ LOG.close() # # $Log: not supported by cvs2svn $ +# Revision 1.23 2002/01/05 02:19:03 richard +# i18n'ification +# # Revision 1.22 2001/12/13 00:20:01 richard # . Centralised the python version check code, bumped version to 2.1.1 (really # needs to be 2.1.2, but that isn't released yet :) diff --git a/roundup-admin b/roundup-admin index 67490f3..9a1f74c 100755 --- a/roundup-admin +++ b/roundup-admin @@ -16,19 +16,27 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundup-admin,v 1.60 2002-01-05 02:11:22 richard Exp $ +# $Id: roundup-admin,v 1.61 2002-01-05 02:21:21 richard Exp $ # python version check from roundup import version_check # import the admin tool guts and make it go from roundup.admin import AdminTool -if __name__ == '__main__': - tool = AdminTool() - sys.exit(tool.main()) +from roundup.i18n import _ + +import sys +tool = AdminTool() +sys.exit(tool.main()) # # $Log: not supported by cvs2svn $ +# Revision 1.60 2002/01/05 02:11:22 richard +# I18N'ed roundup admin - and split the code off into a module so it can be used +# elsewhere. +# Big issue with this is the doc strings - that's the help. We're probably going to +# have to switch to not use docstrings, which will suck a little :( +# # Revision 1.59 2001/12/31 05:20:34 richard # . #496360 ] table width does not work # diff --git a/roundup-server b/roundup-server index d7432d1..5c8222c 100755 --- a/roundup-server +++ b/roundup-server @@ -18,7 +18,7 @@ # """ HTTP Server that serves roundup. -$Id: roundup-server,v 1.24 2002-01-05 02:19:03 richard Exp $ +$Id: roundup-server,v 1.25 2002-01-05 02:21:21 richard Exp $ """ # python version check @@ -181,7 +181,7 @@ roundup-server [-n hostname] [-p port] [name=instance home]* "roundup-admin init". You may specify any number of these name=home pairs on the command-line. For convenience, you may edit the ROUNDUP_INSTANCE_HOMES variable in the roundup-server file instead. -'''%locals() +''')%locals() sys.exit(0) def main(): @@ -248,6 +248,9 @@ if __name__ == '__main__': # # $Log: not supported by cvs2svn $ +# Revision 1.24 2002/01/05 02:19:03 richard +# i18n'ification +# # Revision 1.23 2001/12/15 23:47:07 richard # sys module went away... # diff --git a/roundup/templates/extended/htmlbase.py b/roundup/templates/extended/htmlbase.py index cdf463a..b6ba31b 100644 --- a/roundup/templates/extended/htmlbase.py +++ b/roundup/templates/extended/htmlbase.py @@ -102,7 +102,7 @@ issueDOTindex = """ +issueDOTitem = """ @@ -197,6 +197,13 @@ issueDOTitem = """