diff options
author | Paul ProductEngine <pguslisty@productengine.com> | 2011-08-17 16:29:20 +0300 |
---|---|---|
committer | Paul ProductEngine <pguslisty@productengine.com> | 2011-08-17 16:29:20 +0300 |
commit | 1d4ccaeb74641ebf199072c8568e26f8fe002d32 (patch) | |
tree | 68d5da434a564eab4e986ebc7efd78bd99c990a5 /indra | |
parent | 5b1ad2f83caffe7d625b1b718ad8483cb51ae1ab (diff) |
SH-2285 FIXED Add localization capability to mesh uploader strings
- Added the convex decomposition strings to the strings.xml
- Added names to hardcoded strings.
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llfloatermodelpreview.cpp | 7 | ||||
-rwxr-xr-x | indra/newview/skins/default/xui/en/floater_model_preview.xml | 28 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/strings.xml | 8 |
3 files changed, 28 insertions, 15 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index c8f4c3ac36..609fb42cc6 100755 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -96,6 +96,7 @@ #include "llsliderctrl.h" #include "llspinctrl.h" #include "lltoggleablemenu.h" +#include "lltrans.h" #include "llvfile.h" #include "llvfs.h" #include "llcallbacklist.h" @@ -1154,7 +1155,11 @@ void LLFloaterModelPreview::initDecompControls() //llinfos << param[i].mDetails.mEnumValues.mEnumsArray[k].mValue // << " - " << param[i].mDetails.mEnumValues.mEnumsArray[k].mName << llendl; - combo_box->add(param[i].mDetails.mEnumValues.mEnumsArray[k].mName, + std::string name(param[i].mDetails.mEnumValues.mEnumsArray[k].mName); + std::string localized_name; + bool is_localized = LLTrans::findString(localized_name, name); + + combo_box->add(is_localized ? localized_name : name, LLSD::Integer(param[i].mDetails.mEnumValues.mEnumsArray[k].mValue)); } combo_box->setValue(param[i].mDefault.mIntOrEnumValue); diff --git a/indra/newview/skins/default/xui/en/floater_model_preview.xml b/indra/newview/skins/default/xui/en/floater_model_preview.xml index c52f48cfaf..ec18f1948b 100755 --- a/indra/newview/skins/default/xui/en/floater_model_preview.xml +++ b/indra/newview/skins/default/xui/en/floater_model_preview.xml @@ -220,9 +220,9 @@ L$ [MODEL] Select Level of Detail: </text> - <text valign="center" halign="center" bg_visible="true" bottom_delta="16" left="75" width="65" height="18" follows="left|top" value="Triangles"/> - <text valign="center" halign="center" bg_visible="true" left_pad="0" width="65" height="18" follows="left|top" value="Vertices"/> - <text valign="center" halign="center" left_pad="0" width="65" bg_visible="true" height="18" follows="left|top" value="Status"/> + <text valign="center" halign="center" bg_visible="true" bottom_delta="16" left="75" name="triangles" width="65" height="18" follows="left|top" value="Triangles"/> + <text valign="center" halign="center" bg_visible="true" left_pad="0" width="65" name="vertices" height="18" follows="left|top" value="Vertices"/> + <text valign="center" halign="center" left_pad="0" name="status" width="65" bg_visible="true" height="18" follows="left|top" value="Status"/> <text valign="center" halign="center" bg_visible="true" name="high_label" left="10" top_pad="0" width="65" height="18" follows="left|top" value="High"/> <text valign="center" halign="center" bg_visible="true" name="high_triangles" left_pad="0" width="65" height="18" follows="left|top" value="0"/> @@ -268,7 +268,7 @@ L$ [MODEL] border="true" bevel_style="none" bg_alpha_color="0 0 0 0" bg_opaque_color="0 0 0 0.3"> - <text top_pad="5" left="10" height="15" follows="left|top"> + <text top_pad="5" left="10" name="mesh_label" height="15" follows="left|top"> Mesh </text> @@ -350,7 +350,7 @@ L$ [MODEL] border="true" bevel_style="none" bg_alpha_color="0 0 0 0" bg_opaque_color="0 0 0 0.3"> - <text left="10" top_pad="5" follows="top|left" width="240" height="15"> + <text left="10" name="gen_normals_label" top_pad="5" follows="top|left" width="240" height="15"> Generate Normals </text> <text left="35" top_pad="5" follows="top|left" width="100" height="15" name="crease_label"> @@ -422,15 +422,15 @@ L$ [MODEL] border="true" bevel_style="none" bg_alpha_color="0 0 0 0" bg_opaque_color="0 0 0 0.3"> - <text follows="left|top" bottom="40" height="30" left="10" font="SansSerifBig"> + <text follows="left|top" bottom="40" height="30" left="10" name="method_label" font="SansSerifBig"> Step 1: Analysis </text> - <text top_pad="5" width="50" follows="top|left" height="15"> + <text name="analysis_method_label" top_pad="5" width="50" follows="top|left" height="15"> Method: </text> <combo_box name="Method" follows="top|left" left_pad="5" bottom_delta="2" height="20" width="80"/> - <text left="160" bottom_delta="-2" width="50" follows="top|left" height="15"> + <text left="160" name="quality_label" bottom_delta="-2" width="50" follows="top|left" height="15"> Quality: </text> <combo_box name="Decompose Quality" bottom_delta="2" follows="top|left" left_pad="5" height="20" width="80"/> @@ -456,11 +456,11 @@ L$ [MODEL] border="true" bevel_style="none" bg_alpha_color="0 0 0 0" bg_opaque_color="0 0 0 0.3"> - <text follows="left|top" bottom="40" height="30" left="10" font="SansSerifBig"> + <text follows="left|top" bottom="40" height="30" left="10" name="second_step_label" font="SansSerifBig"> Step 2: Simplification </text> - <text left="10" top_pad="5" height="15" width="140" follows="top|left"> + <text left="10" name="simp_method_header" top_pad="5" height="15" width="140" follows="top|left"> Method: </text> @@ -509,10 +509,10 @@ L$ [MODEL] name="modifiers_panel" help_topic="upload_model_modifiers"> - <text left="10" width="90" bottom="30" follows="top|left" height="15"> + <text left="10" name="scale_label" width="90" bottom="30" follows="top|left" height="15"> Scale: </text> - <text left_pad="5" width="140" follows="top|left" height="15"> + <text left_pad="5" name="dimensions_label" width="140" follows="top|left" height="15"> Dimensions: </text> @@ -522,7 +522,7 @@ L$ [MODEL] [X] x [Y] x [Z] m </text> - <text left="10" top_pad="20" follows="top|left" height="15"> + <text left="10" name="include_label" top_pad="20" follows="top|left" height="15"> Include: </text> @@ -530,7 +530,7 @@ L$ [MODEL] <check_box top_pad="5" name="upload_skin" height="15" follows="top|left" label="Skin weight"/> <check_box top_pad="5" left="20" name="upload_joints" height="15" follows="top|left" label="Joint positions"/> - <text left="10" top_pad="4" width="90" bottom="30" follows="top|left" height="15"> + <text left="10" name="pelvis_offset_label" top_pad="4" width="90" bottom="30" follows="top|left" height="15"> Pelvis Z Offset: </text> diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index f049f857f0..72b412efe2 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -3625,5 +3625,13 @@ Try enclosing path to the editor with double quotes. <string name="BeaconSound">Viewing sound beacons (yellow)</string> <string name="BeaconMedia">Viewing media beacons (white)</string> <string name="ParticleHiding">Hiding Particles</string> + + <!-- Mesh UI terms --> + <string name="Retain%">Retain%</string> + <string name="Detail">Detail</string> + <string name="Better Detail">Better Detail</string> + <string name="Surface">Surface</string> + <string name="Solid">Solid</string> + <string name="Wrap">Wrap</string> </strings> |