Mercurial > hg-stable
comparison mercurial/ui.py @ 11600:76454cbc11e4 stable
mark ui.warn strings for translation
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 16 Jul 2010 14:44:30 +0200 |
parents | caf10970950e |
children | 5094e6b2f640 77f1f206e135 |
comparison
equal
deleted
inserted
replaced
11599:6fcc066c0c2c | 11600:76454cbc11e4 |
---|---|
302 | 302 |
303 def _path(self, loc): | 303 def _path(self, loc): |
304 p = self.config('paths', loc) | 304 p = self.config('paths', loc) |
305 if p: | 305 if p: |
306 if '%%' in p: | 306 if '%%' in p: |
307 self.warn("(deprecated '%%' in path %s=%s from %s)\n" % | 307 self.warn(_("(deprecated '%%' in path %s=%s from %s)\n") % |
308 (loc, p, self.configsource('paths', loc))) | 308 (loc, p, self.configsource('paths', loc))) |
309 p = p.replace('%%', '%') | 309 p = p.replace('%%', '%') |
310 p = util.expandpath(p) | 310 p = util.expandpath(p) |
311 return p | 311 return p |
312 | 312 |