1
1
forked from 0ad/0ad
This was SVN commit r16140.
This commit is contained in:
leper 2015-01-11 19:14:03 +00:00
parent 95fa46304f
commit 8fc14655b5

View File

@ -165,11 +165,11 @@ void
Dictionary::add_translation(const std::string& msgid, const std::string& msgstr) Dictionary::add_translation(const std::string& msgid, const std::string& msgstr)
{ {
std::vector<std::string>& vec = entries[msgid]; std::vector<std::string>& vec = entries[msgid];
if (vec.empty() || msgstr.compare(vec[0]) == 0) if (vec.empty())
{ {
vec.push_back(msgstr); vec.push_back(msgstr);
} }
else else if (vec[0] != msgstr)
{ {
log_warning << "collision in add_translation: '" log_warning << "collision in add_translation: '"
<< msgid << "' -> '" << msgstr << "' vs '" << vec[0] << "'" << std::endl; << msgid << "' -> '" << msgstr << "' vs '" << vec[0] << "'" << std::endl;