mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1324 (Donate - error)
This commit is contained in:
parent
dac9fb44dd
commit
70c1443b96
@ -1250,9 +1250,10 @@ in which you want to store your books files. Any existing books will be automati
|
|||||||
</form>
|
</form>
|
||||||
'''
|
'''
|
||||||
MSG = _('is the result of the efforts of many volunteers from all over the world. If you find it useful, please consider donating to support its development.')
|
MSG = _('is the result of the efforts of many volunteers from all over the world. If you find it useful, please consider donating to support its development.')
|
||||||
HTML = '''
|
HTML = u'''
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Donate to support calibre</title>
|
<title>Donate to support calibre</title>
|
||||||
</head>
|
</head>
|
||||||
<body style="background:white">
|
<body style="background:white">
|
||||||
@ -1263,7 +1264,7 @@ in which you want to store your books files. Any existing books will be automati
|
|||||||
</html>
|
</html>
|
||||||
'''%(MSG, BUTTON)
|
'''%(MSG, BUTTON)
|
||||||
pt = PersistentTemporaryFile('_donate.htm')
|
pt = PersistentTemporaryFile('_donate.htm')
|
||||||
pt.write(HTML)
|
pt.write(HTML.encode('utf-8'))
|
||||||
pt.close()
|
pt.close()
|
||||||
QDesktopServices.openUrl(QUrl.fromLocalFile(pt.name))
|
QDesktopServices.openUrl(QUrl.fromLocalFile(pt.name))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user