Skip language file entries starting with !

This commit is contained in:
heckflosse 2017-10-16 21:54:09 +02:00
parent 90e4e41b85
commit 43ea69447f

View File

@ -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)) {