--- a/mercurial/dirstate.py Tue Oct 18 18:38:04 2005 -0700
+++ b/mercurial/dirstate.py Tue Oct 18 18:38:39 2005 -0700
@@ -68,7 +68,7 @@
try:
syntax = syntaxes[s]
except KeyError:
- self.ui.warn("ignoring invalid syntax '%s'\n" % s)
+ self.ui.warn(_("ignoring invalid syntax '%s'\n") % s)
continue
pat = syntax + line
for s in syntaxes.values():
@@ -190,7 +190,7 @@
try:
del self.map[f]
except KeyError:
- self.ui.warn("not in dirstate: %s!\n" % f)
+ self.ui.warn(_("not in dirstate: %s!\n") % f)
pass
def clear(self):
@@ -276,13 +276,13 @@
return True
else:
kind = 'unknown'
- if stat.S_ISCHR(st.st_mode): kind = 'character device'
- elif stat.S_ISBLK(st.st_mode): kind = 'block device'
- elif stat.S_ISFIFO(st.st_mode): kind = 'fifo'
- elif stat.S_ISLNK(st.st_mode): kind = 'symbolic link'
- elif stat.S_ISSOCK(st.st_mode): kind = 'socket'
- elif stat.S_ISDIR(st.st_mode): kind = 'directory'
- self.ui.warn('%s: unsupported file type (type is %s)\n' % (
+ if stat.S_ISCHR(st.st_mode): kind = _('character device')
+ elif stat.S_ISBLK(st.st_mode): kind = _('block device')
+ elif stat.S_ISFIFO(st.st_mode): kind = _('fifo')
+ elif stat.S_ISLNK(st.st_mode): kind = _('symbolic link')
+ elif stat.S_ISSOCK(st.st_mode): kind = _('socket')
+ elif stat.S_ISDIR(st.st_mode): kind = _('directory')
+ self.ui.warn(_('%s: unsupported file type (type is %s)\n') % (
util.pathto(self.getcwd(), f),
kind))
return False