GNOME Bugzilla – Bug 612950
Function gpm_stats_time_to_text does not translate text
Last modified: 2010-03-16 21:43:45 UTC
The function gpm_stats_time_to_text in gpm-statistics.c does not translate text. return g_strdup_printf ("%.0f seconds", value); should be for example replaced by return g_strdup_printf ( ngettext ("%.0f second","%.0f seconds",value), value);
commit 4b0c25509297d4f5de081d7b355ec6ba5f4d2eab Author: Richard Hughes <richard@hughsie.com> Date: Mon Mar 15 17:06:58 2010 +0000 Mark a few trivial strings as translatable to fix #612950
_("%.0f seconds") What if %.0f == 1? This needs ngettext and does not fix the issue reported here. Please see http://live.gnome.org/TranslationProject/DevGuidelines/Plurals
Created attachment 156257 [details] [review] Add proper ngettext calls to time amounts Richard, please nod if you are ok with this - and do not worry about the string freeze, this is just marking existing strings *properly* :).
commit 4402aab7703b1e2afad5c1ec5a632559975cebd4 Author: Richard Hughes <richard@hughsie.com> Date: Tue Mar 16 13:28:51 2010 +0000 Fix up a translation using ngettext rather than assuming the plural. Fixes #612950
Gabor, I think we wrote the same patch in parallel :-)
Its not comitted yet ? http://git.gnome.org/browse/gnome-power-manager/log/
(In reply to comment #6) > Its not comitted yet ? > http://git.gnome.org/browse/gnome-power-manager/log/ Oops, it turns out git actually requires me to push changes to the server :-)