Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
languages: Added list of ISO 639-1 language codes
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 6 Mar 2017 11:13:37 +0000 (11:13 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 6 Mar 2017 11:13:37 +0000 (11:13 +0000)
source/common/languages.cpp [new file with mode: 0644]
source/common/languages.h [new file with mode: 0644]

diff --git a/source/common/languages.cpp b/source/common/languages.cpp
new file mode 100644 (file)
index 0000000..fd23d75
--- /dev/null
@@ -0,0 +1,65 @@
+// language.cpp - Languages list subroutines
+//
+// (c) 2012-2017 Xestia Software Development.
+//
+// This file is part of Xestia Address Book.
+//
+// Xestia Address Book is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by the
+// Free Software Foundation, version 3 of the license.
+//
+// Xestia Address Book is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
+
+#include "languages.h"
+
+using namespace std;
+
+vector<string> GetLanguageCodeList()
+{
+       
+       string LanguageList[] = {
+               
+               "ab", "aa", "ae", "af", "ak", "am", "an", "ar", "as", "av", "ay", "az",
+               "ba", "be", "bg", "bh", "bi", "bm", "bn", "bo", "br",
+               "ca", "ce", "ch", "co", "cr", "cs", "cu", "cv", "cy",
+               "da", "de", "dv", "dz",
+               "ee", "el", "en", "eo", "es", "et", "eu",
+               "fa", "ff", "fi", "fj", "fo", "fr", "fy",
+               "ga", "gd", "gl", "gn", "gu", "gv",
+               "ha", "he", "hi", "ho", "hr", "ht", "hu", "hy", "hz",
+               "ia", "id", "ie", "ig", "ii", "ik", "io", "is", "it", "iu",
+               "ja", "jv",
+               "ka", "kg", "ki", "kj", "kk", "kl", "km", "kn", "ko", "kr", "ks",
+               "ku", "kv", "kw", "ky",
+               "la", "lb", "lg", "li", "ln", "lo", "lt", "lu", "lv",
+               "mg", "mh", "mi", "mk", "ml", "mn", "mr", "ms", "mt", "my",
+               "na", "nb", "nd", "ne", "ng", "nl", "nn", "no", "nr", "nv", "ny",
+               "oc", "oj", "om", "or", "os", 
+               "pa", "pi", "pl", "ps", "pt"
+               "qu", 
+               "rm", "rn", "ro", "ru", "rw",
+               "sa", "sc", "sd", "se", "sg", "si", "sk", "sl", "sm", "sn", "so", "sq", 
+               "sr", "ss", "st", "su", "sv", "sw",
+               "ta", "te", "tg", "th", "ti", "tk", "tl", "tn", "to", "tr", "ts", "tt",
+               "tw", "ty",
+               "ug", "uk", "ur", "uz",
+               "ve", "vi", "vo", "wa", "wo"
+               "xh",
+               "yi", "yo",
+               "za", "zh", "zu"
+               
+       };
+
+       vector<string> LanguageCodeList;
+       
+       LanguageCodeList.insert(LanguageCodeList.begin(), LanguageList, LanguageList+181);
+       
+       return LanguageCodeList;
+       
+}
\ No newline at end of file
diff --git a/source/common/languages.h b/source/common/languages.h
new file mode 100644 (file)
index 0000000..13f6f55
--- /dev/null
@@ -0,0 +1,22 @@
+// language.h - Languages list subroutines header
+//
+// (c) 2012-2017 Xestia Software Development.
+//
+// This file is part of Xestia Address Book.
+//
+// Xestia Address Book is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by the
+// Free Software Foundation, version 3 of the license.
+//
+// Xestia Address Book is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
+
+#include <vector>
+#include <string>
+
+std::vector<std::string> GetLanguageCodeList();
\ No newline at end of file
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy