mercurial/hgweb.py
changeset 1796 a373881fdf2a
parent 1795 36e19e3da12d
child 1825 a9343f9d7365
child 1896 f8f818a04f5b
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -1016,7 +1016,7 @@ class hgweb(object):
         elif req.form['cmd'][0] == 'static':
             fname = req.form['file'][0]
             req.write(staticfile(static, fname)
-                      or tmpl("error", error="%r not found" % fname))
+                      or self.t("error", error="%r not found" % fname))
 
         else:
             req.write(self.t("error"))