File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -144,14 +144,13 @@ void Translations::loadTranslation(const std::string &data)
144144 }
145145
146146 std::wstring oword1 = word1.str (), oword2 = word2.str ();
147- if (oword2.empty ()) {
148- oword2 = oword1;
149- errorstream << " Ignoring empty translation for \" "
150- << wide_to_utf8 (oword1) << " \" " << std::endl;
147+ if (!oword2.empty ()) {
148+ std::wstring translation_index = textdomain + L" |" ;
149+ translation_index.append (oword1);
150+ m_translations[translation_index] = oword2;
151+ } else {
152+ infostream << " Ignoring empty translation for \" "
153+ << wide_to_utf8 (oword1) << " \" " << std::endl;
151154 }
152-
153- std::wstring translation_index = textdomain + L" |" ;
154- translation_index.append (oword1);
155- m_translations[translation_index] = oword2;
156155 }
157156}
You can’t perform that action at this time.
0 commit comments