diff options
author | fiaxh <git@mx.ax.lt> | 2017-04-07 11:09:47 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-04-10 15:47:21 +0200 |
commit | 9bc83539d124f9645dc92e9e39001cb0192dae61 (patch) | |
tree | a4b22a8ea3e10b6d0050c2e5669729919a1cb477 /main/src/ui/manage_accounts | |
parent | d8881c4b16a1cd376dd69304c44444aee581da32 (diff) | |
download | dino-9bc83539d124f9645dc92e9e39001cb0192dae61.tar.gz dino-9bc83539d124f9645dc92e9e39001cb0192dae61.zip |
Gettext support
Diffstat (limited to 'main/src/ui/manage_accounts')
-rw-r--r-- | main/src/ui/manage_accounts/add_account_dialog.vala | 2 | ||||
-rw-r--r-- | main/src/ui/manage_accounts/dialog.vala | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/main/src/ui/manage_accounts/add_account_dialog.vala b/main/src/ui/manage_accounts/add_account_dialog.vala index 8501f476..74754b79 100644 --- a/main/src/ui/manage_accounts/add_account_dialog.vala +++ b/main/src/ui/manage_accounts/add_account_dialog.vala @@ -18,7 +18,7 @@ public class AddAccountDialog : Gtk.Dialog { public AddAccountDialog(StreamInteractor stream_interactor) { Object(use_header_bar : 1); - this.title = "Add Account"; + this.title = _("Add Account"); cancel_button.clicked.connect(() => { close(); }); ok_button.clicked.connect(on_ok_button_clicked); diff --git a/main/src/ui/manage_accounts/dialog.vala b/main/src/ui/manage_accounts/dialog.vala index e8697bad..24a8b47c 100644 --- a/main/src/ui/manage_accounts/dialog.vala +++ b/main/src/ui/manage_accounts/dialog.vala @@ -147,9 +147,9 @@ public class Dialog : Gtk.Window { private void on_image_button_clicked() { FileChooserDialog chooser = new FileChooserDialog ( - "Select avatar", this, FileChooserAction.OPEN, - "Cancel", ResponseType.CANCEL, - "Select", ResponseType.ACCEPT); + _("Select avatar"), this, FileChooserAction.OPEN, + _("Cancel"), ResponseType.CANCEL, + _("Select"), ResponseType.ACCEPT); FileFilter filter = new FileFilter(); filter.add_mime_type("image/*"); chooser.set_filter(filter); @@ -248,11 +248,11 @@ public class Dialog : Gtk.Window { ConnectionManager.ConnectionState state = stream_interactor.connection_manager.get_state(account); switch (state) { case ConnectionManager.ConnectionState.CONNECTING: - state_label.label = "Connecting..."; break; + state_label.label = _("Connecting..."); break; case ConnectionManager.ConnectionState.CONNECTED: - state_label.label = "Connected"; break; + state_label.label = _("Connected"); break; case ConnectionManager.ConnectionState.DISCONNECTED: - state_label.label = "Disconnected"; break; + state_label.label = _("Disconnected"); break; } state_label.get_style_context().remove_class("is_error"); } @@ -275,12 +275,12 @@ public class Dialog : Gtk.Window { private string get_connection_error_description(ConnectionManager.ConnectionError error) { switch (error.source) { case ConnectionManager.ConnectionError.Source.SASL: - return "Wrong password"; + return _("Wrong password"); } if (error.identifier != null) { - return "Error" + ": " + error.identifier; + return _("Error") + ": " + error.identifier; } else { - return "Error"; + return _("Error"); } } } |