forked from openlp/openlp
Fix media language Automatic
This commit is contained in:
parent
4eab1a6521
commit
116c5b030f
@ -61,6 +61,7 @@ class UiStrings(object):
|
|||||||
self.Add = translate('OpenLP.Ui', '&Add')
|
self.Add = translate('OpenLP.Ui', '&Add')
|
||||||
self.Advanced = translate('OpenLP.Ui', 'Advanced')
|
self.Advanced = translate('OpenLP.Ui', 'Advanced')
|
||||||
self.AllFiles = translate('OpenLP.Ui', 'All Files')
|
self.AllFiles = translate('OpenLP.Ui', 'All Files')
|
||||||
|
self.Automatic = translate('OpenLP.Ui', 'Automatic')
|
||||||
self.Bottom = translate('OpenLP.Ui', 'Bottom')
|
self.Bottom = translate('OpenLP.Ui', 'Bottom')
|
||||||
self.Browse = translate('OpenLP.Ui', 'Browse...')
|
self.Browse = translate('OpenLP.Ui', 'Browse...')
|
||||||
self.Cancel = translate('OpenLP.Ui', 'Cancel')
|
self.Cancel = translate('OpenLP.Ui', 'Cancel')
|
||||||
|
@ -34,7 +34,7 @@ from PyQt4 import QtCore, QtGui
|
|||||||
|
|
||||||
from openlp.core.lib import OpenLPToolbar, Receiver, translate
|
from openlp.core.lib import OpenLPToolbar, Receiver, translate
|
||||||
from openlp.core.lib.settings import Settings
|
from openlp.core.lib.settings import Settings
|
||||||
from openlp.core.lib.ui import critical_error_message_box
|
from openlp.core.lib.ui import UiStrings, critical_error_message_box
|
||||||
from openlp.core.ui.media import MediaState, MediaInfo, MediaType, \
|
from openlp.core.ui.media import MediaState, MediaInfo, MediaType, \
|
||||||
get_media_players, set_media_players
|
get_media_players, set_media_players
|
||||||
from openlp.core.ui.media.mediaplayer import MediaPlayer
|
from openlp.core.ui.media.mediaplayer import MediaPlayer
|
||||||
@ -479,7 +479,7 @@ class MediaController(object):
|
|||||||
The ServiceItem containing the details to be played.
|
The ServiceItem containing the details to be played.
|
||||||
"""
|
"""
|
||||||
usedPlayers = get_media_players()[0]
|
usedPlayers = get_media_players()[0]
|
||||||
if serviceItem.title != u'Automatic':
|
if serviceItem.title != UiStrings().Automatic:
|
||||||
usedPlayers = [serviceItem.title.lower()]
|
usedPlayers = [serviceItem.title.lower()]
|
||||||
if controller.media_info.file_info.isFile():
|
if controller.media_info.file_info.isFile():
|
||||||
suffix = u'*.%s' % \
|
suffix = u'*.%s' % \
|
||||||
|
@ -95,8 +95,7 @@ class MediaMediaItem(MediaManagerItem):
|
|||||||
self.replaceAction.setToolTip(UiStrings().ReplaceLiveBG)
|
self.replaceAction.setToolTip(UiStrings().ReplaceLiveBG)
|
||||||
self.resetAction.setText(UiStrings().ResetBG)
|
self.resetAction.setText(UiStrings().ResetBG)
|
||||||
self.resetAction.setToolTip(UiStrings().ResetLiveBG)
|
self.resetAction.setToolTip(UiStrings().ResetLiveBG)
|
||||||
self.automatic = translate('MediaPlugin.MediaItem',
|
self.automatic = UiStrings().Automatic
|
||||||
'Automatic')
|
|
||||||
self.displayTypeLabel.setText(
|
self.displayTypeLabel.setText(
|
||||||
translate('MediaPlugin.MediaItem', 'Use Player:'))
|
translate('MediaPlugin.MediaItem', 'Use Player:'))
|
||||||
self.rebuild_players()
|
self.rebuild_players()
|
||||||
|
Loading…
Reference in New Issue
Block a user