More localization fixes

This commit is contained in:
Juergen Spitzmueller 2019-06-26 12:25:53 +02:00
parent 99d2b803e6
commit cd5c406d9a

View File

@ -1012,9 +1012,9 @@ GuiDocument::GuiDocument(GuiView & lv)
|| utf8_base_encodings.contains(toqstr(encvar.name())))
continue;
if (std::string(encvar.name()).find("utf8") == 0)
encodingmap_utf8.insert(toqstr(encvar.guiName()), toqstr(encvar.name()));
encodingmap_utf8.insert(qt_(encvar.guiName()), toqstr(encvar.name()));
else
encodingmap.insert(toqstr(encvar.guiName()), toqstr(encvar.name()));
encodingmap.insert(qt_(encvar.guiName()), toqstr(encvar.name()));
}
for (auto const & i : encodingmap_utf8.keys()) {
langModule->unicodeEncodingCO->addItem(i, encodingmap_utf8.value(i));