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(
|
"%s<br/>" % self.tr("<b>{0}:</b> {1}").format(
|
||||||
self.tr("Author"), theTheme.syntaxAuthor
|
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("Credit"), theTheme.syntaxCredit
|
||||||
),
|
),
|
||||||
self.tr("<b>{0}:</b> {1}").format(
|
self.tr("<b>{0}:</b> {1}").format(
|
||||||
|
|||||||
+12
-4
@@ -331,16 +331,24 @@ class GuiBuildNovel(QDialog):
|
|||||||
self.fileGroup.setLayout(self.fileForm)
|
self.fileGroup.setLayout(self.fileForm)
|
||||||
|
|
||||||
self.novelFiles = QSwitch(width=wS, height=hS)
|
self.novelFiles = QSwitch(width=wS, height=hS)
|
||||||
self.novelFiles.setToolTip(self.tr(
|
self.novelFiles.setToolTip(self.tr("Include files with layouts {0}.").format(
|
||||||
"Include files with layouts 'Book', 'Page', 'Partition', "
|
self.locale().createSeparatedList([
|
||||||
"'Chapter', 'Unnumbered', and 'Scene'."
|
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.novelFiles.setChecked(
|
||||||
self.optState.getBool("GuiBuildNovel", "addNovel", True)
|
self.optState.getBool("GuiBuildNovel", "addNovel", True)
|
||||||
)
|
)
|
||||||
|
|
||||||
self.noteFiles = QSwitch(width=wS, height=hS)
|
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.noteFiles.setChecked(
|
||||||
self.optState.getBool("GuiBuildNovel", "addNotes", False)
|
self.optState.getBool("GuiBuildNovel", "addNotes", False)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user