1 // language.cpp - Languages list subroutines
3 // (c) 2012-2017 Xestia Software Development.
5 // This file is part of Xestia Address Book.
7 // Xestia Address Book is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by the
9 // Free Software Foundation, version 3 of the license.
11 // Xestia Address Book is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
19 #include "languages.h"
23 vector<string> GetLanguageCodeList()
26 string LanguageList[] = {
28 "ab", "aa", "ae", "af", "ak", "am", "an", "ar", "as", "av", "ay", "az",
29 "ba", "be", "bg", "bh", "bi", "bm", "bn", "bo", "br",
30 "ca", "ce", "ch", "co", "cr", "cs", "cu", "cv", "cy",
31 "da", "de", "dv", "dz",
32 "ee", "el", "en", "eo", "es", "et", "eu",
33 "fa", "ff", "fi", "fj", "fo", "fr", "fy",
34 "ga", "gd", "gl", "gn", "gu", "gv",
35 "ha", "he", "hi", "ho", "hr", "ht", "hu", "hy", "hz",
36 "ia", "id", "ie", "ig", "ii", "ik", "io", "is", "it", "iu",
38 "ka", "kg", "ki", "kj", "kk", "kl", "km", "kn", "ko", "kr", "ks",
39 "ku", "kv", "kw", "ky",
40 "la", "lb", "lg", "li", "ln", "lo", "lt", "lu", "lv",
41 "mg", "mh", "mi", "mk", "ml", "mn", "mr", "ms", "mt", "my",
42 "na", "nb", "nd", "ne", "ng", "nl", "nn", "no", "nr", "nv", "ny",
43 "oc", "oj", "om", "or", "os",
44 "pa", "pi", "pl", "ps", "pt"
46 "rm", "rn", "ro", "ru", "rw",
47 "sa", "sc", "sd", "se", "sg", "si", "sk", "sl", "sm", "sn", "so", "sq",
48 "sr", "ss", "st", "su", "sv", "sw",
49 "ta", "te", "tg", "th", "ti", "tk", "tl", "tn", "to", "tr", "ts", "tt",
51 "ug", "uk", "ur", "uz",
52 "ve", "vi", "vo", "wa", "wo",
59 vector<string> LanguageCodeList;
61 LanguageCodeList.insert(LanguageCodeList.begin(), LanguageList, LanguageList+181);
63 return LanguageCodeList;