Fix OnNewPrompt i18n

This commit is contained in:
Jon Tibble 2009-10-30 19:15:25 +00:00
parent 7eb86b1580
commit ae67228139
2 changed files with 6 additions and 2 deletions

View File

@ -46,7 +46,6 @@ class MediaMediaItem(MediaManagerItem):
self.PluginNameShort = u'Media'
self.IconPath = u'images/image'
self.ConfigSection = title
self.OnNewPrompt = self.trUtf8(u'Select Media')
self.OnNewFileMasks = \
u'Videos (*.avi *.mpeg *.mpg *.mp4);;Audio (*.ogg *.mp3 *.wma);;All files (*)'
# this next is a class, not an instance of a class - it will
@ -58,6 +57,9 @@ class MediaMediaItem(MediaManagerItem):
def initPluginNameVisible(self):
self.PluginNameVisible = self.trUtf8(u'Media')
def reTranslateUi(self):
self.OnNewPrompt = self.trUtf8(u'Select Media')
def requiredIcons(self):
MediaManagerItem.requiredIcons(self)
self.hasFileIcon = True

View File

@ -51,7 +51,6 @@ class PresentationMediaItem(MediaManagerItem):
self.PluginNameShort = u'Presentation'
self.ConfigSection = title
self.IconPath = u'presentations/presentation'
self.OnNewPrompt = self.trUtf8(u'Select Presentation(s)')
self.OnNewFileMasks = u'Presentations (*.ppt *.pps *.odp)'
# this next is a class, not an instance of a class - it will
# be instanced by the base MediaManagerItem
@ -62,6 +61,9 @@ class PresentationMediaItem(MediaManagerItem):
def initPluginNameVisible(self):
self.PluginNameVisible = self.trUtf8(u'Presentation')
def reTranslateUi(self):
self.OnNewPrompt = self.trUtf8(u'Select Presentation(s)')
def requiredIcons(self):
MediaManagerItem.requiredIcons(self)
self.hasFileIcon = True