Fix translation warnings

Apparently msgfmt does not like unicode
This commit is contained in:
Kovid Goyal 2019-09-16 11:23:06 +05:30
parent 7f0469e044
commit 523850de45
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ class EbookViewer(MainWindow):
def load_ebook(self, pathtoebook, open_at=None, reload_book=False):
if open_at:
self.pending_open_at = open_at
self.setWindowTitle(_('Loading book… — {}').format(self.base_window_title))
self.setWindowTitle(_('Loading book') + '… — {}'.format(self.base_window_title))
self.web_view.show_preparing_message()
self.save_annotations()
self.current_book_data = {}

View File

@ -444,7 +444,7 @@ class WebView(RestartingWebEngineView):
self.pending_bridge_ready_actions[action] = args
def show_preparing_message(self):
msg = _('Preparing book for first read, please wait')
msg = _('Preparing book for first read, please wait') + ''
self.execute_when_ready('show_preparing_message', msg)
def goto_toc_node(self, node_id):