Mercurial > pidgin
comparison finch/gntplugin.c @ 17137:a924c94ce5da
Mark strings for translation
author | Richard Nelson <wabz@pidgin.im> |
---|---|
date | Sat, 19 May 2007 02:43:28 +0000 |
parents | beb960114f7d |
children | 7be04c20bf22 |
comparison
equal
deleted
inserted
replaced
17134:9d7989b05338 | 17137:a924c94ce5da |
---|---|
65 } | 65 } |
66 | 66 |
67 static void | 67 static void |
68 plugin_toggled_cb(GntWidget *tree, PurplePlugin *plugin, gpointer null) | 68 plugin_toggled_cb(GntWidget *tree, PurplePlugin *plugin, gpointer null) |
69 { | 69 { |
70 /* TODO: Mark these strings for translation after the freeze */ | |
71 if (gnt_tree_get_choice(GNT_TREE(tree), plugin)) | 70 if (gnt_tree_get_choice(GNT_TREE(tree), plugin)) |
72 { | 71 { |
73 if (!purple_plugin_load(plugin)) { | 72 if (!purple_plugin_load(plugin)) { |
74 purple_notify_error(NULL, "ERROR", "loading plugin failed", NULL); | 73 purple_notify_error(NULL, _("ERROR"), _("loading plugin failed"), NULL); |
75 gnt_tree_set_choice(GNT_TREE(tree), plugin, FALSE); | 74 gnt_tree_set_choice(GNT_TREE(tree), plugin, FALSE); |
76 } | 75 } |
77 } | 76 } |
78 else | 77 else |
79 { | 78 { |
80 GntWidget *win; | 79 GntWidget *win; |
81 | 80 |
82 if (!purple_plugin_unload(plugin)) { | 81 if (!purple_plugin_unload(plugin)) { |
83 purple_notify_error(NULL, "ERROR", "unloading plugin failed", NULL); | 82 purple_notify_error(NULL, _("ERROR"), _("unloading plugin failed"), NULL); |
84 gnt_tree_set_choice(GNT_TREE(tree), plugin, TRUE); | 83 gnt_tree_set_choice(GNT_TREE(tree), plugin, TRUE); |
85 } | 84 } |
86 | 85 |
87 if ((win = g_hash_table_lookup(confwins, plugin)) != NULL) | 86 if ((win = g_hash_table_lookup(confwins, plugin)) != NULL) |
88 { | 87 { |