I need to internationalize and translate python application. I look forward for some dictionary collection resides in additional resource files that could be switched runtime and used smoothly inside python code.
I’ve searched stackoverflow.com for similar tools but find only platform-specific libraries, e.g. for pylons, for django and so on.
Is there any general ready for use library?
Babel provides such tools:
So it helps you translate strings and provide localized float, currency, dates and other information based on a current locale:
It builds on top of the default
gettextlibrary to do translations, giving you tools to extract messages from a variety of source files (python, templates, etc), including a plugin-system for other packages to provide additional extractors.