[gnome-builder] Use ngettext instead gettext



commit ec5d84d8a93a47e8e2c33258f9d6ee861402f9be
Author: Marek Černocký <marek manet cz>
Date:   Fri Aug 19 12:22:02 2016 +0200

    Use ngettext instead gettext

 plugins/hello-cpp/hellocppapplicationaddin.cc |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/hello-cpp/hellocppapplicationaddin.cc b/plugins/hello-cpp/hellocppapplicationaddin.cc
index 1a1c952..62a4216 100644
--- a/plugins/hello-cpp/hellocppapplicationaddin.cc
+++ b/plugins/hello-cpp/hellocppapplicationaddin.cc
@@ -45,7 +45,10 @@ HelloCppApplicationAddin::HelloCppApplicationAddin(GObject *gobj)
   con = application->signal_shutdown().connect([this] {
       auto stop = steady_clock::now();
       auto elapsed_seconds = duration_cast<seconds>(stop - start).count();
-      g_print (_("Wow! You've spent with Builder %d seconds!\n"), elapsed_seconds);
+      g_print (ngettext("Wow! You've spent with Builder %d second!\n", 
+                        "Wow! You've spent with Builder %d seconds!\n", 
+                        elapsed_seconds), 
+               elapsed_seconds);
     });
 
   start = std::chrono::steady_clock::now();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]