[PATCH] Panel Clock Improvements: I18N tooltip, calender popup

Oliver M. Bolzer oliver at fakeroot.net
Thu Dec 4 14:01:26 CET 2003


# Moderator: sorry for troubling you with sending from the wrong
# address first

On Thu, Dec 04, 2003 at 09:33:57AM +0100, Jasper Huijsmans <jasper at moongroup.com> wrote...
> > - Calender Popup when clicking on the clock
 
> I'm not sure. I was thinking about running xfcalendar from the clock.
> That would give you additional appointments.

How about making it a fallback if xfcalender is not installed ?
The code is not big. Also, if xfcalendar is used, *I* *really* prefer
it popping up without a window border. The menu could be displayed
on right-click. But that's a personal opinion.
 
> Excellent. I did already make the panel use strftime in CVS, but your
> patch is much more thorough, since I forgot the conversion to utf8 ;-)
> Btw, the utf8date string must be freed afterwards.

Oops. Seems like I am spending too much time with convenient languages,
especially Ruby :-)
 
> However, I don't like the date represented in the numeric format, so I
> guess the only way to do this is let translators change the format
> string. I believe xffm does this as well. Are there any other options?

In most locales, D_FMT is a terse format. Unfortunately, there is no
D_FMT_LONG or D_FMT_VERB :-(.  On glibc systems there is _DATE_FMT
that defines the format used by date(1), which could be used after
filtering out unneccersary fields like timezone and time, but that's
ugly and unportable. Looks like strftime() with _(date_format) is the 
only viable option. 
-- 
	Oliver M. Bolzer
	oliver at gol.com

GPG (PGP) Fingerprint = 621B 52F6 2AC1 36DB 8761  018F 8786 87AD EF50 D1FF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20031204/40525742/attachment.pgp>


More information about the Xfce4-dev mailing list