mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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
|
fail = True
|
||||||
if fail:
|
if fail:
|
||||||
ui.utils.showInfo(_("""\
|
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."""))
|
is next loaded."""))
|
||||||
else:
|
else:
|
||||||
self.config['dropboxPublicFolder'] = os.path.dirname(txt[0])
|
self.config['dropboxPublicFolder'] = os.path.dirname(txt[0])
|
||||||
|
@ -3118,14 +3118,16 @@ doubt."""))
|
||||||
(grabbed, missing) = res[1:]
|
(grabbed, missing) = res[1:]
|
||||||
msg = _("%d successfully retrieved.") % grabbed
|
msg = _("%d successfully retrieved.") % grabbed
|
||||||
if missing:
|
if missing:
|
||||||
msg += "\n" + _("%d missing.") % missing
|
msg += "\n" + ngettext("%d missing.", "%d missing.", missing) % missing
|
||||||
else:
|
else:
|
||||||
msg = _("Unable to download %s\nDownload aborted.") % res[1]
|
msg = _("Unable to download %s\nDownload aborted.") % res[1]
|
||||||
ui.utils.showInfo(msg)
|
ui.utils.showInfo(msg)
|
||||||
|
|
||||||
def onLocalizeMedia(self):
|
def onLocalizeMedia(self):
|
||||||
res = downloadRemote(self.deck)
|
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]):
|
if len(res[1]):
|
||||||
msg += "\n\n" + _("Couldn't find:") + "\n" + "\n".join(res[1])
|
msg += "\n\n" + _("Couldn't find:") + "\n" + "\n".join(res[1])
|
||||||
ui.utils.showText(msg, parent=self, type="text")
|
ui.utils.showText(msg, parent=self, type="text")
|
||||||
|
|
|
@ -83,11 +83,12 @@ class ModelProperties(QDialog):
|
||||||
status=""
|
status=""
|
||||||
else:
|
else:
|
||||||
status=_("; disabled")
|
status=_("; disabled")
|
||||||
label = _("%(name)s [%(cards)d facts%(status)s]") % {
|
cards = self.deck.cardModelUseCount(card)
|
||||||
|
label = "%(name)s [%(cards)s%(status)s]" % {
|
||||||
'num': n,
|
'num': n,
|
||||||
'name': card.name,
|
'name': card.name,
|
||||||
'status': status,
|
'status': status,
|
||||||
'cards': self.deck.cardModelUseCount(card),
|
'cards': ngettext("%d fact", "%d facts", cards) % cards
|
||||||
}
|
}
|
||||||
item = QListWidgetItem(label)
|
item = QListWidgetItem(label)
|
||||||
self.dialog.cardList.addItem(item)
|
self.dialog.cardList.addItem(item)
|
||||||
|
|
Loading…
Reference in a new issue