Ignore empty key localized strings.
This commit is contained in:
parent
bbd218d5fc
commit
b0817fcad2
|
@ -31,6 +31,8 @@ void LocalizationFile::LoadFile(const std::filesystem::path& path) {
|
|||
std::stringstream linestream(line);
|
||||
std::getline(linestream, key, sep);
|
||||
std::getline(linestream, value, sep);
|
||||
if (key.empty())
|
||||
continue;
|
||||
_map[key] = value;
|
||||
}
|
||||
file.close();
|
||||
|
|
Loading…
Reference in New Issue