Changeset b59e2ea0b1 in tspsg for src


Ignore:
Timestamp:
Dec 20, 2010, 8:01:03 PM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
9eb63a1598
Parents:
ac9ff7c0f1
git-author:
Oleksii Serdiuk <contacts@…> (12/20/10 20:01:03)
git-committer:
Oleksii Serdiuk <contacts@…> (06/29/12 19:45:58)
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
  • src/mainwindow.cpp

    rac9ff7c0f1 rb59e2ea0b1  
    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.