GNOME Bugzilla – Bug 756412
Incorrect date format is used.
Last modified: 2015-10-20 14:40:56 UTC
Created attachment 313092 [details] screenshot I noticed gnome-calendar uses the wrong date format for events. Correct format is set in control center. Screenshot attached. GNOME 3.18 on Arch Linux
The issue here is a translation for en_GB is missing, the same translation exists for gnome-control-center and glib. The same translation as shown in [1] missing is what is causing this bug. [1]: https://git.gnome.org/browse/glib/tree/po/en_GB.po#n3005
Why not use GLib's translation then, instead of making us translate a new one? const char *format = dpgettext("glib20", "GDateTime", "%m/%d/%y");
(In reply to Erick Pérez Castellanos from comment #1) > The issue here is a translation for en_GB is missing, the same translation > exists for gnome-control-center and glib. There's no translations in gnome-control-center either, it uses the "%x" format from g_date_time_format(). https://git.gnome.org/browse/gnome-control-center/tree/panels/region/cc-format-chooser.c#n86
(In reply to Bastien Nocera from comment #2) > Why not use GLib's translation then, instead of making us translate a new > one? > > const char *format = dpgettext("glib20", "GDateTime", "%m/%d/%y"); I did not know we could do such a thing, yet I think a translation for British English is needed. So, I'll fix this particular issue calling on GLib's translation and the bug can stay to serve a feature tracker for the translation.
(In reply to Erick Pérez Castellanos from comment #4) > (In reply to Bastien Nocera from comment #2) > > Why not use GLib's translation then, instead of making us translate a new > > one? > > > > const char *format = dpgettext("glib20", "GDateTime", "%m/%d/%y"); > > I did not know we could do such a thing, FWIW, that's how %x is implemented in GLib's g_date_time_format(), so it might be best to use g_date_time_format() to create your date and time labels, instead of poking directly at the translation. > yet I think a translation for > British English is needed. So, I'll fix this particular issue calling on > GLib's translation and the bug can stay to serve a feature tracker for the > translation. There's one string in the UI that needs to be translated (s/Color/Colour/) and that's it...
commit f9be13f74b8c07299a21202e8008c362c9fdd33e (HEAD -> master) Author: Bastien Nocera <hadess@hadess.net> Date: Tue Oct 20 15:30:40 2015 +0200 po: Add British English translation https://bugzilla.gnome.org/show_bug.cgi?id=756412
Pushed fix as commit e81f709