QTfrontend/ui/page/pageoptions.cpp
changeset 13194 290815bbd4e1
parent 13193 3a110dcb6e87
child 13202 2fe85d497e0f
equal deleted inserted replaced
13193:3a110dcb6e87 13194:290815bbd4e1
   650                     entryName = loc.nativeLanguageName();
   650                     entryName = loc.nativeLanguageName();
   651                 }
   651                 }
   652                 // Fallback code, if language name is empty for some reason. This should normally not happen
   652                 // Fallback code, if language name is empty for some reason. This should normally not happen
   653                 if(entryName.isEmpty())
   653                 if(entryName.isEmpty())
   654                 {
   654                 {
   655                     if(lname == "gd")
   655                     // Show error and the locale identifier
   656                     {
   656                     entryName = tr("MISSING LANGUAGE NAME [%1]").arg(lname);
   657                         /* Workaround for Qt4: nativeLanguageName does not return correct name for Scottish Gaelic (QTBUG-59929),
       
   658                            so we have to add it ourselves :-/ */
       
   659                         entryName = QString::fromUtf8("GĂ idhlig");
       
   660                     }
       
   661                     else
       
   662                     {
       
   663                         // If all else fails, show error and the locale identifier
       
   664                         entryName = tr("MISSING LANGUAGE NAME [%1]").arg(lname);
       
   665                     }
       
   666                 }
   657                 }
   667                 CBLanguage->addItem(entryName, lname);
   658                 CBLanguage->addItem(entryName, lname);
   668             }
   659             }
   669 
   660 
   670             QLabel *restartNoticeLabel = new QLabel(groupMisc);
   661             QLabel *restartNoticeLabel = new QLabel(groupMisc);