[Thoggen-cvs] SF.net SVN: thoggen:[326] trunk/thoggen
Status: Beta
Brought to you by:
tp-m
|
From: <tp...@us...> - 2009-01-10 22:43:07
|
Revision: 326
http://thoggen.svn.sourceforge.net/thoggen/?rev=326&view=rev
Author: tp-m
Date: 2009-01-10 22:43:03 +0000 (Sat, 10 Jan 2009)
Log Message:
-----------
Patch by: Ben Asselstine <benasselstine at users sourceforge net>
* src/th-job-progress-dialog.c:
Use ngettext() to get correct singular/plural forms of 'minutes'
and 'hours'. Fixes bug #2478092.
Modified Paths:
--------------
trunk/thoggen/ChangeLog
trunk/thoggen/src/th-job-progress-dialog.c
Modified: trunk/thoggen/ChangeLog
===================================================================
--- trunk/thoggen/ChangeLog 2009-01-10 20:02:24 UTC (rev 325)
+++ trunk/thoggen/ChangeLog 2009-01-10 22:43:03 UTC (rev 326)
@@ -1,5 +1,13 @@
2009-01-10 Tim-Philipp Müller <tim at centricular dot net>
+ Patch by: Ben Asselstine <benasselstine at users sourceforge net>
+
+ * src/th-job-progress-dialog.c:
+ Use ngettext() to get correct singular/plural forms of 'minutes'
+ and 'hours'. Fixes bug #2478092.
+
+2009-01-10 Tim-Philipp Müller <tim at centricular dot net>
+
* configure.ac:
Use AC_CONFIG_MACRO_DIR, so libtoolize knows where to put the
.m4 files.
Modified: trunk/thoggen/src/th-job-progress-dialog.c
===================================================================
--- trunk/thoggen/src/th-job-progress-dialog.c 2009-01-10 20:02:24 UTC (rev 325)
+++ trunk/thoggen/src/th-job-progress-dialog.c 2009-01-10 22:43:03 UTC (rev 326)
@@ -511,11 +511,17 @@
if (secs <= 0)
*s = 0x00;
else if (secs < 60)
- g_snprintf (s, sizeof (s), _("%u seconds"), secs);
+ g_snprintf (s, sizeof (s),
+ ngettext ("%u second", "%u seconds", secs), secs);
else if (secs < 3600)
- g_snprintf (s, sizeof (s), _("%u minutes"), secs/60);
+ g_snprintf (s, sizeof (s),
+ ngettext ("%u minute", "%u minutes", secs/60),
+ secs/60);
else
- g_snprintf (s, sizeof (s), _("%u:%02u hours"), secs/3600, (secs % 3600) / 60);
+ g_snprintf (s, sizeof (s),
+ ngettext ("%u:%02u hour", "%u:%02u hours",
+ secs/3600),
+ secs/3600, (secs % 3600) / 60);
return (const gchar*) s;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|