From: dooglus Date: Sat, 5 Jan 2008 11:50:03 +0000 (+0000) Subject: Added code to catch an exception that is raised when we try using the Spanish transla... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6bd801f5838b112a89ebdbc268629b7bf42ff740;p=synfig.git Added code to catch an exception that is raised when we try using the Spanish translation of synfig-core (if there's an accented character in any of the layer category names, as in "Geometry" -> "GeometrĂ­a"). git-svn-id: http://svn.voria.com/code@1266 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/dock_layers.cpp b/synfig-studio/trunk/src/gtkmm/dock_layers.cpp index 6cd19a1..1a6ec00 100644 --- a/synfig-studio/trunk/src/gtkmm/dock_layers.cpp +++ b/synfig-studio/trunk/src/gtkmm/dock_layers.cpp @@ -127,7 +127,17 @@ Dock_Layers::Dock_Layers(): App::ui_manager()->insert_action_group(action_group_categories); App::ui_manager()->insert_action_group(action_group_new_layers); - App::ui_manager()->add_ui_from_string(layer_ui_info); + + try + { + App::ui_manager()->add_ui_from_string(layer_ui_info); + } + catch(Glib::MarkupError x) + { + error("%s:%d caught MarkupError code %d: %s", __FILE__, __LINE__, x.code(), x.what().c_str()); + error("%s:%d with markup: \"%s\"", __FILE__, __LINE__, layer_ui_info.c_str()); + exit(1); + } }