Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 313
Pablo Avatar asked Nov 21 '25 14:11

Pablo


1 Answers

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:-(.

like image 55
Alex Martelli Avatar answered Nov 24 '25 04:11

Alex Martelli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!