diff --git a/form_handler/gtk/form.py b/form_handler/gtk/form.py index 6ff9432..08018dc 100644 --- a/form_handler/gtk/form.py +++ b/form_handler/gtk/form.py @@ -24,13 +24,15 @@ from gajim.common.structs import OutgoingMessage from gajim.gtk.dataform import DataFormWidget +from gajim.plugins.plugins_i18n import _ + from form_handler.gtk.util import find_control class FormDialog(Gtk.ApplicationWindow): def __init__(self, data): transient = app.app.get_active_window() - Gtk.ApplicationWindow.__init__(self, title="Data Form Test") + Gtk.ApplicationWindow.__init__(self, title=_('Data Form')) self.set_transient_for(transient) self.set_default_size(600, 400) @@ -59,7 +61,7 @@ class FormDialog(Gtk.ApplicationWindow): message = OutgoingMessage(account=self._account, contact=contact, - message='Form sent', + message=_('Form sent'), type_='chat', nodes=[form]) @@ -70,5 +72,5 @@ class FormDialog(Gtk.ApplicationWindow): control = find_control(self._account, self._jid) if control is None: return - control.add_status_message('Form has successfully been sent') + control.add_status_message(_('Form has successfully been sent')) self.destroy() diff --git a/form_handler/plugin.py b/form_handler/plugin.py index 4136cd4..41a1978 100644 --- a/form_handler/plugin.py +++ b/form_handler/plugin.py @@ -32,7 +32,8 @@ log = logging.getLogger('gajim.p.form_handler') class FormHandlerPlugin(GajimPlugin): def init(self): - + self.description = _('Lets the user display and answer forms attached ' + 'to messages.') self.config_dialog = None self.events_handlers = {