mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Merge git://github.com/timo/ankiqt
This commit is contained in:
commit
626ad9f813
4 changed files with 2127 additions and 2 deletions
2122
ankiqt/locale/ankiqt_fi_FI.po
Normal file
2122
ankiqt/locale/ankiqt_fi_FI.po
Normal file
File diff suppressed because it is too large
Load diff
|
@ -4,7 +4,7 @@
|
|||
from PyQt4.QtGui import *
|
||||
from PyQt4.QtCore import *
|
||||
import ankiqt
|
||||
from anki.utils import parseTags, joinTags
|
||||
from anki.utils import parseTags, joinTags, canonifyTags
|
||||
from ankiqt.ui.utils import saveGeom, restoreGeom
|
||||
|
||||
class ActiveTagsChooser(QDialog):
|
||||
|
@ -45,7 +45,7 @@ class ActiveTagsChooser(QDialog):
|
|||
if self.dialog.list.selectionModel().isSelected(idx):
|
||||
suspended.append(self.tags[n])
|
||||
n += 1
|
||||
self.parent.deck.suspended = joinTags(suspended + ["Suspended"])
|
||||
self.parent.deck.suspended = canonifyTags(joinTags(suspended + ["Suspended"]))
|
||||
self.parent.deck.setModified()
|
||||
self.parent.reset()
|
||||
saveGeom(self, "activeTags")
|
||||
|
|
|
@ -1406,6 +1406,7 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2})
|
|||
self.maybeShowLookup(False)
|
||||
self.maybeShowKanjiStats()
|
||||
self.mainWin.actionEditCurrent.setEnabled(False)
|
||||
self.mainWin.actionMarkCard.setEnabled(False)
|
||||
self.mainWin.menuCurrent.setEnabled(False)
|
||||
|
||||
def enableCardMenuItems(self):
|
||||
|
@ -1417,6 +1418,7 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2})
|
|||
self.state != "getQuestion"))
|
||||
self.mainWin.actionRepeatAudio.setEnabled(snd)
|
||||
self.mainWin.actionEditCurrent.setEnabled(True)
|
||||
self.mainWin.actionMarkCard.setEnabled(True)
|
||||
self.mainWin.menuCurrent.setEnabled(True)
|
||||
|
||||
def maybeShowKanjiStats(self):
|
||||
|
|
|
@ -32,6 +32,7 @@ class Preferences(QDialog):
|
|||
(_("German"), "de_DE"),
|
||||
(_("Japanese"), "ja_JP"),
|
||||
(_("Korean"), "ko_KR"),
|
||||
(_("Finnish"), "fi_FI"),
|
||||
(_("Spanish"), "es_ES"),
|
||||
(_("Italian"), "it_IT"),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue