mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Merge branch 'master' of https://github.com/aaronharsh/ankiqt
This commit is contained in:
commit
2bad230ca5
2 changed files with 4 additions and 4 deletions
|
@ -14,12 +14,11 @@ The translations are stored in a bazaar repo for integration with launchpad's
|
|||
translation services. If you want to use a language other than English:
|
||||
|
||||
$ cd ..
|
||||
$ mv libanki lib
|
||||
$ mv ankiqt qt
|
||||
$ bzr clone lp:anki
|
||||
$ cd anki
|
||||
$ ./update-mos.sh
|
||||
$ cd ../ankiqt
|
||||
$ cd ../qt
|
||||
|
||||
And now you're ready to run Anki:
|
||||
$ ./anki
|
||||
|
|
|
@ -114,9 +114,10 @@ body { margin: 1em; -webkit-user-select: none; }
|
|||
def _rename(self, did):
|
||||
self.mw.checkpoint(_("Rename Deck"))
|
||||
deck = self.mw.col.decks.get(did)
|
||||
newName = getOnlyText(_("New deck name:"), default=deck['name'])
|
||||
oldName = deck['name']
|
||||
newName = getOnlyText(_("New deck name:"), default=oldName)
|
||||
newName = newName.replace("'", "").replace('"', "")
|
||||
if not newName:
|
||||
if not newName or newName == oldName:
|
||||
return
|
||||
if deck in self.mw.col.decks.allNames():
|
||||
return showWarning(_("That deck already exists."))
|
||||
|
|
Loading…
Reference in a new issue