[gnome-contacts] fix string format
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] fix string format
- Date: Wed, 28 Sep 2011 00:09:47 +0000 (UTC)
commit 59639d4963cba36fed6e8b2da84737d4e43a9468
Author: Funda Wang <fundawang gmail com>
Date: Wed Sep 28 02:09:29 2011 +0200
fix string format
src/contacts-app.vala | 4 ++--
src/contacts-contact-pane.vala | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 1d124d3..134117d 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -65,7 +65,7 @@ public class Contacts.App : Gtk.Application {
contacts_pane.show_contact (contact);
} else {
var dialog = new MessageDialog (App.app.window, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, ButtonsType.CLOSE,
- _("No contact with id %s found").printf (id));
+ _("No contact with id %s found"), id);
dialog.set_title(_("Contact not found"));
dialog.show ();
dialog.response.connect ( (id) => {
@@ -83,7 +83,7 @@ public class Contacts.App : Gtk.Application {
contacts_pane.show_contact (contact);
} else {
var dialog = new MessageDialog (App.app.window, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, ButtonsType.CLOSE,
- _("No contact with email address %s found").printf (email_address));
+ _("No contact with email address %s found"), email_address);
dialog.set_title(_("Contact not found"));
dialog.show ();
dialog.response.connect ( (id) => {
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 13efbad..9c0af09 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -1585,6 +1585,7 @@ public class Contacts.ContactPane : Grid {
DialogFlags.MODAL,
MessageType.ERROR,
ButtonsType.OK,
+ "%s",
_("Unable to find newly created contact\n"));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]