diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py
index de8da9b66..4432eb9c0 100644
--- a/openlp/core/ui/mainwindow.py
+++ b/openlp/core/ui/mainwindow.py
@@ -260,15 +260,14 @@ class Ui_MainWindow(object):
qmList = LanguageManager.get_qm_list()
savedLanguage = LanguageManager.get_language()
self.AutoLanguageItem.setChecked(LanguageManager.AutoLanguage)
- self.LanguageItem = {}
- for key in qmList.keys():
- self.LanguageItem[key] = QtGui.QAction(MainWindow)
- self.LanguageItem[key].setObjectName(key)
- self.LanguageItem[key].setCheckable(True)
- self.LanguageItem[key].setDisabled(LanguageManager.AutoLanguage)
+ for key in sorted(qmList.keys()):
+ languageItem = QtGui.QAction(MainWindow)
+ languageItem.setObjectName(key)
+ languageItem.setCheckable(True)
if qmList[key] == savedLanguage:
- self.LanguageItem[key].setChecked(True)
- add_actions(self.LanguageGroup, [self.LanguageItem[key]])
+ languageItem.setChecked(True)
+ add_actions(self.LanguageGroup, [languageItem])
+ self.LanguageGroup.setDisabled(LanguageManager.AutoLanguage)
self.ToolsAddToolItem = QtGui.QAction(MainWindow)
AddToolIcon = build_icon(u':/tools/tools_add.png')
self.ToolsAddToolItem.setIcon(AddToolIcon)
@@ -296,8 +295,7 @@ class Ui_MainWindow(object):
self.ViewThemeManagerItem, None, self.action_Preview_Panel))
#i18n add Language Actions
add_actions(self.OptionsLanguageMenu, (self.AutoLanguageItem, None))
- for item in sorted(self.LanguageItem):
- add_actions(self.OptionsLanguageMenu, [self.LanguageItem[item]])
+ add_actions(self.OptionsLanguageMenu, self.LanguageGroup.actions())
add_actions(self.OptionsMenu, (self.OptionsLanguageMenu.menuAction(),
self.OptionsViewMenu.menuAction(), None, self.OptionsSettingsItem))
add_actions(self.ToolsMenu,
@@ -417,10 +415,10 @@ class Ui_MainWindow(object):
self.AutoLanguageItem.setText(translate('MainWindow', '&Auto Detect'))
self.AutoLanguageItem.setStatusTip(
translate('MainWindow', 'Choose System language, if available'))
- for item in self.LanguageItem:
- self.LanguageItem[item].setText(self.LanguageItem[item].objectName())
- self.LanguageItem[item].setStatusTip(
- translate('MainWindow', 'Set the interface language to %1').arg(self.LanguageItem[item].objectName()))
+ for item in self.LanguageGroup.actions():
+ item.setText(item.objectName())
+ item.setStatusTip(
+ translate('MainWindow', 'Set the interface language to %1').arg(item.objectName()))
self.ToolsAddToolItem.setText(translate('MainWindow', 'Add &Tool...'))
self.ToolsAddToolItem.setStatusTip(
translate('MainWindow', 'Add an application to the list of tools'))
@@ -575,8 +573,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
#i18n
def setAutoLanguage(self, value):
- for action in self.LanguageGroup.actions():
- action.setDisabled(value)
+ self.LanguageGroup.setDisabled(value)
LanguageManager.AutoLanguage = value
LanguageManager.set_language(self.LanguageGroup.checkedAction())
diff --git a/resources/i18n/openlp_en.ts b/resources/i18n/openlp_en.ts
index 41a956423..c3cb8a595 100644
--- a/resources/i18n/openlp_en.ts
+++ b/resources/i18n/openlp_en.ts
@@ -705,12 +705,12 @@ This General Public License does not permit incorporating your program into prop
-
+
-
+
@@ -755,7 +755,7 @@ This General Public License does not permit incorporating your program into prop
-
+
@@ -1683,12 +1683,12 @@ Changes don't affect verses already in the service
LanguageManager
-
+
-
+
@@ -1696,379 +1696,379 @@ Changes don't affect verses already in the service
MainWindow
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -2217,7 +2217,7 @@ You can download the latest version from http://openlp.org
MediaPlugin
-
+
@@ -2533,7 +2533,7 @@ You can download the latest version from http://openlp.org
-
+
@@ -2543,7 +2543,7 @@ You can download the latest version from http://openlp.org
-
+
@@ -2553,12 +2553,12 @@ You can download the latest version from http://openlp.org
-
+
-
+
@@ -2636,140 +2636,150 @@ You can download the latest version from http://openlp.org
ServiceManager
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
ServiceNoteForm
@@ -2790,97 +2800,97 @@ You can download the latest version from http://openlp.org
SlideController
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+