[cl-l10n-devel] cldr refactoring/experiment

Attila Lendvai attila.lendvai at gmail.com
Sat Nov 15 20:46:20 UTC 2008


> At a quick glance the only thing that i found noticeably missing was the
> ability to pass in
> custom formatting strings to %format-date and
> format-date/gregorian-calendar.
> Come to think of it, it would be nice to be able to pass these in to all the
> formatting functions.

fyi, i've pushed a patch that adds a :pattern keyword arg for most of
the formatters (except the currency formatter, which is a bit
half-done for now).

with this patch you can do things like the following for a 5x speed
and 10 times consing penalty:

(cl-l10n::format-date/gregorian-calendar nil (local-time:now) :pattern
"yyyy 'foo' MMMM 'bar' dd")

"2008 foo November bar 15"

-- 
 attila




More information about the cl-l10n-devel mailing list