Fix media language Automatic

This commit is contained in:
Tim Bentley 2012-11-22 22:02:40 +00:00
parent 4eab1a6521
commit 116c5b030f
3 changed files with 4 additions and 4 deletions

View File

@ -61,6 +61,7 @@ class UiStrings(object):
self.Add = translate('OpenLP.Ui', '&Add')
self.Advanced = translate('OpenLP.Ui', 'Advanced')
self.AllFiles = translate('OpenLP.Ui', 'All Files')
self.Automatic = translate('OpenLP.Ui', 'Automatic')
self.Bottom = translate('OpenLP.Ui', 'Bottom')
self.Browse = translate('OpenLP.Ui', 'Browse...')
self.Cancel = translate('OpenLP.Ui', 'Cancel')

View File

@ -34,7 +34,7 @@ from PyQt4 import QtCore, QtGui
from openlp.core.lib import OpenLPToolbar, Receiver, translate
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, \
get_media_players, set_media_players
from openlp.core.ui.media.mediaplayer import MediaPlayer
@ -479,7 +479,7 @@ class MediaController(object):
The ServiceItem containing the details to be played.
"""
usedPlayers = get_media_players()[0]
if serviceItem.title != u'Automatic':
if serviceItem.title != UiStrings().Automatic:
usedPlayers = [serviceItem.title.lower()]
if controller.media_info.file_info.isFile():
suffix = u'*.%s' % \

View File

@ -95,8 +95,7 @@ class MediaMediaItem(MediaManagerItem):
self.replaceAction.setToolTip(UiStrings().ReplaceLiveBG)
self.resetAction.setText(UiStrings().ResetBG)
self.resetAction.setToolTip(UiStrings().ResetLiveBG)
self.automatic = translate('MediaPlugin.MediaItem',
'Automatic')
self.automatic = UiStrings().Automatic
self.displayTypeLabel.setText(
translate('MediaPlugin.MediaItem', 'Use Player:'))
self.rebuild_players()