diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2009-10-20 18:21:34 +0000 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2009-10-20 18:21:34 +0000 |
commit | 2156b0ca60706e563fabd1f02d9b02462f763e87 (patch) | |
tree | 5bcd4e8b78848474b5ec7cc64b78324ea6c101dd /indra/newview/lllocationinputctrl.cpp | |
parent | 25639b267db13f86f8446c10d61c814839920bc3 (diff) |
EXT-1479: I18N: string in /en/widgets/location_input.xml wont honor its translation
Pulling these out of widgets and putting them in strings.xml for the sake of the translation tools.
reviewed by James
Diffstat (limited to 'indra/newview/lllocationinputctrl.cpp')
-rw-r--r-- | indra/newview/lllocationinputctrl.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/indra/newview/lllocationinputctrl.cpp b/indra/newview/lllocationinputctrl.cpp index a3296dbffc..42838b311b 100644 --- a/indra/newview/lllocationinputctrl.cpp +++ b/indra/newview/lllocationinputctrl.cpp @@ -159,9 +159,7 @@ LLLocationInputCtrl::Params::Params() add_landmark_image_selected("add_landmark_image_selected"), add_landmark_button("add_landmark_button"), add_landmark_hpad("add_landmark_hpad", 0), - info_button("info_button"), - add_landmark_tool_tip("add_landmark_tool_tip"), - edit_landmark_tool_tip("edit_landmark_tool_tip") + info_button("info_button") { } @@ -172,9 +170,7 @@ LLLocationInputCtrl::LLLocationInputCtrl(const LLLocationInputCtrl::Params& p) mLocationContextMenu(NULL), mAddLandmarkBtn(NULL), mLandmarkImageOn(NULL), - mLandmarkImageOff(NULL), - mAddLandmarkTooltip(p.add_landmark_tool_tip), - mEditLandmarkTooltip(p.edit_landmark_tool_tip) + mLandmarkImageOff(NULL) { // Lets replace default LLLineEditor with LLLocationLineEditor // to make needed escaping while copying and cutting url @@ -265,6 +261,9 @@ LLLocationInputCtrl::LLLocationInputCtrl(const LLLocationInputCtrl::Params& p) mAddLandmarkObserver = new LLAddLandmarkObserver(this); gInventory.addObserver(mRemoveLandmarkObserver); gInventory.addObserver(mAddLandmarkObserver); + + mAddLandmarkTooltip = LLTrans::getString("LocationCtrlAddLandmarkTooltip"); + mEditLandmarkTooltip = LLTrans::getString("LocationCtrlEditLandmarkTooltip"); } LLLocationInputCtrl::~LLLocationInputCtrl() |