Fix #1786592 [Clicking on the version link should open the What's new page in the languge of calibre](https://bugs.launchpad.net/calibre/+bug/1786592)

This commit is contained in:
Kovid Goyal 2018-08-12 06:02:06 +05:30
parent 6c40845e7a
commit ae7a128126
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -24,6 +24,7 @@ from calibre.gui2.book_details import BookDetails
from calibre.gui2.notify import get_notifier from calibre.gui2.notify import get_notifier
from calibre.gui2.layout_menu import LayoutMenu from calibre.gui2.layout_menu import LayoutMenu
from calibre.customize.ui import find_plugin from calibre.customize.ui import find_plugin
from calibre.utils.localization import localize_website_link
_keep_refs = [] _keep_refs = []
@ -227,7 +228,7 @@ class VersionLabel(QLabel): # {{{
self.setToolTip(_('See what\'s new in this calibre release')) self.setToolTip(_('See what\'s new in this calibre release'))
def mouseReleaseEvent(self, ev): def mouseReleaseEvent(self, ev):
open_url('https://calibre-ebook.com/whats-new') open_url(localize_website_link('https://calibre-ebook.com/whats-new'))
ev.accept() ev.accept()
return QLabel.mouseReleaseEvent(self, ev) return QLabel.mouseReleaseEvent(self, ev)