From 0a1d0f56c8f38a1a92a37548a9b287093830b51b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 12 Aug 2022 17:41:23 +0530 Subject: [PATCH] Add some context for translating meaning --- src/calibre/gui2/viewer/lookup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/viewer/lookup.py b/src/calibre/gui2/viewer/lookup.py index a7c4340b5b..00f6b6c74d 100644 --- a/src/calibre/gui2/viewer/lookup.py +++ b/src/calibre/gui2/viewer/lookup.py @@ -13,6 +13,7 @@ from qt.webengine import ( QWebEnginePage, QWebEngineProfile, QWebEngineScript, QWebEngineView ) +from gettext import pgettext from calibre import prints, random_user_agent from calibre.gui2 import error_dialog from calibre.gui2.viewer.web_view import apply_font_settings, vprefs @@ -377,7 +378,7 @@ class Lookup(QWidget): return self.current_source = self.url_template url = self.current_source.format(word=query) - _('meaning') # to be used later + pgettext('The meaning of a word, intended to be added to a google web search to lookup word meanings', 'meaning') self.view.load(QUrl(url)) self.current_query = query self.update_refresh_button_status()