summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3bf3dcf)
raw | patch | inline | side by side (parent: 3bf3dcf)
author | mfloryan <mfloryan@users.sourceforge.net> | |
Thu, 5 Feb 2009 10:00:57 +0000 (10:00 +0000) | ||
committer | mfloryan <mfloryan@users.sourceforge.net> | |
Thu, 5 Feb 2009 10:00:57 +0000 (10:00 +0000) |
src/extension/param/enum.cpp | patch | blob | history | |
src/extension/param/radiobutton.cpp | patch | blob | history |
index 9d324a47c71bc2c18a00c2f43e2347945205ebcb..89f54dada465d4a2c2d2b62057b305c40cbadc76 100644 (file)
@@ -64,15 +64,15 @@ 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, "extension:item") || !strcmp(chname, "extension:_item")) {
+ if (!strcmp(chname, INKSCAPE_EXTENSION_NS "item") || !strcmp(chname, INKSCAPE_EXTENSION_NS "_item")) {
Glib::ustring * newguitext = NULL;
Glib::ustring * newvalue = NULL;
const char * contents = sp_repr_children(child_repr)->content();
if (contents != NULL)
// don't translate when 'item' but do translate when '_item'
- // NOTE: internal extensions use build_from_mem and don't need _item but
- // still need to include if are to be localized
- newguitext = new Glib::ustring( !strcmp(chname, "extension:_item") ? _(contents) : contents );
+ // NOTE: internal extensions use build_from_mem and don't need _item but
+ // still need to include if are to be localized
+ newguitext = new Glib::ustring( !strcmp(chname, INKSCAPE_EXTENSION_NS "_item") ? _(contents): contents );
else
continue;
void
ParamComboBox::changed (void) {
-
+
}
index 1e4ba3c8f26a5dfc4baf4b474be53bfab1a75023..c17839001f94282b782325bc3f70931189851834 100644 (file)
Glib::ustring * newguitext = NULL;
Glib::ustring * newvalue = NULL;
const char * contents = sp_repr_children(child_repr)->content();
+
if (contents != NULL)
// don't translate when 'option' but do translate when '_option'
- newguitext = new Glib::ustring( !strcmp(chname, "_option") ? _(contents) : contents );
+ newguitext = new Glib::ustring( !strcmp(chname, INKSCAPE_EXTENSION_NS "_option") ? _(contents) : contents );
else
continue;