[gnote] Correctly display the number of synchronized notes.
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Correctly display the number of synchronized notes.
- Date: Sun, 12 Feb 2012 21:23:32 +0000 (UTC)
commit 0d713ec669a874bbb77b49ab743fc80d9f96ded2
Author: Aurimas Äernius <aurisc4 gmail com>
Date: Sun Feb 12 23:17:05 2012 +0200
Correctly display the number of synchronized notes.
src/synchronization/syncdialog.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/synchronization/syncdialog.cpp b/src/synchronization/syncdialog.cpp
index 9bc9e79..5d9bccd 100644
--- a/src/synchronization/syncdialog.cpp
+++ b/src/synchronization/syncdialog.cpp
@@ -585,8 +585,8 @@ void SyncDialog::sync_state_changed_(SyncState state)
int count = m_model->children().size();
set_title(_("Synchronization Complete"));
header_text(_("Synchronization is complete"));
- std::string numNotesUpdated = ngettext("%d note updated.", "%d notes updated.", count);
- message_text(numNotesUpdated + " " + _("Your notes are now up to date."));
+ std::string numNotesUpdated = ngettext("%1% note updated.", "%1% notes updated.", count);
+ message_text(str(boost::format(numNotesUpdated) % count) + " " + _("Your notes are now up to date."));
progress_text("");
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]