Improved list and quote handling, also fix a typo
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user