From 9b3225014649aabef247aea4fe9fedba33403e10 Mon Sep 17 00:00:00 2001 From: gdd Date: Wed, 14 Sep 2011 08:42:44 +0000 Subject: [PATCH] Convert text to Qt::tr --- src/SMESHGUI/SMESHGUI.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 94f893e5e..5d37f2aeb 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -4364,10 +4364,10 @@ void SMESHGUI::createPreferences() setPreferenceProperty( dispgroup, "columns", 2 ); int dispmode = addPreference( tr( "PREF_DISPLAY_MODE" ), dispgroup, LightApp_Preferences::Selector, "SMESH", "display_mode" ); QStringList modes; - modes.append( "Wireframe" ); - modes.append( "Shading" ); - modes.append( "Nodes" ); - modes.append( "Shrink" ); + modes.append( tr("MEN_WIRE") ); + modes.append( tr("MEN_SHADE") ); + modes.append( tr("MEN_NODES") ); + modes.append( tr("MEN_SHRINK") ); QList indices; indices.append( 0 ); indices.append( 1 ); @@ -4380,8 +4380,8 @@ void SMESHGUI::createPreferences() setPreferenceProperty( arcgroup, "columns", 2 ); int quadraticmode = addPreference( tr( "QUADRATIC_REPRESENT_MODE" ), arcgroup, LightApp_Preferences::Selector, "SMESH", "quadratic_mode" ); QStringList quadraticModes; - quadraticModes.append("Lines"); - quadraticModes.append("Arcs"); + quadraticModes.append(tr("MEN_LINE_REPRESENTATION")); + quadraticModes.append(tr("MEN_ARC_REPRESENTATION")); indices.clear(); indices.append( 0 ); indices.append( 1 ); -- 2.39.2