mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1843361 [Welcome screen strings does not change language](https://bugs.launchpad.net/calibre/+bug/1843361)
This commit is contained in:
parent
de505a1a34
commit
24868ee39c
@ -652,14 +652,21 @@ class LibraryPage(QWizardPage, LibraryUI):
|
|||||||
self.init_languages()
|
self.init_languages()
|
||||||
self.language.currentIndexChanged[int].connect(self.change_language)
|
self.language.currentIndexChanged[int].connect(self.change_language)
|
||||||
self.location.textChanged.connect(self.location_text_changed)
|
self.location.textChanged.connect(self.location_text_changed)
|
||||||
|
self.set_move_lib_label_text()
|
||||||
|
|
||||||
|
def location_text_changed(self, newtext):
|
||||||
|
self.completeChanged.emit()
|
||||||
|
|
||||||
|
def set_move_lib_label_text(self):
|
||||||
self.move_lib_label.setText(_(
|
self.move_lib_label.setText(_(
|
||||||
'If you are moving calibre from an old computer to a new one,'
|
'If you are moving calibre from an old computer to a new one,'
|
||||||
' please read <a href="{0}">the instructions</a>.').format(
|
' please read <a href="{0}">the instructions</a>.').format(
|
||||||
localize_user_manual_link(
|
localize_user_manual_link(
|
||||||
'https://manual.calibre-ebook.com/faq.html#how-do-i-move-my-calibre-data-from-one-computer-to-another')))
|
'https://manual.calibre-ebook.com/faq.html#how-do-i-move-my-calibre-data-from-one-computer-to-another')))
|
||||||
|
|
||||||
def location_text_changed(self, newtext):
|
def retranslateUi(self, widget):
|
||||||
self.completeChanged.emit()
|
LibraryUI.retranslateUi(self, widget)
|
||||||
|
self.set_move_lib_label_text()
|
||||||
|
|
||||||
def init_languages(self):
|
def init_languages(self):
|
||||||
self.language.blockSignals(True)
|
self.language.blockSignals(True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user