VirtualMailManager/cli/subcommands.py
changeset 609 56ec275911f2
parent 608 0ed93eb8b364
child 611 8e9b0046bc8f
equal deleted inserted replaced
608:0ed93eb8b364 609:56ec275911f2
   955     #  Py25: fmt = format_domain_default if domaindefault else lambda s: s
   955     #  Py25: fmt = format_domain_default if domaindefault else lambda s: s
   956     if domaindefault:
   956     if domaindefault:
   957         fmt = format_domain_default
   957         fmt = format_domain_default
   958     else:
   958     else:
   959         fmt = lambda s: s
   959         fmt = lambda s: s
       
   960     # TP: e.g.: [  0.00%] 21.09 KiB/1.00 GiB
   960     return fmt(_(u'[%(percent)s%%] %(used)s/%(limit)s') % q_usage)
   961     return fmt(_(u'[%(percent)s%%] %(used)s/%(limit)s') % q_usage)
   961 
   962 
   962 
   963 
   963 def _print_info(ctx, info, title):
   964 def _print_info(ctx, info, title):
   964     """Print info dicts."""
   965     """Print info dicts."""
  1089             _trans = { TYPE_ACCOUNT   : ''
  1090             _trans = { TYPE_ACCOUNT   : ''
  1090                      , TYPE_ALIAS     : ''
  1091                      , TYPE_ALIAS     : ''
  1091                      , TYPE_RELOCATED : ''
  1092                      , TYPE_RELOCATED : ''
  1092                      }
  1093                      }
  1093         else:
  1094         else:
       
  1095             # TP: the letters 'u', 'a' and 'r' are abbreviations of user,
       
  1096             # alias and relocated user
  1094             _trans = { TYPE_ACCOUNT   : _('u')
  1097             _trans = { TYPE_ACCOUNT   : _('u')
  1095                      , TYPE_ALIAS     : _('a')
  1098                      , TYPE_ALIAS     : _('a')
  1096                      , TYPE_RELOCATED : _('r')
  1099                      , TYPE_RELOCATED : _('r')
  1097                      }
  1100                      }
  1098         for did in dids:
  1101         for did in dids: