add 'megabyte' context

svn: r16395
This commit is contained in:
Jérôme Rapinat 2011-01-17 09:43:50 +00:00
parent de489bb192
commit 0e821e7bba
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ from collections import defaultdict
import os
import time
import datetime
from gen.ggettext import gettext as _
from gen.ggettext import sgettext as _
from gen.ggettext import ngettext
from cStringIO import StringIO
from collections import defaultdict
@ -1471,7 +1471,7 @@ class ViewManager(CLIManager):
label.set_alignment(0, .5)
hbox.pack_start(label, False)
include = gtk.RadioButton(None, "%s (%s %s)" % (_("Include"),
mbytes, _("MB")))
mbytes, _("Megabyte|MB")))
exclude = gtk.RadioButton(include, _("Exclude"))
include.connect("toggled", lambda widget: self.media_toggle(widget, file_entry))
hbox.pack_start(include, True)

View File

@ -187,7 +187,7 @@ class StatsGramplet(Gramplet):
self.link("%s:" % _("Total size of media objects"),
'Filter', 'media by size')
self.append_text(" %s %s" % (mbytes, _("MB")))
self.append_text(" %s %s" % (mbytes, _("Megabyte|MB")))
self.append_text("\n")
self.link("%s:" % _("Missing Media Objects"),
'Filter', 'missing media')