summaryrefslogtreecommitdiff
path: root/src/utils/langs.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-18 14:37:36 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-18 14:49:53 +0300
commitbe7d563ba1e0b20cfe397f2cf4da6f7e3df78d22 (patch)
treef26591cf82914d30853a1a0d556742c5ec801de8 /src/utils/langs.cpp
parent9f89a15fbcaf3f24f4c941b7061979e424d6384a (diff)
downloadManaVerse-be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22.tar.gz
ManaVerse-be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22.tar.bz2
ManaVerse-be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22.tar.xz
ManaVerse-be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22.zip
Simplify reading values from config.
Diffstat (limited to 'src/utils/langs.cpp')
-rw-r--r--src/utils/langs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/langs.cpp b/src/utils/langs.cpp
index bc2837a27..0b97921fa 100644
--- a/src/utils/langs.cpp
+++ b/src/utils/langs.cpp
@@ -34,7 +34,7 @@ LangVect getLang()
{
LangVect langs;
- std::string lang = config.getValue("lang", "").c_str();
+ std::string lang = config.getStringValue("lang").c_str();
if (lang.empty())
{
const char *const lng = getenv("LANG");
@@ -55,7 +55,7 @@ LangVect getLang()
std::string getLangSimple()
{
- std::string lang = config.getValue("lang", "").c_str();
+ std::string lang = config.getStringValue("lang").c_str();
if (lang.empty())
{
const char *const lng = getenv("LANG");
@@ -68,7 +68,7 @@ std::string getLangSimple()
std::string getLangShort()
{
- std::string lang = config.getValue("lang", "").c_str();
+ std::string lang = config.getStringValue("lang").c_str();
if (lang.empty())
{
const char *const lng = getenv("LANG");