Matches found for tag 'Babel': 3
13 November 2019 Updated 15 November 2019 by Peter
How to implement Flask multilanguage is explained in the Flask docs, see links below. But this is just a starting point. You need deeper understanding of the process to handle special cases like falling back to a default language, language switching, and the 404 Page Not Found exception. Assumptions In the remainder of this post we are using a language code, 'lang_code', that is available in the ...
14 August 2019 Updated 14 August 2019 by Peter
This post is about editing code, a lot of editing, huge amounts of editing! When you implement much functionality, you notice things that need attention, things that need you to research, how do others do this, what is the plural of certain words, etc. I maintain a todo list and every time I noticed something that needed attention I added it to this list. The list got too big so I decided to stop adding ...
7 August 2019 Updated 30 August 2019 by Peter
With a single language there is not really a problem, we just forget about the rest of the world and build our single language Flask application. We start getting a headache when the website must support multiple languages. What exactly is a website supporting multiple languages? How many languages will be supported, and which languages? For English there are for example en-GB and en-US. Which parts ...
- Docker containers suddenly using 192.168.0.0/16 instead of 172.17.0.0/16: services lost
- Two Flask apps, frontend and admin, on one domain using DispatcherMiddleware
- ISPConfig: running a Python Flask Docker container as a jailed Shell User
- Adding url_for() links to Jinja templates of a Flask multilanguage website
- Refining multilanguage: adding language fallback as an option
- Converting to a multilanguage database