VMM/cli/subcommands: Fixed a msgid issue (format string with unnamed arguments). v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Fri, 18 Feb 2011 12:36:09 +0000
branchv0.6.x
changeset 408 f6e55b27fe07
parent 407 3162ff959375
child 409 54a89c19e534
VMM/cli/subcommands: Fixed a msgid issue (format string with unnamed arguments).
VirtualMailManager/cli/subcommands.py
--- a/VirtualMailManager/cli/subcommands.py	Fri Feb 18 12:12:54 2011 +0000
+++ b/VirtualMailManager/cli/subcommands.py	Fri Feb 18 12:36:09 2011 +0000
@@ -257,13 +257,14 @@
         else:
             raise
     else:
+        q_limit = u'Storage: %(bytes)s Messages %(messages)u'
         if not details:
-            info['quota limit'] = _(u'Storage: %s Messages %u') % (
-                    human_size(info['bytes']), info['messages'])
+            info['bytes'] = human_size(info['bytes'])
+            info['quota limit'] = q_limit % info
             _print_info(ctx, info, _(u'Domain'))
         else:
-            info[0]['quota limit'] = _(u'Storage: %s Messages %u') % (
-                    human_size(info[0]['bytes']), info[0]['messages'])
+            info[0]['bytes'] = human_size(info[0]['bytes'])
+            info[0]['quota limit'] = q_limit % info[0]
             _print_info(ctx, info[0], _(u'Domain'))
             if details == u'accounts':
                 _print_list(info[1], _(u'accounts'))