forked from openlp/openlp
change string names
This commit is contained in:
parent
364fde73c5
commit
2ceb165901
@ -28,7 +28,7 @@
|
||||
###############################################################################
|
||||
|
||||
"""
|
||||
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
|
||||
@ -42,7 +42,7 @@ log = logging.getLogger(__name__)
|
||||
|
||||
class FileDialog(QtGui.QFileDialog):
|
||||
"""
|
||||
Inherit form QFileDialog
|
||||
Subclass QFileDialog to work round a bug
|
||||
"""
|
||||
@staticmethod
|
||||
def getOpenFileNames(parent, *args, **kwargs):
|
||||
@ -59,7 +59,8 @@ class FileDialog(QtGui.QFileDialog):
|
||||
file = urllib.unquote(unicode(file))
|
||||
if not os.path.exists(file):
|
||||
log.error(u'File %s not found.' % file)
|
||||
QtGui.QMessageBox.information(parent, UiStrings().FNFT, UiStrings().FNF % file)
|
||||
QtGui.QMessageBox.information(parent, UiStrings().FileNotFound,
|
||||
UiStrings().FileNotFoundMessage % file)
|
||||
continue
|
||||
log.info(u'File %s found.')
|
||||
file_list.append(file)
|
||||
|
@ -83,8 +83,8 @@ class UiStrings(object):
|
||||
self.Error = translate('OpenLP.Ui', 'Error')
|
||||
self.Export = translate('OpenLP.Ui', 'Export')
|
||||
self.File = translate('OpenLP.Ui', 'File')
|
||||
self.FNFT = unicode(translate('OpenLP.Ui', 'File Not Found'))
|
||||
self.FNF = unicode(translate('OpenLP.Ui', 'File %s not found.\nPlease try selecting it individually.'))
|
||||
self.FileNotFound = unicode(translate('OpenLP.Ui', 'File Not Found'))
|
||||
self.FileNotFoundMessage = unicode(translate('OpenLP.Ui', 'File %s not found.\nPlease try selecting it individually.'))
|
||||
self.FontSizePtUnit = translate('OpenLP.Ui', 'pt', 'Abbreviated font pointsize unit')
|
||||
self.Help = translate('OpenLP.Ui', 'Help')
|
||||
self.Hours = translate('OpenLP.Ui', 'h', 'The abbreviated unit for hours')
|
||||
|
Loading…
Reference in New Issue
Block a user