how to add a language in Django that its not supported by default?

2018-08-12 Thread Deniz Bazan
I m trying to make a website in 5 languages. The main language should be kurdish but it is not supported by Django default. I tried already the how to add new languages into Django?

Re: how to add a language in Django that its not supported by default?

2018-08-12 Thread Claude Paroz
Le 12. 08. 18 à 00:28, Deniz Bazan a écrit : I m trying to make a website in 5 languages. The main language should be kurdish but it is not supported by Django default. I tried already the how to add new languages into Django?

Re: how to add a language in Django that its not supported by default?

2018-08-12 Thread Deniz Bazan
Hello Claude thanks for answer, wenn i add just ('ku', gettext_noop('Kurdish')) and run the django-admin makemessages -l ku i recieve this error: *raise KeyError("Unknown language code %s." % lang_code)* *KeyError: 'Unknown language code ku.'* I hope there is a solution for this otherwise i m get

Re: how to add a language in Django that its not supported by default?

2018-08-12 Thread Claude Paroz
May I ask you which version of Django you are using? It would also be useful to have a full traceback of the error (you may need to add --traceback to the command) Try also if there is a difference with running the command with "django-admin" or with "python manage.py". Claude Le 12. 08. 1