Changeset 148 in tspsg-svn for trunk/src


Ignore:
Timestamp:
Dec 20, 2010, 8:01:03 PM (14 years ago)
Author:
laleppa
Message:
  • Removed a prompt about turning off language autodetection when selecting a language.
  • Language name was not loaded in its menu item's status tip which caused status tip to be "Set application language to ".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mainwindow.cpp

    r144 r148  
    386386{
    387387#ifndef Q_WS_MAEMO_5
    388         if (actionSettingsLanguageAutodetect->isChecked()) {
    389                 // We have language autodetection. It needs to be disabled to change language.
    390                 if (QMessageBox::question(this, tr("Language change"), tr("You have language autodetection turned on.\nIt needs to be off.\nDo you wish to turn it off?"), QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
    391                         actionSettingsLanguageAutodetect->trigger();
    392                 } else
    393                         return;
    394         }
     388        if (actionSettingsLanguageAutodetect->isChecked())
     389                actionSettingsLanguageAutodetect->trigger();
    395390#endif
    396391bool untitled = (fileName == tr("Untitled") + ".tspt");
     
    12231218QFileInfoList langs;
    12241219QFileInfo lang;
    1225 QString name;
    12261220QStringList language, dirs;
    12271221QTranslator t;
     
    12441238                                        language.append(t.translate("--------", "COUNTRY", "Please, provide an ISO 3166-1 alpha-2 country code for this translation language here (eg., UA).").toLower());
    12451239                                        language.append(t.translate("--------", "LANGNAME", "Please, provide a native name of your translation language here."));
    1246                                         language.append(t.translate("MainWindow", "Set application language to %1", "").arg(name));
     1240                                        language.append(t.translate("MainWindow", "Set application language to %1", "").arg(language.at(2)));
    12471241
    12481242                                        langlist.insert(language.at(0), language);
Note: See TracChangeset for help on using the changeset viewer.