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 582857 - [PATCH] Implemented the 'fuzzy' format
[PATCH] Implemented the 'fuzzy' format
Status: RESOLVED OBSOLETE
Product: gnome-panel
Classification: Other
Component: clock
git master
Other All
: Normal enhancement
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 520228 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-05-16 11:11 UTC by sebastian
Modified: 2020-11-07 12:15 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Implemented the fuzzy format (18.03 KB, patch)
2009-05-16 11:12 UTC, sebastian
needs-work Details | Review
Updated German translation (11.77 KB, patch)
2009-05-16 11:13 UTC, sebastian
needs-work Details | Review

Description sebastian 2009-05-16 11:11:50 UTC
I added support for a fuzzy clock as described here:
http://brainstorm.ubuntu.com/idea/6252/
Comment 1 sebastian 2009-05-16 11:12:52 UTC
Created attachment 134754 [details] [review]
Implemented the fuzzy format

When the gconf key 'format' is set to 'fuzzy', the clock shows time like
a human would read it, like 'quarter past ten'. It has support for i18n
and special hours like 'noon'.

This implements http://brainstorm.ubuntu.com/idea/6252/ .

Added description of fuzzy format to the .schemas.in file.

The main label of the clock is now put together by 'format_label()',
which calls 'format_date()' and 'format_time()' as needed. Those two
funcions remove redundances and respect the different 'cd->format'
settings. Thus, cd->timeformat and cd->fallback_timeformat (which wasn't
used anyway) are not needed anymore and have been removed.

Added the function 'string_from_locale()', which calls strftime on a
locale. It is used several times throughout the code.
Comment 2 sebastian 2009-05-16 11:13:53 UTC
Created attachment 134755 [details] [review]
Updated German translation

Translated the new strings to my mother language.
Comment 3 Philip Withnall 2010-07-19 20:16:27 UTC
*** Bug 520228 has been marked as a duplicate of this bug. ***
Comment 4 Philipp 2013-10-24 00:15:20 UTC
Review of attachment 134754 [details] [review]:

Looks like a fun thing to have, but needs GSettings migration.

::: applets/clock/clock.c
@@ +1948,1 @@
 	value = gconf_value_get_bool (entry->value);

Patch needs to be updated for gconf->gsettings migration.
Comment 5 Philipp 2013-10-24 00:16:17 UTC
Review of attachment 134755 [details] [review]:

Please update after GSettings rework.
Comment 6 André Klapper 2020-11-07 12:15:23 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all
old feature requests in Bugzilla which have not seen updates for many years.

If you still use gnome-panel and if you are still requesting this feature in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-panel/-/issues/

Thank you for reporting this issue and we are sorry it could not be implemented.