Hello, I noticed that we don't use the locale module in freevo. There's any reason? Using locale is simple and we win a lot of i18n stuff! We could also determine encoding more easily.
To use, just add to the initial module: from locale import * setlocale( LC_ALL, "" ) Then, if you do something like: print time.strftime( "%X %x", time.localtime() ) You get the "time date" in locale's format! In us it returns "HH:MM [AM|PM]", in brazil it returns "HH:MM" (24hs)... if you use %b, the Month abbr. is already translated. I would like to suggest that date-time always use %X and %x, or (better choice) we should provide a way user can specify the format to use in config. (Many people doesn't like 24hs format, even their country using it) Also, the config.encoding stuff could be replaced and instead of using os.environ[ "LC_ALL" ], ... we could just call getlocale()! And we could give setlocale() the second parameter as being FREEVO_LOCALE, it it exists. So, what do you think? Gustavo ______________________________________________________________________ Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora: http://br.yahoo.com/info/mail.html ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel