Changeset b59e2ea0b1 in tspsg for src
- Timestamp:
- Dec 20, 2010, 8:01:03 PM (14 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mainwindow.cpp
rac9ff7c0f1 rb59e2ea0b1 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.