summaryrefslogtreecommitdiffstats
path: root/src/extension/paramenum.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-11-15 22:35:11 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-11-15 22:35:11 +0000
commit62e5906176c7811792244137c612ef32204930c9 (patch)
treec92ac27bef43fd6ebb1ac08ccc819ea2294f0e11 /src/extension/paramenum.cpp
parentCleaning unnecessary lines. (diff)
downloadinkscape-62e5906176c7811792244137c612ef32204930c9.tar.gz
inkscape-62e5906176c7811792244137c612ef32204930c9.zip
INX files: <option>, <_option>, <item> and <_item> now all work. The underscored ones will be translated, the non-underscored ones won't.
(bzr r4087)
Diffstat (limited to 'src/extension/paramenum.cpp')
-rw-r--r--src/extension/paramenum.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/extension/paramenum.cpp b/src/extension/paramenum.cpp
index 1b1b83f6d..58c2d3a45 100644
--- a/src/extension/paramenum.cpp
+++ b/src/extension/paramenum.cpp
@@ -71,12 +71,13 @@ ParamComboBox::ParamComboBox (const gchar * name, const gchar * guitext, const g
Inkscape::XML::Node *child_repr = sp_repr_children(xml);
while (child_repr != NULL) {
char const * chname = child_repr->name();
- if (!strcmp(chname, "item")) {
+ if (!strcmp(chname, "item") || !strcmp(chname, "_item")) {
Glib::ustring * newguitext = NULL;
Glib::ustring * newvalue = NULL;
const char * contents = sp_repr_children(child_repr)->content();
if (contents != NULL)
- newguitext = new Glib::ustring( _(contents) );
+ // don't translate when 'item' but do translate when '_item'
+ newguitext = new Glib::ustring( !strcmp(chname, "_item") ? _(contents) : contents );
else
continue;