The word "Synopsis" should be translated to GUI language when it appears in document viewer
This commit is contained in:
+250
-240
File diff suppressed because it is too large
Load Diff
+250
-240
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -405,10 +405,11 @@ class ToHtml(Tokenizer):
|
|||||||
def _formatSynopsis(self, tText):
|
def _formatSynopsis(self, tText):
|
||||||
"""Apply HTML formatting to synopsis.
|
"""Apply HTML formatting to synopsis.
|
||||||
"""
|
"""
|
||||||
sSynop = self._localLookup("Synopsis")
|
|
||||||
if self.genMode == self.M_PREVIEW:
|
if self.genMode == self.M_PREVIEW:
|
||||||
|
sSynop = self._trSynopsis
|
||||||
return f"<p class='comment'><span class='synopsis'>{sSynop}:</span> {tText}</p>\n"
|
return f"<p class='comment'><span class='synopsis'>{sSynop}:</span> {tText}</p>\n"
|
||||||
else:
|
else:
|
||||||
|
sSynop = self._localLookup("Synopsis")
|
||||||
return f"<p class='synopsis'><strong>{sSynop}:</strong> {tText}</p>\n"
|
return f"<p class='synopsis'><strong>{sSynop}:</strong> {tText}</p>\n"
|
||||||
|
|
||||||
def _formatComments(self, tText):
|
def _formatComments(self, tText):
|
||||||
|
|||||||
@@ -147,6 +147,9 @@ class Tokenizer():
|
|||||||
self._localLookup = self.theProject.localLookup
|
self._localLookup = self.theProject.localLookup
|
||||||
self.tr = partial(QCoreApplication.translate, "Tokenizer")
|
self.tr = partial(QCoreApplication.translate, "Tokenizer")
|
||||||
|
|
||||||
|
# Cached Translations
|
||||||
|
self._trSynopsis = self.tr("Synopsis")
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|||||||
Reference in New Issue
Block a user