mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Support plural
This commit is contained in:
parent
3209a96735
commit
b090c2ed76
1 changed files with 5 additions and 3 deletions
|
@ -11,6 +11,7 @@ from anki.utils import parseTags
|
|||
from anki.deck import newCardOrderLabels, newCardSchedulingLabels
|
||||
from anki.deck import revCardOrderLabels
|
||||
from anki.utils import hexifyID, dehexifyID
|
||||
from anki.lang import ngettext
|
||||
|
||||
tabs = ("Scheduling",
|
||||
"Synchronization",
|
||||
|
@ -111,9 +112,10 @@ class DeckProperties(QDialog):
|
|||
self.dialog.modelsList.clear()
|
||||
self.models = []
|
||||
for model in self.d.models:
|
||||
name = _("%(name)s [%(facts)d facts]") % {
|
||||
'name': model.name,
|
||||
'facts': self.d.modelUseCount(model),
|
||||
name = ngettext("%(name)s [%(facts)d fact]",
|
||||
"%(name)s [%(facts)d facts]", self.d.modelUseCount(model)) % {
|
||||
'name': model.name,
|
||||
'facts': self.d.modelUseCount(model),
|
||||
}
|
||||
self.models.append((name, model))
|
||||
self.models.sort()
|
||||
|
|
Loading…
Reference in a new issue