Remove old Qt4 workaround for missing language name of Scottish Gaelic
authorWuzzy <Wuzzy2@mail.ru>
Wed, 14 Mar 2018 01:33:37 +0100
changeset 13194 290815bbd4e1
parent 13193 3a110dcb6e87
child 13195 7d9462d49d4c
Remove old Qt4 workaround for missing language name of Scottish Gaelic
QTfrontend/ui/page/pageoptions.cpp
--- a/QTfrontend/ui/page/pageoptions.cpp	Wed Mar 14 01:22:45 2018 +0100
+++ b/QTfrontend/ui/page/pageoptions.cpp	Wed Mar 14 01:33:37 2018 +0100
@@ -652,17 +652,8 @@
                 // Fallback code, if language name is empty for some reason. This should normally not happen
                 if(entryName.isEmpty())
                 {
-                    if(lname == "gd")
-                    {
-                        /* Workaround for Qt4: nativeLanguageName does not return correct name for Scottish Gaelic (QTBUG-59929),
-                           so we have to add it ourselves :-/ */
-                        entryName = QString::fromUtf8("GĂ idhlig");
-                    }
-                    else
-                    {
-                        // If all else fails, show error and the locale identifier
-                        entryName = tr("MISSING LANGUAGE NAME [%1]").arg(lname);
-                    }
+                    // Show error and the locale identifier
+                    entryName = tr("MISSING LANGUAGE NAME [%1]").arg(lname);
                 }
                 CBLanguage->addItem(entryName, lname);
             }