parent
95fa46304f
commit
8fc14655b5
@ -165,11 +165,11 @@ void
|
||||
Dictionary::add_translation(const std::string& msgid, const std::string& msgstr)
|
||||
{
|
||||
std::vector<std::string>& vec = entries[msgid];
|
||||
if (vec.empty() || msgstr.compare(vec[0]) == 0)
|
||||
if (vec.empty())
|
||||
{
|
||||
vec.push_back(msgstr);
|
||||
}
|
||||
else
|
||||
else if (vec[0] != msgstr)
|
||||
{
|
||||
log_warning << "collision in add_translation: '"
|
||||
<< msgid << "' -> '" << msgstr << "' vs '" << vec[0] << "'" << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user