From 8b1599c40861557741bdf9bfd6c55457aa07fe08 Mon Sep 17 00:00:00 2001 From: pabs Date: Sun, 9 Dec 2007 12:08:44 +0000 Subject: [PATCH] Fix i18n issue: "Show __ ducks" strings were generated with macros, preventing them from being put in the .pot file. Use full strings and use uppercase so the similar strings in app.cpp are not duplicated. Thanks to Aurore D. git-svn-id: http://svn.voria.com/code@1189 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/canvasview.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index 400aa02..ecd8088 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -1357,8 +1357,8 @@ CanvasView::init_menus() } -#define DUCK_MASK(lower,upper) \ - duck_mask_##lower=Gtk::ToggleAction::create("mask-" #lower "-ducks", _("Show "#lower" ducks")); \ +#define DUCK_MASK(lower,upper,string) \ + duck_mask_##lower=Gtk::ToggleAction::create("mask-" #lower "-ducks", string); \ duck_mask_##lower->set_active((bool)(work_area->get_type_mask()&Duck::TYPE_##upper)); \ action_group->add( duck_mask_##lower, \ sigc::bind( \ @@ -1366,12 +1366,12 @@ CanvasView::init_menus() Duck::TYPE_##upper \ ) \ ) - DUCK_MASK(position,POSITION); - DUCK_MASK(tangent,TANGENT); - DUCK_MASK(vertex,VERTEX); - DUCK_MASK(radius,RADIUS); - DUCK_MASK(width,WIDTH); - DUCK_MASK(angle,ANGLE); + DUCK_MASK(position,POSITION,_("Show Position Ducks")); + DUCK_MASK(tangent,TANGENT,_("Show Tangent Ducks")); + DUCK_MASK(vertex,VERTEX,_("Show Vertex Ducks")); + DUCK_MASK(radius,RADIUS,_("Show Radius Ducks")); + DUCK_MASK(width,WIDTH,_("Show Width Ducks")); + DUCK_MASK(angle,ANGLE,_("Show Angle Ducks")); #undef DUCK_MASK add_accel_group(App::ui_manager()->get_accel_group()); -- 2.7.4