From a60389b0a59a01518ae60327dedace2da103e644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mladen=20Pejakovi=C4=87?= Date: Mon, 9 Jan 2012 22:53:08 +0100 Subject: [PATCH] Added Wiktionary back and renamed Translate menu item --- src/webview/webview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webview/webview.cpp b/src/webview/webview.cpp index 8a8683df2..8fb480e62 100644 --- a/src/webview/webview.cpp +++ b/src/webview/webview.cpp @@ -566,7 +566,8 @@ void WebView::contextMenuEvent(QContextMenuEvent* event) QString langCode = mApp->getActiveLanguage().left(2); QUrl googleTranslateUrl = QUrl(QString("http://translate.google.com/#auto|%1|%2").arg(langCode, selectedText)); - m_menu->addAction(QIcon(":icons/menu/translate.png"), tr("Dictionary (Google Translate)"), this, SLOT(openUrlInNewTab()))->setData(googleTranslateUrl); + m_menu->addAction(QIcon(":icons/menu/translate.png"), tr("Google Translate"), this, SLOT(openUrlInNewTab()))->setData(googleTranslateUrl); + m_menu->addAction(tr("Dictionary"), this, SLOT(openUrlInNewTab()))->setData("http://" + (langCode != "" ? langCode + "." : langCode) + "wiktionary.org/wiki/Special:Search?search=" + selectedText); m_menu->addSeparator(); QString selectedString = selectedText.trimmed();