Skip to content

Commit

Permalink
Config: Convert language name to lower case
Browse files Browse the repository at this point in the history
See: issue #1474
  • Loading branch information
dscharrer committed Jul 5, 2020
1 parent cdc1895 commit 4e7e00e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Config.cpp
Expand Up @@ -23,6 +23,7 @@
#include <algorithm>
#include <sstream>

#include <boost/algorithm/string/case_conv.hpp>
#include <boost/preprocessor/stringize.hpp>

#include "input/Input.h"
Expand Down Expand Up @@ -584,6 +585,7 @@ bool Config::init(const fs::path & file) {

// Get locale language
language = reader.getKey(Section::Language, Key::language, Default::language);
boost::to_lower(language);

// Get video settings
video.renderer = reader.getKey(Section::Video, Key::renderer, Default::renderer);
Expand Down

0 comments on commit 4e7e00e

Please sign in to comment.