gnome-system-monitor r2264 - trunk/src



Author: bdejean
Date: Sun Jan  6 22:05:13 2008
New Revision: 2264
URL: http://svn.gnome.org/viewvc/gnome-system-monitor?rev=2264&view=rev

Log:
Fixed i18n string.


Modified:
   trunk/src/load-graph.cpp

Modified: trunk/src/load-graph.cpp
==============================================================================
--- trunk/src/load-graph.cpp	(original)
+++ trunk/src/load-graph.cpp	Sun Jan  6 22:05:13 2008
@@ -204,7 +204,12 @@
 		cairo_line_to (tmp_cr, (ceil(x) + 0.5) + g->rmargin + g->indent, real_draw_height + 4.5);
 		cairo_stroke(tmp_cr);
 		unsigned seconds = total_seconds - i * total_seconds / 6;
-		caption = g_strdup_printf((i == 0 ? _("%u seconds") : "%u"), seconds);
+		const char* format;
+		if (i == 0)
+			format = dngettext(GETTEXT_PACKAGE, "%u second", "%u seconds", seconds);
+		else
+			format = "%u";
+		caption = g_strdup_printf(format, seconds);
 		cairo_text_extents (tmp_cr, caption, &extents);
 		cairo_move_to (tmp_cr, ((ceil(x) + 0.5) + g->rmargin + g->indent) - (extents.width/2), g->draw_height);
 		cairo_set_source_rgba (tmp_cr, 0, 0, 0, 1);



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