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 623098 - In Orca preferences GUI window, Need do a gui control to set date/time present format
In Orca preferences GUI window, Need do a gui control to set date/time presen...
Status: RESOLVED DUPLICATE of bug 621535
Product: orca
Classification: Applications
Component: general
2.31.x
Other All
: Normal enhancement
: ---
Assigned To: Mesar Hameed
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-29 06:54 UTC by Hammer Attila
Modified: 2010-06-29 08:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hammer Attila 2010-06-29 06:54:04 UTC
Dear Developers,

We do a present date and present time feature in Orca master version, with supports various date/time format.
In src/orca/settings.py file have following this feature related settings:
# Format directives to use in presentDate function.
# By default we use the date format according to the current locale.
# These format strings are passed to python's time.strftime function. To see
# possible directives to embed in the format strings check:
# http://docs.python.org/library/time.html#time.strftime
#
DATE_FORMAT_LOCALE = "%x"
DATE_FORMAT_WITH_LONG_NAMES = "%A, %d, %B, %Y."
DATE_FORMAT_WITH_SHORT_NAMES = "%a, %d, %b, %Y."
presentDateFormat = DATE_FORMAT_LOCALE

# Format directives to use in presentTime function.
# By default we use the time format according to the current locale.
# These format strings are passed to python's time.strftime function. To see
# possible directives to embed in the format strings check:
# http://docs.python.org/library/time.html#time.strftime
#
TIME_FORMAT_LOCALE = "%X"
TIME_FORMAT_24_HMS = "%H:%M:%S"
# Translators: Orca has a feature to speak the time
# when the user presses a shortcut key.
# This is one of the alternative formats that the 
# user may wish to be presented with.
#
TIME_FORMAT_24_HMS_WITH_WORDS = _("%H hours, %M minutes and %S seconds.")
TIME_FORMAT_24_HM = "%H:%M"
# Translators: Orca has a feature to speak the time
# when the user presses a shortcut key.
# This is one of the alternative formats that the 
# user may wish to be presented with.
#
TIME_FORMAT_24_HM_WITH_WORDS = _("%H hours and %M minutes.")
presentTimeFormat = TIME_FORMAT_LOCALE

Because possible little difficult change the beginner users with this settings in .orca/user-settings.py file, need do two GUI preference control with changing this settings, one with change the date format, and one with change the time format with required setting value.

Attila
Comment 1 Mesar Hameed 2010-06-29 08:45:23 UTC

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