After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 699635 - "%d hours ago" and "%d days ago" need ngettext
"%d hours ago" and "%d days ago" need ngettext
Status: RESOLVED FIXED
Product: gitg
Classification: Applications
Component: gitg
git master
Other Linux
: Normal normal
: ---
Assigned To: gitg-maint
gitg-maint
Depends on:
Blocks:
 
 
Reported: 2013-05-03 21:41 UTC by André Klapper
Modified: 2013-06-30 11:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description André Klapper 2013-05-03 21:41:07 UTC
Code in libgitg/gitg-commit.vala :

{
	return "%d hours ago".printf((int)Math.round(t / 3600));
}
else if (t < 3600 * 24 * 6)
{
	return "%d days ago".printf((int)Math.round(t / (3600 * 24)));
}

That doesn't work, see
https://live.gnome.org/TranslationProject/DevGuidelines/Plurals
Comment 1 jessevdk@gmail.com 2013-06-30 11:23:57 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.