i18n some card template strings

https://forums.ankiweb.net/t/untranslated-strings/1623
This commit is contained in:
Damien Elmes 2020-07-31 12:41:43 +10:00
parent 2bcf9a82d1
commit 0edb043f53
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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?