Added bit-install-hint for VLC

This commit is contained in:
Tomas Groth 2015-12-26 15:25:09 +01:00
parent b69bb5ce27
commit c5e5f5b889

View File

@ -22,6 +22,7 @@
""" """
The :mod:`~openlp.core.ui.media.playertab` module holds the configuration tab for the media stuff. The :mod:`~openlp.core.ui.media.playertab` module holds the configuration tab for the media stuff.
""" """
import platform
from PyQt5 import QtCore, QtWidgets from PyQt5 import QtCore, QtWidgets
from openlp.core.common import Registry, Settings, UiStrings, translate from openlp.core.common import Registry, Settings, UiStrings, translate
@ -250,4 +251,9 @@ class PlayerTab(SettingsTab):
if player.available: if player.available:
checkbox.setText(player.display_name) checkbox.setText(player.display_name)
else: else:
checkbox.setText(translate('OpenLP.PlayerTab', '%s (unavailable)') % player.display_name) checkbox_text = translate('OpenLP.PlayerTab', '%s (unavailable)') % player.display_name
if player.name == 'vlc':
checkbox_text += ' ' + translate('OpenLP.PlayerTab',
'NOTE: To use VLC you must install the %s version',
'Will insert "32bit" or "64bit"') % platform.architecture()[0]
checkbox.setText(checkbox_text)