What is the link to find the list of languages i.e, language_code
(Swedish,sv)
(English,en) ..........
Please provide the link
Thanks..
What is the link to find the list of languages i.e, language_code
(Swedish,sv)
(English,en) ..........
Please provide the link
Thanks..
If you want something you can use from within django, try:
from django.conf.global_settings import LANGUAGES
this will be in the format above, making it perfect for assignment in one of your models choices= fields. (i.e. user_language = models.CharField(max_length=4, choices=LANGUAGES))
LANGUAGES = (
('ar', gettext_noop('Arabic')),
('bg', gettext_noop('Bulgarian')),
('bn', gettext_noop('Bengali')),
etc....
)