summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-05 17:30:36 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-05 17:30:36 +0300
commit261ff1fa32cb75254d68d214f13f8a5aaec33962 (patch)
tree461b674931ab400352360dbfccf3d11ca3a480a6 /src/utils/stringutils.cpp
parentece36a40d4e9a838cde01075d7681b8fc517b19f (diff)
downloadplus-261ff1fa32cb75254d68d214f13f8a5aaec33962.tar.gz
plus-261ff1fa32cb75254d68d214f13f8a5aaec33962.tar.bz2
plus-261ff1fa32cb75254d68d214f13f8a5aaec33962.tar.xz
plus-261ff1fa32cb75254d68d214f13f8a5aaec33962.zip
Move language functions to langs.cpp and langs.h files.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 08bcac9e6..b07a4e367 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -486,62 +486,6 @@ std::string combineDye2(std::string file, std::string dye)
}
}
-std::vector<std::string> getLang()
-{
- std::vector<std::string> langs;
-
- std::string lang = config.getValue("lang", "").c_str();
- if (lang.empty())
- {
- char *lng = getenv("LANG");
- if (!lng)
- return langs;
- lang = lng;
- }
-
- int dot = lang.find(".");
- if (dot != (signed)std::string::npos)
- lang = lang.substr(0, dot);
- langs.push_back(lang);
- dot = lang.find("_");
- if (dot != (signed)std::string::npos)
- langs.push_back(lang.substr(0, dot));
- return langs;
-}
-
-std::string getLangSimple()
-{
- std::string lang = config.getValue("lang", "").c_str();
- if (lang.empty())
- {
- char *lng = getenv("LANG");
- if (!lng)
- return "";
- return lng;
- }
- return lang;
-}
-
-std::string getLangShort()
-{
- std::string lang = config.getValue("lang", "").c_str();
- if (lang.empty())
- {
- char *lng = getenv("LANG");
- if (!lng)
- return "";
- lang = lng;
- }
-
- int dot = lang.find(".");
- if (dot != (signed)std::string::npos)
- lang = lang.substr(0, dot);
- dot = lang.find("_");
- if (dot != (signed)std::string::npos)
- return lang.substr(0, dot);
- return lang;
-}
-
std::string packList(std::list<std::string> &list)
{
std::list<std::string>::const_iterator i = list.begin();