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. 18 à 22:16, Deniz Bazan a écrit :
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 getting crazy.
On Sun, Aug 12, 2018 at 9:34 PM Claude Paroz <[email protected]
<mailto:[email protected]>> wrote:
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?
>
<https://stackoverflow.com/questions/12946830/how-to-add-new-languages-into-django-my-language-uyghur-or-uighur-is-not-su/>
>
> but it didnt work for me. I receive an error mesagge
Hi Deniz,
I don't think you need any sophisticated method to do that. Just add
your language to the LANGUAGES setting and it should work.
LANGUAGES = [
('ku', gettext_noop('Kurdish')),
#... other languages
]
But of course, the best would be to provide a Kurdish translation for
Django itself.
There is already a Central Kurdish (Sorani) language team, but
unfortunately without translations yet:
https://www.transifex.com/django/django/language/ckb/
Talk to me if your Kurdish variant is not Sorani and you are ready to
provide translations.
Blessings,
Claude
--
www.2xlibre.net <http://www.2xlibre.net>
--
Mit freundlichen Grüßen
*Deniz Bazan*
Web Entwickler
Filmmaker, Cutter, 3D Artist
Tel:+49 163 133 68 00
http://denizbazan.jimdo.com <http://denizbazan.jimdo.com/>
--
You received this message because you are subscribed to the Google
Groups "Django internationalization and localization" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/django-i18n.
For more options, visit https://groups.google.com/d/optout.
--
www.2xlibre.net
--
You received this message because you are subscribed to the Google Groups "Django
internationalization and localization" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-i18n.
For more options, visit https://groups.google.com/d/optout.