Fix translatable strings in ipalib plugins.

Needed for xgettext/pygettext processing.
This commit is contained in:
Pavel Zuna
2011-02-23 16:47:49 -05:00
committed by Rob Crittenden
parent 8145952752
commit f3de95ce99
22 changed files with 57 additions and 40 deletions

View File

@@ -329,7 +329,9 @@ class automountlocation_import(LDAPQuery):
fp.close()
except IOError, e:
if e.errno == 2:
raise errors.NotFound(reason=_('File %(file)s not found' % {'file':filename}))
raise errors.NotFound(
reason=_('File %(file)s not found') % {'file': filename}
)
else:
raise e
return map