Skip to content Skip to sidebar Skip to footer

Adding A Custom Language To Django

I'm translating my website into the 24 languages of the European Union. These include the 'Malti' language, that is not listed in django default supported languages. I would like t

Solution 1:

  1. I found the solution, you have to manually add a folder in /django/conf/locale/ with the language extension you want. Actually you can just copy past the en (english) folder and name it after the missing language (in my case mt).

  2. In this folder you can also edit the file formats.py to localize the dates, numbers etc.

  3. Restart django and your language will be natively supported.

Post a Comment for "Adding A Custom Language To Django"