From f1b5e5eb07eef5bd7c2d48c549fc6df9369810d5 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 23 Jul 2016 14:56:44 -0700 Subject: [PATCH] move comment lines higher, to keep out of gramps.pot The problem is that "nearby" comments are put into the gramps.pot template, to aid the translator, but these comments are referring to an untranslated string, which then confuses the translator, who wonders if the string flagged for translation should be translated after all. The solution is to move the comment futher away, so it is no longer "nearby" the translated string. http://gramps.1791082.n4.nabble.com/Fw-Translation-question-td4676138.html --- gramps/plugins/docgen/asciidoc.py | 4 +++- gramps/plugins/docgen/svgdrawdoc.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/docgen/asciidoc.py b/gramps/plugins/docgen/asciidoc.py index 926f9e43e..072059806 100644 --- a/gramps/plugins/docgen/asciidoc.py +++ b/gramps/plugins/docgen/asciidoc.py @@ -457,7 +457,9 @@ class AsciiDocOptions(DocOptions): """ Add options to the document menu for the AsciiDoc docgen. """ - category_name = 'Document Options' # internal name: don't translate + + # next line for internal use only, never will be in UI: don't translate + category_name = 'Document Options' linechars = NumberOption(_('Characters per line'), 72, 20, 9999) linechars.set_help(_("The number of characters per line")) diff --git a/gramps/plugins/docgen/svgdrawdoc.py b/gramps/plugins/docgen/svgdrawdoc.py index adad8a03c..f430fdb93 100644 --- a/gramps/plugins/docgen/svgdrawdoc.py +++ b/gramps/plugins/docgen/svgdrawdoc.py @@ -334,7 +334,9 @@ class SvgDrawDocOptions(DocOptions): """ Add options to the document menu for the docgen. """ - category_name = 'Document Options' # internal name: don't translate + + # next line for internal use only, never will be in UI: don't translate + category_name = 'Document Options' background = EnumeratedListOption(_('SVG background color'), 'transparent')