forked from openlp/openlp
replaced Ini by config
This commit is contained in:
parent
565a570d8a
commit
d061436a35
@ -289,7 +289,7 @@ class Ui_MainWindow(object):
|
|||||||
self.settingsImportItem = base_action(mainWindow,
|
self.settingsImportItem = base_action(mainWindow,
|
||||||
u'settingsImportItem', category=UiStrings().Settings)
|
u'settingsImportItem', category=UiStrings().Settings)
|
||||||
self.settingsExportItem = base_action(mainWindow,
|
self.settingsExportItem = base_action(mainWindow,
|
||||||
u'settingsExportItem', category=UiStrings().Settings)
|
u'settingsExportItem', category=UiStrings().Settings)
|
||||||
action_list.add_category(UiStrings().Help, CategoryOrder.standardMenu)
|
action_list.add_category(UiStrings().Help, CategoryOrder.standardMenu)
|
||||||
self.aboutItem = shortcut_action(mainWindow, u'aboutItem',
|
self.aboutItem = shortcut_action(mainWindow, u'aboutItem',
|
||||||
[QtGui.QKeySequence(u'Ctrl+F1')], self.onAboutItemClicked,
|
[QtGui.QKeySequence(u'Ctrl+F1')], self.onAboutItemClicked,
|
||||||
@ -428,11 +428,11 @@ class Ui_MainWindow(object):
|
|||||||
self.settingsConfigureItem.setText(
|
self.settingsConfigureItem.setText(
|
||||||
translate('OpenLP.MainWindow', '&Configure OpenLP...'))
|
translate('OpenLP.MainWindow', '&Configure OpenLP...'))
|
||||||
self.settingsExportItem.setStatusTip(translate('OpenLP.MainWindow',
|
self.settingsExportItem.setStatusTip(translate('OpenLP.MainWindow',
|
||||||
'Export OpenLP settings to a specified Ini file'))
|
'Export OpenLP settings to a specified *.config file'))
|
||||||
self.settingsExportItem.setText(
|
self.settingsExportItem.setText(
|
||||||
translate('OpenLP.MainWindow', 'Settings'))
|
translate('OpenLP.MainWindow', 'Settings'))
|
||||||
self.settingsImportItem.setStatusTip(translate('OpenLP.MainWindow',
|
self.settingsImportItem.setStatusTip(translate('OpenLP.MainWindow',
|
||||||
'Import OpenLP settings from a specified Ini file previously '
|
'Import OpenLP settings from a specified *.config file previously '
|
||||||
'exported on this or another machine'))
|
'exported on this or another machine'))
|
||||||
self.settingsImportItem.setText(
|
self.settingsImportItem.setText(
|
||||||
translate('OpenLP.MainWindow', 'Settings'))
|
translate('OpenLP.MainWindow', 'Settings'))
|
||||||
@ -997,7 +997,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
# Make sure it's an .ini file.
|
# Make sure it's an .ini file.
|
||||||
if not exportFileName.endswith(u'conf'):
|
if not exportFileName.endswith(u'conf'):
|
||||||
exportFileName = exportFileName + u'.conf'
|
exportFileName = exportFileName + u'.conf'
|
||||||
temp_file = os.path.join(unicode(gettempdir()),
|
temp_file = os.path.join(unicode(gettempdir()),
|
||||||
u'openlp', u'exportIni.tmp')
|
u'openlp', u'exportIni.tmp')
|
||||||
self.saveSettings()
|
self.saveSettings()
|
||||||
settingSections = []
|
settingSections = []
|
||||||
|
Loading…
Reference in New Issue
Block a user