diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2014-05-11 11:57:14 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2014-05-11 11:57:14 +0000 |
| commit | f9b46a56e41c1fb0d743ae381394b2245f264fc8 (patch) | |
| tree | 6490b5098006b314fe3e7f8dddd65628cb8aeb68 | |
| parent | Add closePath(). (diff) | |
| download | inkscape-f9b46a56e41c1fb0d743ae381394b2245f264fc8.tar.gz inkscape-f9b46a56e41c1fb0d743ae381394b2245f264fc8.zip | |
i18n. Fix for bug #1318289 (preferences > bitmap > rendering shows po file headers).
Fixed bugs:
- https://launchpad.net/bugs/1318289
(bzr r13350)
| -rwxr-xr-x | share/filters/i18n.py | 19 | ||||
| -rw-r--r-- | src/ui/dialog/inkscape-preferences.cpp | 2 |
2 files changed, 12 insertions, 9 deletions
diff --git a/share/filters/i18n.py b/share/filters/i18n.py index d13f007b1..4c10da6e1 100755 --- a/share/filters/i18n.py +++ b/share/filters/i18n.py @@ -10,14 +10,17 @@ filters = doc.getElementsByTagName('filter') sys.stdout.write("char * stringlst = [") for filter in filters: - label = filter.getAttribute('inkscape:label') - menu = filter.getAttribute('inkscape:menu') - desc = filter.getAttribute('inkscape:menu-tooltip') - comment = "" + label = "N_(\"" + filter.getAttribute('inkscape:label') + "\")" + menu = "N_(\"" + filter.getAttribute('inkscape:menu') + "\")" + if (filter.getAttribute('inkscape:menu-tooltip')): + desc = "N_(\"" + filter.getAttribute('inkscape:menu-tooltip') + "\")" + else: + desc = "" + comment = "" - if "NR" in label: - comment = '/* TRANSLATORS: NR means non-realistic. See menu Filters > Non realistic shaders */\n' - - sys.stdout.write(comment + "N_(\"" + label + "\"), N_(\"" + menu + "\"), N_(\"" + desc + "\"),") + if "NR" in label: + comment = '/* TRANSLATORS: NR means non-realistic. See menu Filters > Non realistic shaders */\n' + + sys.stdout.write(comment + "\n" + label + ",\n" + menu + ",\n" + desc + ",\n") sys.stdout.write("];") diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index b6095fa8b..f1a29e971 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -1468,7 +1468,7 @@ void InkscapePreferences::initPageBitmaps() _page_bitmaps.add_group_header( _("Render")); // rendering outlines for pixmap image tags _rendering_image_outline.init( _("Images in Outline Mode"), "/options/rendering/imageinoutlinemode", false); - _page_bitmaps.add_line(false, _(""), _rendering_image_outline, "", _("When active will render images while in outline mode instead of a red box with an x. This is useful for manual tracing.")); + _page_bitmaps.add_line(false, "", _rendering_image_outline, "", _("When active will render images while in outline mode instead of a red box with an x. This is useful for manual tracing.")); this->AddPage(_page_bitmaps, _("Bitmaps"), PREFS_PAGE_BITMAPS); } |
