]> git.tokkee.org Git - inkscape.git/commitdiff

Code

r11675@tres: ted | 2006-05-05 21:28:44 -0700
authorgouldtj <gouldtj@users.sourceforge.net>
Sat, 6 May 2006 16:02:03 +0000 (16:02 +0000)
committergouldtj <gouldtj@users.sourceforge.net>
Sat, 6 May 2006 16:02:03 +0000 (16:02 +0000)
 Making it so that menu-name and menu-tip are translatable.

src/extension/effect.cpp

index 78af878d35d72744a10aac3f4202e66cb998347e..aefdeefa75a875de03056715fad4f150fe794a69 100644 (file)
@@ -42,11 +42,13 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation *
                         // printf("Found local effects menu in %s\n", this->get_name());
                         local_effects_menu = sp_repr_children(child_repr);
                     }
-                    if (!strcmp(child_repr->name(), "menu-name")) {
+                    if (!strcmp(child_repr->name(), "menu-name") ||
+                            !strcmp(child_repr->name(), "_menu-name")) {
                         // printf("Found local effects menu in %s\n", this->get_name());
                         _verb.set_name(sp_repr_children(child_repr)->content());
                     }
-                    if (!strcmp(child_repr->name(), "menu-tip")) {
+                    if (!strcmp(child_repr->name(), "menu-tip") ||
+                            !strcmp(child_repr->name(), "_menu-tip")) {
                         // printf("Found local effects menu in %s\n", this->get_name());
                         _verb.set_tip(sp_repr_children(child_repr)->content());
                     }