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 699325 - Use of ratio for separating time
Use of ratio for separating time
Status: RESOLVED DUPLICATE of bug 726232
Product: gnome-desktop
Classification: Core
Component: libgnome-desktop
3.8.x
Other Linux
: Normal minor
: ---
Assigned To: Desktop Maintainers
Desktop Maintainers
Depends on: 696497 698952 707599
Blocks:
 
 
Reported: 2013-04-30 14:55 UTC by Jakub Steiner
Modified: 2014-05-30 12:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
formats cs (31.03 KB, image/png)
2013-05-02 13:47 UTC, Jakub Steiner
  Details
libgnome-desktop: initialize gettext before constructing a wall clock (1.08 KB, patch)
2013-05-12 16:53 UTC, Giovanni Campagna
committed Details | Review

Description Jakub Steiner 2013-04-30 14:55:56 UTC
I was tricked into enabling seconds for the date in the top bar and noticed that the minutes separator is different to seconds. Former using a colon and the latter using ratio (U+2236). They should both use the same, preferably ratio.
Comment 1 Matthias Clasen 2013-05-01 00:42:52 UTC
which language ?
Comment 2 Matthias Clasen 2013-05-01 00:43:32 UTC
and can you show an example of the formatted time (that will be helpful in identifying the format that was used)
Comment 3 Jakub Steiner 2013-05-02 13:47:22 UTC
Created attachment 243057 [details]
formats cs
Comment 4 Giovanni Campagna 2013-05-12 16:29:07 UTC
This is a bug in the glibc, because gnome-desktop uses %R:%S, and glibc uses : for %R.
An easy work around is possible, though.
Comment 5 Giovanni Campagna 2013-05-12 16:32:25 UTC
Uh oh, I spoke too early. gnome-desktop has translations from %R to %H∶%M for en, so they should be picked up.
Comment 6 Giovanni Campagna 2013-05-12 16:53:33 UTC
Created attachment 243930 [details] [review]
libgnome-desktop: initialize gettext before constructing a wall clock

GnomeWallClock uses gettext, so we must initialize it to point to
the right path.

I think without the patch it ends up loading the installed (3.8) version
of gnome-desktop, which does not include en.po and thus does not convert
%R.
Comment 7 Bastien Nocera 2013-06-24 08:48:27 UTC
Attachment 243930 [details] pushed as 8829434 - libgnome-desktop: initialize gettext before constructing a wall clock
Comment 8 Evgeny Bobkin 2013-07-25 07:11:35 UTC
(In reply to comment #2)
> and can you show an example of the formatted time (that will be helpful in
> identifying the format that was used)

this is how the clock string looks like for my current 3.8.x desktop (screenshot attached)

https://bugzilla.gnome.org/show_bug.cgi?id=696497#c17
Comment 9 Bastien Nocera 2013-07-25 07:24:24 UTC
*** Bug 698952 has been marked as a duplicate of this bug. ***
Comment 10 Evgeny Bobkin 2013-07-25 07:32:49 UTC
please consider this patch as well

https://bugzilla.gnome.org/show_bug.cgi?id=696497#c18
Comment 11 Bastien Nocera 2014-05-30 12:51:09 UTC
Was fixed in bug 726232 along with a test suite to avoid regressions.

*** This bug has been marked as a duplicate of bug 726232 ***