make scheduler plugin translatable

This commit is contained in:
Marcos Pinto 2007-07-20 21:07:55 +00:00
parent 7ef61be07c
commit df5b85cd40
2 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,9 @@
# An example plugin for use with Deluge
plugin_name = "Scheduler" # The name of the plugin
plugin_name = _("Scheduler") # The name of the plugin
plugin_author = "Lazka - updated by markybob" # The author's Name
plugin_version = "0.5.2" # The plugin's version number
plugin_description = "Scheduler" # A description of the plugin
plugin_description = _("Scheduler") # A description of the plugin
def deluge_init(deluge_path):
global path

View File

@ -6,7 +6,7 @@ class plugin_Scheduler:
self.core = deluge_core
self.interface = deluge_interface
self.days = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
self.days = [_("Mon"), _("Tue"), _("Wed"), _("Thu"), _("Fri"), _("Sat"), _("Sun")]
self.conf_file = deluge.common.CONFIG_DIR + "/scheduler.conf"
self.config = deluge.pref.Preferences()
self.button_state_temp = [[0] * 7 for dummy in xrange(24)]
@ -80,7 +80,7 @@ class plugin_Scheduler:
self.button_state_temp = copy.deepcopy(self.button_state)
#dialog
dialog = gtk.Dialog("Scheduler Settings")
dialog = gtk.Dialog(_("Scheduler Settings"))
dialog.set_default_size(600, 270)
#buttons
@ -90,8 +90,8 @@ class plugin_Scheduler:
#text
hover_text = gtk.Label()
dllimit_label = gtk.Label("Limit download to:")
ullimit_label = gtk.Label("Limit upload to:")
dllimit_label = gtk.Label(_("Limit download to:"))
ullimit_label = gtk.Label(_("Limit upload to:"))
#Select Widget
drawing = scheduler_select(self.button_state_temp, hover_text, self.days)