From: johanengelen Date: Thu, 30 Aug 2007 18:52:35 +0000 (+0000) Subject: Try to fix translation of LPE names. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5dff98c06d7e74e96496c7e887afa8fba6405d60;p=inkscape.git Try to fix translation of LPE names. --- diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index d13de7f9e..30a90d834 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -37,14 +37,14 @@ namespace Inkscape { namespace LivePathEffect { const Util::EnumData LPETypeData[INVALID_LPE] = { - // {constant defined in effect.h, _("name of your effect"), "name of your effect in SVG"} - {SKELETAL_STROKES, _("Path along path"), "skeletal"}, + // {constant defined in effect.h, N_("name of your effect"), "name of your effect in SVG"} + {SKELETAL_STROKES, N_("Path along path"), "skeletal"}, #ifdef LPE_ENABLE_TEST_EFFECTS - {SLANT, _("Slant"), "slant"}, - {DOEFFECTSTACK_TEST, _("doEffect stack test"), "doeffectstacktest"}, + {SLANT, N_("Slant"), "slant"}, + {DOEFFECTSTACK_TEST, N_("doEffect stack test"), "doeffectstacktest"}, #endif - {GEARS, _("Gears"), "gears"}, - {CURVE_STITCH, _("Curve stitching"), "curvestitching"}, + {GEARS, N_("Gears"), "gears"}, + {CURVE_STITCH, N_("Curve stitching"), "curvestitching"}, }; const Util::EnumDataConverter LPETypeConverter(LPETypeData, INVALID_LPE); @@ -101,7 +101,7 @@ Glib::ustring Effect::getName() { if (lpeobj->effecttype_set && lpeobj->effecttype < INVALID_LPE) - return Glib::ustring( LPETypeConverter.get_label(lpeobj->effecttype) ); + return Glib::ustring( _(LPETypeConverter.get_label(lpeobj->effecttype).c_str()) ); else return Glib::ustring( _("No effect") ); } diff --git a/src/ui/widget/combo-enums.h b/src/ui/widget/combo-enums.h index 22aa55dab..555069b4a 100644 --- a/src/ui/widget/combo-enums.h +++ b/src/ui/widget/combo-enums.h @@ -41,7 +41,7 @@ public: Gtk::TreeModel::Row row = *_model->append(); const Util::EnumData* data = &_converter.data(i); row[_columns.data] = data; - row[_columns.label] = _converter.get_label(data->id); + row[_columns.label] = _( _converter.get_label(data->id).c_str() ); } set_active(0);