Improved list and quote handling, also fix a typo

This commit is contained in:
Bruno Kühnen Meneguello
2021-02-15 15:46:48 -03:00
parent 31b665d344
commit d4b4451a48
2 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ class GuiAbout(QDialog):
"%s<br/>" % self.tr("<b>{0}:</b> {1}").format(
self.tr("Author"), theTheme.syntaxAuthor
),
"%s<br/>" % self.tr("<b>{0}</b> {1}").format(
"%s<br/>" % self.tr("<b>{0}:</b> {1}").format(
self.tr("Credit"), theTheme.syntaxCredit
),
self.tr("<b>{0}:</b> {1}").format(
+12 -4
View File
@@ -331,16 +331,24 @@ class GuiBuildNovel(QDialog):
self.fileGroup.setLayout(self.fileForm)
self.novelFiles = QSwitch(width=wS, height=hS)
self.novelFiles.setToolTip(self.tr(
"Include files with layouts 'Book', 'Page', 'Partition', "
"'Chapter', 'Unnumbered', and 'Scene'."
self.novelFiles.setToolTip(self.tr("Include files with layouts {0}.").format(
self.locale().createSeparatedList([
self.locale().quoteString(self.tr('Book')),
self.locale().quoteString(self.tr('Page')),
self.locale().quoteString(self.tr('Partition')),
self.locale().quoteString(self.tr('Chapter')),
self.locale().quoteString(self.tr('Unnumbered')),
self.locale().quoteString(self.tr('Scene')),
])
))
self.novelFiles.setChecked(
self.optState.getBool("GuiBuildNovel", "addNovel", True)
)
self.noteFiles = QSwitch(width=wS, height=hS)
self.noteFiles.setToolTip(self.tr("Include files with layout 'Note'."))
self.noteFiles.setToolTip(self.tr("Include files with layout {0}.").format(
self.locale().quoteString(self.tr("Note"))
))
self.noteFiles.setChecked(
self.optState.getBool("GuiBuildNovel", "addNotes", False)
)