summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e1a8e0)
raw | patch | inline | side by side (parent: 6e1a8e0)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 30 Nov 2001 00:06:29 +0000 (00:06 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 30 Nov 2001 00:06:29 +0000 (00:06 +0000) |
Added the status file, I18N_PROGRESS.txt
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@434 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@434 57a73879-2fb5-44c3-a270-3262357dd7e2
I18N_PROGRESS.txt | [new file with mode: 0644] | patch | blob |
roundup/cgi_client.py | patch | blob | history |
diff --git a/I18N_PROGRESS.txt b/I18N_PROGRESS.txt
--- /dev/null
+++ b/I18N_PROGRESS.txt
@@ -0,0 +1,105 @@
+This list has been generated using the MANIFEST file. We should be able to
+write a simple script to compare the two and make sure that all MANIFEST
+files appear in here.
+
+
+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
+roundup/hyperdb.py
+roundup/i18n.py
+roundup/init.py
+roundup/install_util.py
+roundup/instance.py
+roundup/mailgw.py
+roundup/password.py
+roundup/roundupdb.py
+roundup/templatebuilder.py
+roundup/backends/__init__.py
+roundup/backends/back_anydbm.py
+roundup/backends/back_bsddb.py
+roundup/backends/back_bsddb3.py
+roundup/templates/__init__.py
+roundup/templates/classic/__init__.py
+roundup/templates/classic/dbinit.py
+roundup/templates/classic/htmlbase.py
+roundup/templates/classic/instance_config.py
+roundup/templates/classic/interfaces.py
+roundup/templates/classic/detectors/__init__.py
+roundup/templates/classic/detectors/nosyreaction.py
+roundup/templates/extended/__init__.py
+roundup/templates/extended/dbinit.py
+roundup/templates/extended/htmlbase.py
+roundup/templates/extended/instance_config.py
+roundup/templates/extended/interfaces.py
+roundup/templates/extended/detectors/__init__.py
+roundup/templates/extended/detectors/nosyreaction.py
+
+
+THESE FILES DO USE _()
+======================
+roundup/cgi_client.py
+
+
+WE DON'T CARE ABOUT THESE FILES
+===============================
+BUILD.txt
+CHANGES.txt
+INSTALL.txt
+MIGRATION.txt
+README.txt
+setup.py
+doc/implementation.txt
+doc/index.html
+doc/overview.html
+doc/spec.html
+doc/images/edit.png
+doc/images/hyperdb.png
+doc/images/logo-acl-medium.png
+doc/images/logo-codesourcery-medium.png
+doc/images/logo-software-carpentry-standard.png
+doc/images/roundup-1.png
+doc/images/roundup.png
+roundup/templates/classic/html/file.index
+roundup/templates/classic/html/file.newitem
+roundup/templates/classic/html/issue.filter
+roundup/templates/classic/html/issue.index
+roundup/templates/classic/html/issue.item
+roundup/templates/classic/html/msg.index
+roundup/templates/classic/html/msg.item
+roundup/templates/classic/html/style.css
+roundup/templates/classic/html/user.index
+roundup/templates/classic/html/user.item
+roundup/templates/extended/html/file.index
+roundup/templates/extended/html/file.newitem
+roundup/templates/extended/html/issue.filter
+roundup/templates/extended/html/issue.index
+roundup/templates/extended/html/issue.item
+roundup/templates/extended/html/msg.index
+roundup/templates/extended/html/msg.item
+roundup/templates/extended/html/style.css
+roundup/templates/extended/html/support.filter
+roundup/templates/extended/html/support.index
+roundup/templates/extended/html/support.item
+roundup/templates/extended/html/timelog.index
+roundup/templates/extended/html/timelog.item
+roundup/templates/extended/html/user.index
+roundup/templates/extended/html/user.item
+test/README.txt
+test/__init__.py
+test/test_dates.py
+test/test_db.py
+test/test_init.py
+test/test_mailsplit.py
+test/test_multipart.py
+test/test_schema.py
+test/test_templating.py
+test/unittest.py
+
diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py
index 206c7259e3282ccfc73cb07633f68694458e6b4c..478cda0c3ccfd1820da202f6438cd9741b37f1f7 100644 (file)
--- a/roundup/cgi_client.py
+++ b/roundup/cgi_client.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: cgi_client.py,v 1.69 2001-11-29 23:19:51 richard Exp $
+# $Id: cgi_client.py,v 1.70 2001-11-30 00:06:29 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
if port != '80': machine = machine + ':' + port
base = urlparse.urlunparse(('http', machine, url, None, None, None))
if message is not None:
- message = '<div class="system-msg">%s</div>'%message
+ message = _('<div class="system-msg">%(message)s</div>')%locals()
else:
message = ''
style = open(os.path.join(self.TEMPLATES, 'style.css')).read()
user_name = self.user or ''
if self.user == 'admin':
- admin_links = ' | <a href="list_classes">Class List</a>' \
- ' | <a href="user">User List</a>'
+ admin_links = _(' | <a href="list_classes">Class List</a>' \
+ ' | <a href="user">User List</a>')
else:
admin_links = ''
if self.user not in (None, 'anonymous'):
userid = self.db.user.lookup(self.user)
- user_info = '''
-<a href="issue?assignedto=%s&status=-1,unread,deferred,chatting,need-eg,in-progress,testing,done-cbb&:filter=status,assignedto&:sort=activity&:columns=id,activity,status,title,assignedto&:group=priority&show_customization=1">My Issues</a> |
-<a href="user%s">My Details</a> | <a href="logout">Logout</a>
-'''%(userid, userid)
+ user_info = _('''
+<a href="issue?assignedto=%(userid)s&status=-1,unread,deferred,chatting,need-eg,in-progress,testing,done-cbb&:filter=status,assignedto&:sort=activity&:columns=id,activity,status,title,assignedto&:group=priority&show_customization=1">My Issues</a> |
+<a href="user%(userid)s">My Details</a> | <a href="logout">Logout</a>
+''')%locals()
else:
user_info = _('<a href="login">Login</a>')
if self.user is not None:
- add_links = '''
+ add_links = _('''
| Add
<a href="newissue">Issue</a>,
<a href="newuser">User</a>
-'''
+''')
else:
add_links = ''
- self.write('''<html><head>
-<title>%s</title>
-<style type="text/css">%s</style>
+ self.write(_('''<html><head>
+<title>%(title)s</title>
+<style type="text/css">%(style)s</style>
</head>
<body bgcolor=#ffffff>
-%s
+%(message)s
<table width=100%% border=0 cellspacing=0 cellpadding=2>
-<tr class="location-bar"><td><big><strong>%s</strong></big></td>
-<td align=right valign=bottom>%s</td></tr>
+<tr class="location-bar"><td><big><strong>%(title)s</strong></big></td>
+<td align=right valign=bottom>%(user_name)s</td></tr>
<tr class="location-bar">
<td align=left>All
<a href="issue?status=-1,unread,deferred,chatting,need-eg,in-progress,testing,done-cbb&:sort=activity&:filter=status&:columns=id,activity,status,title,assignedto&:group=priority&show_customization=1">Issues</a>
| Unassigned
<a href="issue?assignedto=-1&status=-1,unread,deferred,chatting,need-eg,in-progress,testing,done-cbb&:sort=activity&:filter=status,assignedto&:columns=id,activity,status,title,assignedto&:group=priority&show_customization=1">Issues</a>
-%s
-%s</td>
-<td align=right>%s</td>
+%(add_links)s
+%(admin_links)s</td>
+<td align=right>%(user_info)s</td>
</table>
-'''%(title, style, message, title, user_name, add_links, admin_links,
- user_info))
+''')%locals())
def pagefoot(self):
if self.debug:
- self.write('<hr><small><dl>')
- self.write('<dt><b>Path</b></dt>')
+ self.write(_('<hr><small><dl><dt><b>Path</b></dt>'))
self.write('<dd>%s</dd>'%(', '.join(map(repr, self.split_path))))
keys = self.form.keys()
keys.sort()
if keys:
- self.write('<dt><b>Form entries</b></dt>')
+ self.write(_('<dt><b>Form entries</b></dt>'))
for k in self.form.keys():
v = self.form.getvalue(k, "<empty>")
if type(v) is type([]):
self.write('<dd><em>%s</em>=%s</dd>'%(k, cgi.escape(v)))
keys = self.headers_sent.keys()
keys.sort()
- self.write('<dt><b>Sent these HTTP headers</b></dt>')
+ self.write(_('<dt><b>Sent these HTTP headers</b></dt>'))
for k in keys:
v = self.headers_sent[k]
self.write('<dd><em>%s</em>=%s</dd>'%(k, cgi.escape(v)))
keys = self.env.keys()
keys.sort()
- self.write('<dt><b>CGI environment</b></dt>')
+ self.write(_('<dt><b>CGI environment</b></dt>'))
for k in keys:
v = self.env[k]
self.write('<dd><em>%s</em>=%s</dd>'%(k, cgi.escape(v)))
cl.set(self.nodeid, **props)
self._post_editnode(self.nodeid, changed)
# and some nice feedback for the user
- message = '%s edited ok'%', '.join(changed)
+ message = _('%(changes)s edited ok')%{'changes':
+ ', '.join(changed)}
else:
- message = 'nothing changed'
+ message = _('nothing changed')
except:
s = StringIO.StringIO()
traceback.print_exc(None, s)
user.set(self.nodeid, **props)
self._post_editnode(self.nodeid, changed)
# and some feedback for the user
- message = '%s edited ok'%', '.join(changed)
+ message = _('%(changes)s edited ok')%{'changes':
+ ', '.join(changed)}
except:
s = StringIO.StringIO()
traceback.print_exc(None, s)
summary = note
m = ['%s\n'%note]
else:
- summary = 'This %s has been edited through the web.\n'%cn
+ summary = _('This %(classname)s has been edited through'
+ ' the web.\n')%{'classname': cn}
m = [summary]
# figure the changes and add them to the message
nid = self._createnode()
self._post_editnode(nid)
# and some nice feedback for the user
- message = '%s created ok'%cn
+ message = _('%(classname)s created ok')%{'classname': cn}
except:
s = StringIO.StringIO()
traceback.print_exc(None, s)
message = '<pre>%s</pre>'%cgi.escape(s.getvalue())
- self.pagehead('New %s'%self.classname.capitalize(), message)
+ self.pagehead(_('New %(classname)s')%{'classname':
+ self.classname.capitalize()}, message)
# call the template
newitem = htmltemplate.NewItemTemplate(self, self.TEMPLATES,
self._post_editnode(cl.create(content=file.file.read(),
type=mime_type, name=file.filename))
# and some nice feedback for the user
- message = '%s created ok'%cn
+ message = _('%(classname)s created ok')%{'classname': cn}
except:
s = StringIO.StringIO()
traceback.print_exc(None, s)
message = '<pre>%s</pre>'%cgi.escape(s.getvalue())
- self.pagehead('New %s'%self.classname.capitalize(), message)
+ self.pagehead(_('New %(classname)s')%{'classname':
+ self.classname.capitalize()}, message)
newitem = htmltemplate.NewItemTemplate(self, self.TEMPLATES,
self.classname)
newitem.render(self.form)
def login(self, message=None, newuser_form=None, action='index'):
self.pagehead(_('Login to roundup'), message)
- self.write('''
+ self.write(_('''
<table>
<tr><td colspan=2 class="strong-header">Existing User Login</td></tr>
<form action="login_action" method=POST>
-<input type="hidden" name="__destination_url" value="%s">
+<input type="hidden" name="__destination_url" value="%(action)s">
<tr><td align=right>Login name: </td>
<td><input name="__login_name"></td></tr>
<tr><td align=right>Password: </td>
<tr><td></td>
<td><input type="submit" value="Log In"></td></tr>
</form>
-'''%action)
+''')%locals())
if self.user is None and self.ANONYMOUS_REGISTER == 'deny':
self.write('</table>')
self.pagefoot()
if newuser_form is not None:
for key in newuser_form.keys():
values[key] = newuser_form[key].value
- self.write('''
+ self.write(_('''
<p>
<tr><td colspan=2 class="strong-header">New User Registration</td></tr>
<tr><td colspan=2><em>marked items</em> are optional...</td></tr>
<td><input type="submit" value="Register"></td></tr>
</form>
</table>
-'''%values)
+''')%values)
self.pagefoot()
def login_action(self, message=None):
if not self.form.has_key('__login_name'):
- return self.login(message='Username required')
+ return self.login(message=_('Username required'))
self.user = self.form['__login_name'].value
if self.form.has_key('__login_password'):
password = self.form['__login_password'].value
if port != '80': machine = machine + ':' + port
base = urlparse.urlunparse(('http', machine, url, None, None, None))
if message is not None:
- message = '<div class="system-msg">%s</div>'%message
+ message = _('<div class="system-msg">%(message)s</div>')%locals()
else:
message = ''
style = open(os.path.join(self.TEMPLATES, 'style.css')).read()
user_name = self.user or ''
if self.user == 'admin':
- admin_links = ' | <a href="list_classes">Class List</a>' \
- ' | <a href="user">User List</a>'
+ admin_links = _(' | <a href="list_classes">Class List</a>' \
+ ' | <a href="user">User List</a>')
else:
admin_links = ''
if self.user not in (None, 'anonymous'):
userid = self.db.user.lookup(self.user)
- user_info = '''
-<a href="issue?assignedto=%s&status=-1,unread,deferred,chatting,need-eg,in-progress,testing,done-cbb&:filter=status,assignedto&:sort=activity&:columns=id,activity,status,title,assignedto&:group=priority&show_customization=1">My Issues</a> |
-<a href="support?assignedto=%s&status=-1,unread,deferred,chatting,need-eg,in-progress,testing,done-cbb&:filter=status,assignedto&:sort=activity&:columns=id,activity,status,title,assignedto&:group=customername&show_customization=1">My Support</a> |
-<a href="user%s">My Details</a> | <a href="logout">Logout</a>
-'''%(userid, userid, userid)
+ user_info = _('''
+<a href="issue?assignedto=%(userid)s&status=-1,unread,deferred,chatting,need-eg,in-progress,testing,done-cbb&:filter=status,assignedto&:sort=activity&:columns=id,activity,status,title,assignedto&:group=priority&show_customization=1">My Issues</a> |
+<a href="support?assignedto=%(userid)s&status=-1,unread,deferred,chatting,need-eg,in-progress,testing,done-cbb&:filter=status,assignedto&:sort=activity&:columns=id,activity,status,title,assignedto&:group=customername&show_customization=1">My Support</a> |
+<a href="user%(userid)s">My Details</a> | <a href="logout">Logout</a>
+''')%locals()
else:
- user_info = '<a href="login">Login</a>'
+ user_info = _('<a href="login">Login</a>')
if self.user is not None:
- add_links = '''
+ add_links = _('''
| Add
<a href="newissue">Issue</a>,
<a href="newsupport">Support</a>,
<a href="newuser">User</a>
-'''
+''')
else:
add_links = ''
- self.write('''<html><head>
-<title>%s</title>
-<style type="text/css">%s</style>
+ self.write(_('''<html><head>
+<title>%(title)s</title>
+<style type="text/css">%(style)s</style>
</head>
<body bgcolor=#ffffff>
-%s
+%(message)s
<table width=100%% border=0 cellspacing=0 cellpadding=2>
-<tr class="location-bar"><td><big><strong>%s</strong></big></td>
-<td align=right valign=bottom>%s</td></tr>
+<tr class="location-bar"><td><big><strong>%(title)s</strong></big></td>
+<td align=right valign=bottom>%(user_name)s</td></tr>
<tr class="location-bar">
<td align=left>All
<a href="issue?status=-1,unread,deferred,chatting,need-eg,in-progress,testing,done-cbb&:sort=activity&:filter=status&:columns=id,activity,status,title,assignedto&:group=priority&show_customization=1">Issues</a>,
| Unassigned
<a href="issue?assignedto=-1&status=-1,unread,deferred,chatting,need-eg,in-progress,testing,done-cbb&:sort=activity&:filter=status,assignedto&:columns=id,activity,status,title,assignedto&:group=priority&show_customization=1">Issues</a>,
<a href="support?assignedto=-1&status=-1,unread,deferred,chatting,need-eg,in-progress,testing,done-cbb&:sort=activity&:filter=status,assignedto&:columns=id,activity,status,title,assignedto&:group=customername&show_customization=1">Support</a>
-%s
-%s</td>
-<td align=right>%s</td>
+%(add_links)s
+%(admin_links)s</td>
+<td align=right>%(user_info)s</td>
</table>
-'''%(title, style, message, title, user_name, add_links, admin_links,
- user_info))
+''')%locals())
def parsePropsFromForm(db, cl, form, nodeid=0):
'''Pull properties for the given class out of the form.
try:
value = db.classes[link].lookup(value)
except KeyError:
- raise ValueError, 'property "%s": %s not a %s'%(
- key, value, link)
+ raise ValueError, _('property "%(propname)s": '
+ '%(value)s not a %(classname)s')%{'propname':key,
+ 'value': value, 'classname': link}
elif isinstance(proptype, hyperdb.Multilink):
value = form[key]
if type(value) != type([]):
try:
entry = db.classes[link].lookup(entry)
except KeyError:
- raise ValueError, \
- 'property "%s": "%s" not an entry of %s'%(key,
- entry, link.capitalize())
+ raise ValueError, _('property "%(propname)s": '
+ '"%(value)s" not an entry of %(classname)s')%{
+ 'propname':key, 'value': entry, 'classname': link}
l.append(entry)
l.sort()
value = l
#
# $Log: not supported by cvs2svn $
+# Revision 1.69 2001/11/29 23:19:51 richard
+# Removed the "This issue has been edited through the web" when a valid
+# change note is supplied.
+#
# Revision 1.68 2001/11/29 04:57:23 richard
# a little comment
#