This commit is contained in:
Kovid Goyal 2013-08-09 08:17:49 +05:30
parent 0a508d2ff5
commit 83126c4bf5
2 changed files with 3 additions and 3 deletions

View File

@ -67,8 +67,8 @@ def embed_font(container, font, all_font_rules, report, warned):
rule['src'] = 'url(%s)' % href rule['src'] = 'url(%s)' % href
rule['name'] = name rule['name'] = name
return rule return rule
msg = _('Failed to find font matching: family: %s; weight: %s; style: %s; stretch: %s') % ( msg = _('Failed to find font matching: family: %(family)s; weight: %(weight)s; style: %(style)s; stretch: %(stretch)s') % dict(
ff, font['font-weight'], font['font-style'], font['font-stretch']) family=ff, weight=font['font-weight'], style=font['font-style'], stretch=font['font-stretch'])
if msg not in warned: if msg not in warned:
warned.add(msg) warned.add(msg)
report(msg) report(msg)

View File

@ -31,7 +31,7 @@ class ProfileModel(QAbstractListModel):
if w >= 10000: if w >= 10000:
ss = _('unlimited') ss = _('unlimited')
else: else:
ss = _('%d x %d pixels') % (w, h) ss = _('%(width)d x %(height)d pixels') % dict(width=w, height=h)
ss = _('Screen size: %s') % ss ss = _('Screen size: %s') % ss
return QVariant('%s [%s]' % (profile.description, ss)) return QVariant('%s [%s]' % (profile.description, ss))
return NONE return NONE