summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 20d37fe)
raw | patch | inline | side by side (parent: 20d37fe)
author | jhermann <jhermann@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 21 Nov 2001 23:35:45 +0000 (23:35 +0000) | ||
committer | jhermann <jhermann@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 21 Nov 2001 23:35:45 +0000 (23:35 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@412 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/htmltemplate.py | patch | blob | history | |
tools/pygettext.py | patch | blob | history |
index 4ed94ff982895c72d0cb1d9d03cbf0e7c754b305..9afbd099ae3db685bd46f99b2cf880e5bdb2a5b4 100644 (file)
--- a/roundup/htmltemplate.py
+++ b/roundup/htmltemplate.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: htmltemplate.py,v 1.43 2001-11-21 04:04:43 richard Exp $
+# $Id: htmltemplate.py,v 1.44 2001-11-21 23:35:45 jhermann Exp $
import os, re, StringIO, urllib, cgi, errno
k = linkcl.labelprop()
value = ', '.join([linkcl.get(i, k) for i in value])
else:
- s = 'Plain: bad propclass "%s"'%propclass
+ s = _('Plain: bad propclass "%(propclass)s"')%locals()
if escape:
value = cgi.escape(value)
return value
to be edited
'''
if not self.nodeid and self.form is None and self.filterspec is None:
- return '[Field: not called from item]'
+ return _('[Field: not called from item]')
propclass = self.properties[property]
if self.nodeid:
value = self.cl.get(self.nodeid, property, None)
#
# $Log: not supported by cvs2svn $
+# Revision 1.43 2001/11/21 04:04:43 richard
+# *sigh* more missing value handling
+#
# Revision 1.42 2001/11/21 03:40:54 richard
# more new property handling
#
diff --git a/tools/pygettext.py b/tools/pygettext.py
index 546874c5990755f60ec17f8ba08632b624f127ce..82d1fefd18db4ac7f47e2b8f61c966d325c282fb 100644 (file)
--- a/tools/pygettext.py
+++ b/tools/pygettext.py
else:
options.toexclude = []
+ # on win32, do internal globbing
+ if sys.platform == 'win32':
+ import glob
+ expanded = []
+ for arg in args:
+ expanded.extend(glob.glob(arg))
+ args = expanded
+
# slurp through all the files
eater = TokenEater(options)
for filename in args: