forked from openlp/openlp
Cleanup
This commit is contained in:
parent
216cc407c6
commit
25dbf271f6
@ -444,16 +444,20 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
size_limit = 52428800 # 50MiB
|
size_limit = 52428800 # 50MiB
|
||||||
if file_size > size_limit:
|
if file_size > size_limit:
|
||||||
# File exeeds size_limit bytes, ask user
|
# File exeeds size_limit bytes, ask user
|
||||||
message = unicode(self.trUtf8('Do you want'
|
message = unicode(translate(
|
||||||
' to include \n%.1f MiB file "%s"\n'
|
'OpenLP.ServiceManager', 'Do you want'
|
||||||
|
' to include \n%.1f MB file "%s"\n'
|
||||||
'into the service file?\n'
|
'into the service file?\n'
|
||||||
'This may take some time.\n\n'
|
'This may take some time.\n\n'
|
||||||
'Please note that you need to\n'
|
'Please note that you need to\n'
|
||||||
'take care of that file yourself.')) %\
|
'take care of that file yourself,\n'
|
||||||
|
'if you leave it out.')) %\
|
||||||
(file_size/1048576,
|
(file_size/1048576,
|
||||||
os.path.split(path_from)[1])
|
os.path.split(path_from)[1])
|
||||||
ans = QtGui.QMessageBox.question(self,
|
ans = QtGui.QMessageBox.question(
|
||||||
self.trUtf8('Including Large File'),
|
self.mainwindow,
|
||||||
|
translate('OpenLP.ServiceManager',
|
||||||
|
'Including Large File'),
|
||||||
message,
|
message,
|
||||||
QtGui.QMessageBox.StandardButtons(
|
QtGui.QMessageBox.StandardButtons(
|
||||||
QtGui.QMessageBox.Ok|\
|
QtGui.QMessageBox.Ok|\
|
||||||
|
Loading…
Reference in New Issue
Block a user