I work on a project where we want to have multilingual site. We start with two languages defined in settings.py I am not the programmer doing the work but if I understood correctly all we need is to be able to add – for example – French language for the whole website but not via setting.py but Django admin web
Tag: internationalization
Internationalization (i18n) not rendered using flask-babel and apache with mod_wsgi on Ubuntu instance
I have a web application developed using python 2.7.6, flask and deployed on a Apache Ubuntu server. For internationalization, the app uses the flask-babel package in order to translate into Thai. However, it seems that my translations/th/LC_messages/messages.po file is ignored. It works perfectly in my localhost but not in the server. To force the selection of the locale, I use
universal python library for internalization and translation
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? Answer Babel
How to enable timezones with babel in my jinja filter?
I want to use timezones according to the babel locale. How can I achieve this? The specific situation I have is the goal of displaying the date and time of an article and a humanized and localized way eg: Yesterday 13:21 or if the Swedish language parameter is set it will display Igår 13:21 And if the date wasn’t yesterday
How to sort collections based on current user locale on a Django site
I need to sort a collection of objects by a utf-8 string property (built via ActiveRecord). Currently the code is sorting by ASCII order via the order_by method, however this needs to be changed to locale.strcoll. Unfortunately using the built in locale functionality requires changing the culture for the entire application, not just the current request. I’ve looked at the