diff --git a/source/third_party/tinygettext/src/dictionary.cpp b/source/third_party/tinygettext/src/dictionary.cpp index ee7c943f05..2f1875c096 100644 --- a/source/third_party/tinygettext/src/dictionary.cpp +++ b/source/third_party/tinygettext/src/dictionary.cpp @@ -165,7 +165,7 @@ void Dictionary::add_translation(const std::string& msgid, const std::string& msgstr) { std::vector& vec = entries[msgid]; - if (vec.empty()) + if (vec.empty() || msgstr.compare(vec[0]) == 0) { vec.push_back(msgstr); }