Commits

Mikhail Korobov committed 964542c

Complete language list. Thanks Nakvasiuk Vasyl (aka vaXa).

Comments (0)

Files changed (4)

+Authors
+=======
+
+* Mikhail Korobov <kmike84@gmail.com>
+* Nakvasiuk Vasyl <vaxxxa@gmail.com>
 #!/usr/bin/env python
 from distutils.core import setup
 
-version='0.1'
+version='0.1.1'
 
 setup(
     name='django-vkontakte-iframe',
 from django import forms
 from django.conf import settings
 from django.utils import simplejson as json
+from vk_iframe.languages import LANGUAGES
 
 VIEWER_TYPES_GROUP = (
     (3, u'пользователь является администратором группы'),
     (0, u'пользователь не состоит в группе'),
 )
 
-LANGUAGES = (
-    (0, u'русский язык'),
-    (1, u'украинский язык'),
-    (2, u'белорусский язык'),
-    (3, u'английский язык'),
-)
-
 REFERRER_CHOICES = (
     ('menu', u'приложение запущено в результате перехода через левое меню'),
     ('wall_post_inline', 'приложение запущено через меню публикации новой записи на стене'),

vk_iframe/languages.py

+# -*- coding: utf-8 -*-
+
+LANGUAGES = (
+    (0, u"Русский"),
+    (1, u"Українська"),
+    (2, u"Беларуская (тарашкевiца)"),
+    (3, u"English"),
+    (4, u"Español"),
+    (5, u"Suomi"),
+    (6, u"Deutsch"),
+    (7, u"Italiano"),
+    (8, u"Български"),
+    (9, u"Hrvatski"),
+    (10, u"Magyar"),
+    (11, u"Српски"),
+    (12, u"Português"),
+    (14, u"Ελληνική"),
+    (15, u"Polski"),
+    (16, u"Français"),
+    (17, u"한국어"),
+    (18, u"汉语"),
+    (19, u"Lietuvių"),
+    (20, u"日本語"),
+    (21, u"Čeština"),
+    (22, u"Eesti"),
+    (53, u"Slovenčina"),
+    (54, u"Română"),
+    (55, u"Norsk"),
+    (56, u"Latviešu"),
+    (57, u"Azərbaycan"),
+    (58, u"Հայերեն"),
+    (59, u"Shqip"),
+    (60, u"Svenska"),
+    (61, u"Nederlands"),
+    (62, u"Türkmen"),
+    (63, u"ქართული"),
+    (64, u"Dansk"),
+    (65, u"O‘zbek"),
+    (66, u"Moldovenească"),
+    (68, u"ภาษาไทย"),
+    (69, u"Bahasa Indonesia"),
+    (70, u"Тоҷикӣ"),
+    (71, u"Slovenščina"),
+    (72, u"Bosanski"),
+    (73, u"Português brasileiro"),
+    (74, u"پارسی"),
+    (75, u"Việt Nam"),
+    (76, u"हिन्दी"),
+    (77, u"සිංහල"),
+    (78, u"বাংলা Bāṇlā"),
+    (79, u"Tagalog"),
+    (80, u"Монгол"),
+    (81, u"ဗမာစာ"),
+    (82, u"Türkçe"),
+    (83, u"नेपाली"),
+    (85, u"اردو"),
+    (86, u"Bahasa Melayu"),
+    (87, u"Кыргыз тили"),
+    (90, u"پنجابی"),
+    (91, u"Иронау"),
+    (94, u"ಕನ್ನಡ"),
+    (95, u"Kiswahili"),
+    (97, u"Қазақша"),
+    (98, u"العربية"),
+    (99, u"עברית"),
+    (100, u"Дореволюцiонный"),
+    (102, u"Адыгэбзэ"),
+    (777, u"В Союзе"),
+)