i18n some card template strings
https://forums.ankiweb.net/t/untranslated-strings/1623
This commit is contained in:
parent
2bcf9a82d1
commit
0edb043f53
@ -750,7 +750,7 @@ Enter deck to place new %s cards in, or leave blank:"""
|
||||
showWarning(str(e))
|
||||
return
|
||||
self.mw.reset()
|
||||
tooltip("Changes saved.", parent=self.parent())
|
||||
tooltip(tr(TR.CARD_TEMPLATES_CHANGES_SAVED), parent=self.parent())
|
||||
self.cleanup()
|
||||
gui_hooks.sidebar_should_refresh_notetypes()
|
||||
return QDialog.accept(self)
|
||||
@ -759,7 +759,7 @@ Enter deck to place new %s cards in, or leave blank:"""
|
||||
|
||||
def reject(self) -> None:
|
||||
if self.change_tracker.changed():
|
||||
if not askUser("Discard changes?"):
|
||||
if not askUser(tr(TR.CARD_TEMPLATES_DISCARD_CHANGES)):
|
||||
return
|
||||
self.cleanup()
|
||||
return QDialog.reject(self)
|
||||
|
@ -14,3 +14,5 @@ card-templates-template-box = Template
|
||||
card-templates-sample-cloze = This is a {"{{c1::"}sample{"}}"} cloze deletion.
|
||||
card-templates-fill-empty = Fill Empty Fields
|
||||
card-templates-invalid-template-number = Card template { $number } has a problem.
|
||||
card-templates-changes-saved = Changes saved.
|
||||
card-templates-discard-changes = Discard changes?
|
||||
|
Loading…
Reference in New Issue
Block a user