diff options
author | Kevin Smith <git@kismith.co.uk> | 2013-04-04 18:47:35 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2013-04-04 18:47:35 (GMT) |
commit | 1924342540d855d07eadb564ad997df1345fb115 (patch) | |
tree | 1516a1267f8019168317542114430abc6f0a2897 /Swift | |
parent | dfa83363f4f8c8faa77be4c410d960a4cf39ec43 (diff) | |
download | swift-1924342540d855d07eadb564ad997df1345fb115.zip swift-1924342540d855d07eadb564ad997df1345fb115.tar.bz2 |
Use traditional tr() calls because the constant isn't present in Qt5
Change-Id: If1c394e4da9a6cefe1e2365b8882e9b3930c7a96
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/QtTextEdit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtTextEdit.cpp b/Swift/QtUI/QtTextEdit.cpp index d1a75dd..2c4677e 100644 --- a/Swift/QtUI/QtTextEdit.cpp +++ b/Swift/QtUI/QtTextEdit.cpp @@ -141,7 +141,7 @@ void QtTextEdit::contextMenuEvent(QContextMenuEvent* event) { QTextCursor cursor = cursorForPosition(event->pos()); #ifdef HAVE_SPELLCHECKER QAction* insertPoint = menu->actions().first(); - QAction* settingsAction = new QAction(QApplication::translate("QtTextEdit", "Spell Checker Options", 0, QApplication::UnicodeUTF8), menu); + QAction* settingsAction = new QAction(tr("Spell Checker Options"), menu); menu->insertAction(insertPoint, settingsAction); menu->insertAction(insertPoint, menu->addSeparator()); addSuggestions(menu, event); @@ -176,7 +176,7 @@ void QtTextEdit::addSuggestions(QMenu* menu, QContextMenuEvent* event) std::vector<std::string> wordList; checker_->getSuggestions(Q2PSTRING(cursor.selectedText()), wordList); if (wordList.size() == 0) { - QAction* noSuggestions = new QAction(QApplication::translate("QtTextEdit", "No Suggestions", 0, QApplication::UnicodeUTF8), menu); + QAction* noSuggestions = new QAction(tr("No Suggestions"), menu); noSuggestions->setDisabled(true); menu->insertAction(insertPoint, noSuggestions); } |