forked from openlp/openlp
Fix OnNewPrompt i18n
This commit is contained in:
parent
7eb86b1580
commit
ae67228139
@ -46,7 +46,6 @@ class MediaMediaItem(MediaManagerItem):
|
|||||||
self.PluginNameShort = u'Media'
|
self.PluginNameShort = u'Media'
|
||||||
self.IconPath = u'images/image'
|
self.IconPath = u'images/image'
|
||||||
self.ConfigSection = title
|
self.ConfigSection = title
|
||||||
self.OnNewPrompt = self.trUtf8(u'Select Media')
|
|
||||||
self.OnNewFileMasks = \
|
self.OnNewFileMasks = \
|
||||||
u'Videos (*.avi *.mpeg *.mpg *.mp4);;Audio (*.ogg *.mp3 *.wma);;All files (*)'
|
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
|
# this next is a class, not an instance of a class - it will
|
||||||
@ -58,6 +57,9 @@ class MediaMediaItem(MediaManagerItem):
|
|||||||
def initPluginNameVisible(self):
|
def initPluginNameVisible(self):
|
||||||
self.PluginNameVisible = self.trUtf8(u'Media')
|
self.PluginNameVisible = self.trUtf8(u'Media')
|
||||||
|
|
||||||
|
def reTranslateUi(self):
|
||||||
|
self.OnNewPrompt = self.trUtf8(u'Select Media')
|
||||||
|
|
||||||
def requiredIcons(self):
|
def requiredIcons(self):
|
||||||
MediaManagerItem.requiredIcons(self)
|
MediaManagerItem.requiredIcons(self)
|
||||||
self.hasFileIcon = True
|
self.hasFileIcon = True
|
||||||
|
@ -51,7 +51,6 @@ class PresentationMediaItem(MediaManagerItem):
|
|||||||
self.PluginNameShort = u'Presentation'
|
self.PluginNameShort = u'Presentation'
|
||||||
self.ConfigSection = title
|
self.ConfigSection = title
|
||||||
self.IconPath = u'presentations/presentation'
|
self.IconPath = u'presentations/presentation'
|
||||||
self.OnNewPrompt = self.trUtf8(u'Select Presentation(s)')
|
|
||||||
self.OnNewFileMasks = u'Presentations (*.ppt *.pps *.odp)'
|
self.OnNewFileMasks = u'Presentations (*.ppt *.pps *.odp)'
|
||||||
# this next is a class, not an instance of a class - it will
|
# this next is a class, not an instance of a class - it will
|
||||||
# be instanced by the base MediaManagerItem
|
# be instanced by the base MediaManagerItem
|
||||||
@ -62,6 +61,9 @@ class PresentationMediaItem(MediaManagerItem):
|
|||||||
def initPluginNameVisible(self):
|
def initPluginNameVisible(self):
|
||||||
self.PluginNameVisible = self.trUtf8(u'Presentation')
|
self.PluginNameVisible = self.trUtf8(u'Presentation')
|
||||||
|
|
||||||
|
def reTranslateUi(self):
|
||||||
|
self.OnNewPrompt = self.trUtf8(u'Select Presentation(s)')
|
||||||
|
|
||||||
def requiredIcons(self):
|
def requiredIcons(self):
|
||||||
MediaManagerItem.requiredIcons(self)
|
MediaManagerItem.requiredIcons(self)
|
||||||
self.hasFileIcon = True
|
self.hasFileIcon = True
|
||||||
|
Loading…
Reference in New Issue
Block a user