Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling: Manuscript, could not, process, … No content #588

Merged
merged 2 commits into from
Jun 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions manuskript/exporter/manuskript/plainText.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class plainText(basicFormat):
name = qApp.translate("Export", "Plain text")
description = qApp.translate("Export", """Simplest export to plain text. Allows you to use your own markup not understood
by manuskript, for example <a href='www.fountain.io'>Fountain</a>.""")
by Manuskript, for example <a href='www.fountain.io'>Fountain</a>.""")
implemented = True
requires = {
"Settings": True,
Expand Down Expand Up @@ -45,7 +45,7 @@ def output(self, settingsWidget):
return self.concatenate(mainWindow().mdlOutline.rootItem, settings)
except re.error as e:
QMessageBox.warning(mainWindow().dialog, qApp.translate("Export", "Error"),
qApp.translate("Export", "Error processing regular expression : \n{}").format(str(e)))
qApp.translate("Export", "Could not process regular expression: \n{}").format(str(e)))
return ""

def getExportFilename(self, settingsWidget, varName=None, filter=None):
Expand All @@ -65,7 +65,7 @@ def getExportFilename(self, settingsWidget, varName=None, filter=None):
filename = ""

filename, filter = QFileDialog.getSaveFileName(settingsWidget.parent(),
caption=qApp.translate("Export", "Choose output file..."),
caption=qApp.translate("Export", "Choose output file"),
filter=filter,
directory=filename)

Expand Down Expand Up @@ -99,7 +99,7 @@ def export(self, settingsWidget):
content = self.output(settingsWidget)

if not content:
print("Error: content is empty. Nothing saved.")
print("Error: No content. Nothing saved.")
return

if filename:
Expand Down