Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgwebdir_mod.py @ 6913:580d5e6bfc1f
move % out of translatable strings
The translators need to see the raw format string, not the result of
using the format string.
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Sat, 16 Aug 2008 14:46:56 +0200 |
parents | b77c25c2d6c0 |
children | 2cfdabe235fb |
comparison
equal
deleted
inserted
replaced
6912:b92baef99ebf | 6913:580d5e6bfc1f |
---|---|
170 | 170 |
171 u = ui.ui(parentui=self.parentui) | 171 u = ui.ui(parentui=self.parentui) |
172 try: | 172 try: |
173 u.readconfig(os.path.join(path, '.hg', 'hgrc')) | 173 u.readconfig(os.path.join(path, '.hg', 'hgrc')) |
174 except Exception, e: | 174 except Exception, e: |
175 u.warn(_('error reading %s/.hg/hgrc: %s\n' % (path, e))) | 175 u.warn(_('error reading %s/.hg/hgrc: %s\n') % (path, e)) |
176 continue | 176 continue |
177 def get(section, name, default=None): | 177 def get(section, name, default=None): |
178 return u.config(section, name, default, untrusted=True) | 178 return u.config(section, name, default, untrusted=True) |
179 | 179 |
180 if u.configbool("web", "hidden", untrusted=True): | 180 if u.configbool("web", "hidden", untrusted=True): |