Skip language file entries starting with !
This commit is contained in:
parent
90e4e41b85
commit
43ea69447f
@ -122,14 +122,16 @@ bool MultiLangMgr::load (const Glib::ustring& fname, MultiLangMgr* fallbackMgr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::map<std::string, Glib::ustring> translations;
|
std::map<std::string, Glib::ustring> translations;
|
||||||
std::string entry, key, value;
|
std::string entry;
|
||||||
|
|
||||||
while (std::getline(file, entry)) {
|
while (std::getline(file, entry)) {
|
||||||
|
|
||||||
if (entry.empty () || entry.front () == '#') {
|
if (entry.empty() || entry.front() == '#' || entry.front() == '!') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string key, value;
|
||||||
|
|
||||||
std::istringstream line(entry);
|
std::istringstream line(entry);
|
||||||
|
|
||||||
if (!std::getline(line, key, ';') || !std::getline(line, value)) {
|
if (!std::getline(line, key, ';') || !std::getline(line, value)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user