diff --git a/src/core.py b/src/core.py index fac06136e..f1fed87f8 100644 --- a/src/core.py +++ b/src/core.py @@ -84,14 +84,14 @@ PREF_FUNCTIONS = { def N_(self): return self -STATE_MESSAGES = (_("Queued"), - _("Checking"), - _("Connecting"), - _("Downloading Metadata"), - _("Downloading"), - _("Finished"), - _("Seeding"), - _("Allocating")) +STATE_MESSAGES = (N_("Queued"), + N_("Checking"), + N_("Connecting"), + N_("Downloading Metadata"), + N_("Downloading"), + N_("Finished"), + N_("Seeding"), + N_("Allocating")) # Exceptions class DelugeError(Exception): @@ -125,7 +125,7 @@ class InsufficientFreeSpaceError(DelugeError): self.free_space = free_space self.needed_space = needed_space def __str__(self): - return _("%d %d bytes needed")%(self.free_space, self.needed_space) + return "%d %d "%self.free_space, self.needed_space + _("bytes needed") # A cached data item diff --git a/src/interface.py b/src/interface.py index 1bc6bf8c1..888ff8868 100644 --- a/src/interface.py +++ b/src/interface.py @@ -219,7 +219,7 @@ class DelugeGTK: def build_menu_radio_list(self, value_list, callback, pref_value=None, suffix=None, show_notset=False, - notset_label=_("Unlimited"), notset_lessthan=0): + notset_label="Unlimited", notset_lessthan=0): # Build a menu with radio menu items from a list and connect them to the callback # The pref_value is what you would like to test for the default active radio item # Setting show_unlimited will include an Unlimited radio item