diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2017-04-24 21:03:51 +0000 |
|---|---|---|
| committer | Eduard Braun <eduard.braun2@gmx.de> | 2017-04-24 21:03:51 +0000 |
| commit | 7d95624fa3769bb7e660cabff62df6cbb33e2317 (patch) | |
| tree | 132cfbb3f9423b0ce9fb4f923fb24e08989d16f7 /src/extension/param/description.cpp | |
| parent | Extensions: Fix "param"s of type "description" were always translated (as opp... (diff) | |
| download | inkscape-7d95624fa3769bb7e660cabff62df6cbb33e2317.tar.gz inkscape-7d95624fa3769bb7e660cabff62df6cbb33e2317.zip | |
Cleanup for previous commit
(bzr r15637)
Diffstat (limited to 'src/extension/param/description.cpp')
| -rw-r--r-- | src/extension/param/description.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/extension/param/description.cpp b/src/extension/param/description.cpp index 0a534d382..cf94918f7 100644 --- a/src/extension/param/description.cpp +++ b/src/extension/param/description.cpp @@ -39,7 +39,6 @@ ParamDescription::ParamDescription(const gchar * name, : Parameter(name, text, description, hidden, indent, ext) , _value(NULL) , _mode(mode) - , _preserve_whitespace(false) { // construct the text content by concatenating all (non-empty) text nodes, // removing all other nodes (e.g. comment nodes) and replacing <extension:br> elements with "<br/>" @@ -71,9 +70,9 @@ ParamDescription::ParamDescription(const gchar * name, // translate if underscored version (_param) was used if (g_str_has_prefix(xml->name(), "extension:_")) { - _context = xml->attribute("msgctxt"); - if (_context != NULL) { - value = g_dpgettext2(NULL, _context, value.c_str()); + const gchar * context = xml->attribute("msgctxt"); + if (context != NULL) { + value = g_dpgettext2(NULL, context, value.c_str()); } else { value = _(value.c_str()); } |
