[Planner Dev] Representing date and time in localized digits



Hello,

This is a proposal for adding localized digits to date and time
representation in Planner.

There is an open bug in gnome  Bugzilla reporting that using 'O' flag
cause bad results in Planner po files:
http://bugzilla.gnome.org/show_bug.cgi?id=311409

We use this 'O' flag in GNU libc to display localized numbers in date
and time.  Needed changes have been added to fa_IR locale file in glibc.

Using this trick we have Persian digits in almost all of the gnome
programs, but since planner implemented its own time functions, using
extra flags cause bad results.

Since I have contributed similar codes to glibc, I am volunteer to
implement such feature in Planner too. There are some ways proposed in
bugzilla, and I am wondering which one is preferred by Planner
maintainers:

1. Replace ASCII digits with their equivalent in the locale.
2. Make time_format_helper() use 'O' modifier using alternative digits
defined in locale file (outdigit or alt_digits)
3. Don't use %O and define a new flag instead.
4. ?

Hamed






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]