forked from openlp/openlp
renamed strings, remove unused logger import
This commit is contained in:
parent
12fb5ebd46
commit
6a0771392d
@ -28,9 +28,8 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Provide a work around for a bug in QFileDialog (#1209515)
|
Provide a work around for a bug in QFileDialog <https://bugs.launchpad.net/openlp/+bug/1209515>
|
||||||
"""
|
"""
|
||||||
import logging
|
|
||||||
import os
|
import os
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
@ -38,8 +37,6 @@ from PyQt4 import QtCore, QtGui
|
|||||||
|
|
||||||
from openlp.core.lib.ui import UiStrings
|
from openlp.core.lib.ui import UiStrings
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
class FileDialog(QtGui.QFileDialog):
|
class FileDialog(QtGui.QFileDialog):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getOpenFileNames(parent, title, path, filters):
|
def getOpenFileNames(parent, title, path, filters):
|
||||||
@ -50,9 +47,9 @@ class FileDialog(QtGui.QFileDialog):
|
|||||||
if not os.path.exists(file):
|
if not os.path.exists(file):
|
||||||
file = urllib.unquote(file)
|
file = urllib.unquote(file)
|
||||||
if not os.path.exists(file):
|
if not os.path.exists(file):
|
||||||
QtGui.QMessageBox.information(self,
|
QtGui.QMessageBox.information(parent,
|
||||||
UiStrings().FNFT,
|
UiStrings().FileNotFound,
|
||||||
UiStrings().FNF % file)
|
UiStrings().FileNotFoundMessage % file)
|
||||||
continue
|
continue
|
||||||
file_list.append(QtCore.QString(file))
|
file_list.append(QtCore.QString(file))
|
||||||
return file_list
|
return file_list
|
@ -77,9 +77,9 @@ class UiStrings(object):
|
|||||||
self.Error = translate('OpenLP.Ui', 'Error')
|
self.Error = translate('OpenLP.Ui', 'Error')
|
||||||
self.Export = translate('OpenLP.Ui', 'Export')
|
self.Export = translate('OpenLP.Ui', 'Export')
|
||||||
self.File = translate('OpenLP.Ui', 'File')
|
self.File = translate('OpenLP.Ui', 'File')
|
||||||
self.FNFT = unicode(translate('OpenLP.Ui',
|
self.FileNotFound = unicode(translate('OpenLP.Ui',
|
||||||
'File Not Found'))
|
'File Not Found'))
|
||||||
self.FNF = unicode(translate('OpenLP.Ui',
|
self.FileNotFoundMessage = unicode(translate('OpenLP.Ui',
|
||||||
'File %s not found.\nPlease try selecting it individually.'))
|
'File %s not found.\nPlease try selecting it individually.'))
|
||||||
self.FontSizePtUnit = translate('OpenLP.Ui', 'pt',
|
self.FontSizePtUnit = translate('OpenLP.Ui', 'pt',
|
||||||
'Abbreviated font pointsize unit')
|
'Abbreviated font pointsize unit')
|
||||||
|
Loading…
Reference in New Issue
Block a user