From 42c3796bcbe056e7058652eda8751a853b6f745d Mon Sep 17 00:00:00 2001 From: Dan Breslau Date: Thu, 25 Aug 2016 15:10:50 -0400 Subject: [PATCH] Translatability tweaks --- src/moonshot-identity-management-view.vala | 6 +++--- src/moonshot-server.vala | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/moonshot-identity-management-view.vala b/src/moonshot-identity-management-view.vala index c4a8a1a..55932f7 100644 --- a/src/moonshot-identity-management-view.vala +++ b/src/moonshot-identity-management-view.vala @@ -98,7 +98,7 @@ public class IdentityManagerView : Window { #endif identities_manager = parent_app.model; request_queue = new GLib.Queue(); - this.title = "Moonshot Identity Selector"; + this.title = _("Moonshot Identity Selector"); this.set_position(WindowPosition.CENTER); set_default_size(WINDOW_WIDTH, WINDOW_HEIGHT); build_ui(); @@ -437,9 +437,9 @@ public class IdentityManagerView : Window { { bool remove = WarningDialog.confirm(this, Markup.printf_escaped( - "You are about to remove the identity '%s'.", + "" + _("You are about to remove the identity '%s'.") + "", id_card.display_name) - + "\n\nAre you sure you want to do this?", + + "\n\n" + _("Are you sure you want to do this?"), "delete_idcard"); if (remove) remove_identity(id_card); diff --git a/src/moonshot-server.vala b/src/moonshot-server.vala index ea3bd0c..4fbcd2a 100644 --- a/src/moonshot-server.vala +++ b/src/moonshot-server.vala @@ -95,7 +95,7 @@ public class MoonshotServer : Object { var id_card = request.id_card; - if ((id_card != null) && (id_card.display_name != IdCard.NO_IDENTITY)) { + if ((id_card != null) && (!id_card.is_no_identity())) { nai_out = id_card.nai; if ((request.password != null) && (request.password != "")) password_out = request.password; -- 2.1.4