Skip to content

Commit

Permalink
- Added German language to the combo-box
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11713 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 11, 2012
1 parent a09de84 commit 7fd8f05
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions OMEdit/OMEditGUI/OptionsWidget.cpp
Expand Up @@ -558,9 +558,18 @@ GeneralSettingsPage::GeneralSettingsPage(OptionsWidget *pParent)
mpLanguageLabel = new QLabel(tr("Language:"));
mpLanguageComboBox = new QComboBox;
mpLanguageComboBox->addItem(tr("Auto Detected"), "");
mpLanguageComboBox->addItem(tr("English"), "en");
mpLanguageComboBox->addItem(tr("Russian"), "ru");
mpLanguageComboBox->addItem(tr("Swedish"), "sv");
/* Slow sorting, but works using regular Qt functions */
QMap<QString,QString> map;
map.insert(tr("English"), "en");
map.insert(tr("German"), "de");
map.insert(tr("Russian"), "ru");
map.insert(tr("Swedish"), "sv");
QStringList keys(map.keys());
keys.sort();
foreach (const QString &key, keys) {
mpLanguageComboBox->addItem(key,map[key]);
}

// Plotting View Mode
mpPlottingViewModeLabel = new QLabel(tr("Plotting View Mode:"));
mpTabbedViewRadioButton = new QRadioButton(tr("Tabbed View"));
Expand Down

0 comments on commit 7fd8f05

Please sign in to comment.