mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
add ogv/ogx/oga, separate from translation
This commit is contained in:
parent
dde3c13cfe
commit
11357d5736
1 changed files with 5 additions and 3 deletions
|
@ -868,7 +868,8 @@ class FactEditor(object):
|
||||||
def onAddPicture(self):
|
def onAddPicture(self):
|
||||||
# get this before we open the dialog
|
# get this before we open the dialog
|
||||||
w = self.focusedEdit()
|
w = self.focusedEdit()
|
||||||
key = _("Images (*.jpg *.png *.gif *.tiff *.svg *.tif *.jpeg)")
|
key = (_("Images") +
|
||||||
|
" (*.jpg *.png *.gif *.tiff *.svg *.tif *.jpeg)")
|
||||||
file = ui.utils.getFile(self.parent, _("Add an image"), "picture", key)
|
file = ui.utils.getFile(self.parent, _("Add an image"), "picture", key)
|
||||||
if not file:
|
if not file:
|
||||||
return
|
return
|
||||||
|
@ -898,8 +899,9 @@ class FactEditor(object):
|
||||||
def onAddSound(self):
|
def onAddSound(self):
|
||||||
# get this before we open the dialog
|
# get this before we open the dialog
|
||||||
w = self.focusedEdit()
|
w = self.focusedEdit()
|
||||||
key = _("Sounds/Videos (*.mp3 *.ogg *.wav *.avi *.ogv "
|
key = (_("Sounds/Videos") +
|
||||||
"*.mpg *.mpeg *.mov *.mp4 *.mkv)")
|
" (*.mp3 *.ogg *.wav *.avi *.ogv *.mpg *.mpeg *.mov *.mp4 " +
|
||||||
|
"*.mkv *.ogx *.ogv *.oga)")
|
||||||
file = ui.utils.getFile(self.parent, _("Add audio"), "audio", key)
|
file = ui.utils.getFile(self.parent, _("Add audio"), "audio", key)
|
||||||
if not file:
|
if not file:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue