开发者

Python internationalization, local setting independent

I need the return of a strftime() call being in a language different at the one set on my local machine/OS. Is that 开发者_运维问答possible to choose the language of the return?


For solid i18n/L10N, usable by a server which must serve different localizations within the same run, I keep recommending PyICU, the Python layer on top of ICU, the International Components for Unicode open-source package. Other approaches tend to be pretty limited and fragile:-(.


Try the babel library: http://babel.edgewall.org/wiki/Documentation/dates.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜