Changeset 148 in tspsg-svn
- Timestamp:
- Dec 20, 2010, 8:01:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mainwindow.cpp
r144 r148 386 386 { 387 387 #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(); 395 390 #endif 396 391 bool untitled = (fileName == tr("Untitled") + ".tspt"); … … 1223 1218 QFileInfoList langs; 1224 1219 QFileInfo lang; 1225 QString name;1226 1220 QStringList language, dirs; 1227 1221 QTranslator t; … … 1244 1238 language.append(t.translate("--------", "COUNTRY", "Please, provide an ISO 3166-1 alpha-2 country code for this translation language here (eg., UA).").toLower()); 1245 1239 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))); 1247 1241 1248 1242 langlist.insert(language.at(0), language);
Note: See TracChangeset
for help on using the changeset viewer.