mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
translation patch from piotr
This commit is contained in:
parent
1de1c7c816
commit
8fbf2cb412
2 changed files with 8 additions and 5 deletions
|
@ -3006,7 +3006,7 @@ link into Anki."""))
|
|||
fail = True
|
||||
if fail:
|
||||
ui.utils.showInfo(_("""\
|
||||
That doesn't appear to be a public link. You'll be asked again when the deck\
|
||||
That doesn't appear to be a public link. You'll be asked again when the deck \
|
||||
is next loaded."""))
|
||||
else:
|
||||
self.config['dropboxPublicFolder'] = os.path.dirname(txt[0])
|
||||
|
@ -3118,14 +3118,16 @@ doubt."""))
|
|||
(grabbed, missing) = res[1:]
|
||||
msg = _("%d successfully retrieved.") % grabbed
|
||||
if missing:
|
||||
msg += "\n" + _("%d missing.") % missing
|
||||
msg += "\n" + ngettext("%d missing.", "%d missing.", missing) % missing
|
||||
else:
|
||||
msg = _("Unable to download %s\nDownload aborted.") % res[1]
|
||||
ui.utils.showInfo(msg)
|
||||
|
||||
def onLocalizeMedia(self):
|
||||
res = downloadRemote(self.deck)
|
||||
msg = _("%d successfully downloaded.") % len(res[0])
|
||||
count = len(res[0])
|
||||
msg = ngettext("%d successfully downloaded.",
|
||||
"%d successfully downloaded.", count) % count
|
||||
if len(res[1]):
|
||||
msg += "\n\n" + _("Couldn't find:") + "\n" + "\n".join(res[1])
|
||||
ui.utils.showText(msg, parent=self, type="text")
|
||||
|
|
|
@ -83,11 +83,12 @@ class ModelProperties(QDialog):
|
|||
status=""
|
||||
else:
|
||||
status=_("; disabled")
|
||||
label = _("%(name)s [%(cards)d facts%(status)s]") % {
|
||||
cards = self.deck.cardModelUseCount(card)
|
||||
label = "%(name)s [%(cards)s%(status)s]" % {
|
||||
'num': n,
|
||||
'name': card.name,
|
||||
'status': status,
|
||||
'cards': self.deck.cardModelUseCount(card),
|
||||
'cards': ngettext("%d fact", "%d facts", cards) % cards
|
||||
}
|
||||
item = QListWidgetItem(label)
|
||||
self.dialog.cardList.addItem(item)
|
||||
|
|
Loading…
Reference in a new issue