summaryrefslogtreecommitdiff
path: root/src/languages
diff options
context:
space:
mode:
authorMaia Kozheva <sikon@ubuntu.com>2009-11-20 18:22:19 +0600
committerMaia Kozheva <sikon@ubuntu.com>2009-11-20 18:22:19 +0600
commit263b32f108c15cd1c55a8f4eb4704fac6553f1ac (patch)
tree1c49e7848aa2d3d64a9d9b96b8852cb1884da2f7 /src/languages
Imported Upstream version 0.6.8
Diffstat (limited to 'src/languages')
-rw-r--r--src/languages/list.txt164
-rw-r--r--src/languages/main.cpp30
-rw-r--r--src/languages/process_list.pro1
3 files changed, 195 insertions, 0 deletions
diff --git a/src/languages/list.txt b/src/languages/list.txt
new file mode 100644
index 0000000..64768c5
--- /dev/null
+++ b/src/languages/list.txt
@@ -0,0 +1,164 @@
+aa Afar
+ab Abkhazian
+af Afrikaans
+am Amharic
+ar Arabic
+as Assamese
+ay Aymara
+az Azerbaijani
+
+ba Bashkir
+be Byelorussian
+bg Bulgarian
+bh Bihari
+bi Bislama
+bn Bengali; Bangla
+bo Tibetan
+br Breton
+
+ca Catalan
+co Corsican
+cs Czech
+cy Welsh
+
+da Danish
+de German
+dz Bhutani
+
+el Greek
+en English
+eo Esperanto
+es Spanish
+et Estonian
+eu Basque
+
+fa Persian
+fi Finnish
+fj Fiji
+fo Faroese
+fr French
+fy Frisian
+
+ga Irish
+gd Scots Gaelic
+gl Galician
+gn Guarani
+gu Gujarati
+
+ha Hausa
+he Hebrew (formerly iw)
+hi Hindi
+hr Croatian
+hu Hungarian
+hy Armenian
+
+ia Interlingua
+id Indonesian (formerly in)
+ie Interlingue
+ik Inupiak
+is Icelandic
+it Italian
+iu Inuktitut
+
+ja Japanese
+jw Javanese
+
+ka Georgian
+kk Kazakh
+kl Greenlandic
+km Cambodian
+kn Kannada
+ko Korean
+ks Kashmiri
+ku Kurdish
+ky Kirghiz
+
+la Latin
+ln Lingala
+lo Laothian
+lt Lithuanian
+lv Latvian, Lettish
+
+mg Malagasy
+mi Maori
+mk Macedonian
+ml Malayalam
+mn Mongolian
+mo Moldavian
+mr Marathi
+ms Malay
+mt Maltese
+my Burmese
+
+na Nauru
+ne Nepali
+nl Dutch
+no Norwegian
+
+oc Occitan
+om (Afan) Oromo
+or Oriya
+
+pa Punjabi
+pl Polish
+ps Pashto, Pushto
+pt Portuguese
+
+qu Quechua
+
+rm Rhaeto-Romance
+rn Kirundi
+ro Romanian
+ru Russian
+rw Kinyarwanda
+
+sa Sanskrit
+sd Sindhi
+sg Sangho
+sh Serbo-Croatian
+si Sinhalese
+sk Slovak
+sl Slovenian
+sm Samoan
+sn Shona
+so Somali
+sq Albanian
+sr Serbian
+ss Siswati
+st Sesotho
+su Sundanese
+sv Swedish
+sw Swahili
+
+ta Tamil
+te Telugu
+tg Tajik
+th Thai
+ti Tigrinya
+tk Turkmen
+tl Tagalog
+tn Setswana
+to Tonga
+tr Turkish
+ts Tsonga
+tt Tatar
+tw Twi
+
+ug Uighur
+uk Ukrainian
+ur Urdu
+uz Uzbek
+
+vi Vietnamese
+vo Volapuk
+
+wo Wolof
+
+xh Xhosa
+
+yi Yiddish (formerly ji)
+yo Yoruba
+
+za Zhuang
+zh Chinese
+zu Zulu
diff --git a/src/languages/main.cpp b/src/languages/main.cpp
new file mode 100644
index 0000000..40bc6e1
--- /dev/null
+++ b/src/languages/main.cpp
@@ -0,0 +1,30 @@
+#include <QFile>
+#include <QRegExp>
+#include <stdio.h>
+
+int main( int argc, char ** argv )
+{
+ QFile file("list.txt");
+ if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
+ return -1;
+
+ QRegExp rx("^([a-zA-Z]+) ([a-zA-Z\\-]+)");
+
+ QString line;
+ while (!file.atEnd()) {
+ line = QString(file.readLine()).simplified();
+ if (!line.isEmpty()) {
+ //qDebug("%s", line.toLatin1().constData());
+ if (rx.indexIn(line) > -1) {
+ QString s1 = rx.cap(1);
+ QString s2 = rx.cap(2);
+ //qDebug("code: %s, language: %s", s1.toLatin1().constData(), s2.toLatin1().constData());
+ printf("\tl[\"%s\"] = tr(\"%s\");\n", s1.toLatin1().constData(), s2.toLatin1().constData());
+ }
+ }
+ }
+ file.close();
+
+ return 0;
+}
+
diff --git a/src/languages/process_list.pro b/src/languages/process_list.pro
new file mode 100644
index 0000000..28dcadc
--- /dev/null
+++ b/src/languages/process_list.pro
@@ -0,0 +1 @@
+SOURCES += main.cpp