diff options
author | Loren Shih <seraph@lindenlab.com> | 2010-07-23 10:13:11 -0400 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2010-07-23 10:13:11 -0400 |
commit | 056685d9d4ac82aad45e46ae5d5226690d416513 (patch) | |
tree | 7f20ea566ee324303582b83c62530b6fa7d7bf98 /indra/newview/llworldmap.cpp | |
parent | 75cfa9a0c3c15e3a472a4c4fd2462402a3a766a0 (diff) | |
parent | 77911533dc68731f50f40b18cd44e287df28f476 (diff) |
automated merge
Diffstat (limited to 'indra/newview/llworldmap.cpp')
-rw-r--r-- | indra/newview/llworldmap.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llworldmap.cpp b/indra/newview/llworldmap.cpp index 66cb02ce99..9bbe005de8 100644 --- a/indra/newview/llworldmap.cpp +++ b/indra/newview/llworldmap.cpp @@ -37,6 +37,7 @@ #include "llworldmapmessage.h" #include "message.h" #include "lltracker.h" +#include "lluistring.h" #include "llviewertexturelist.h" #include "lltrans.h" @@ -522,8 +523,12 @@ bool LLWorldMap::insertItem(U32 x_world, U32 y_world, std::string& name, LLUUID& case MAP_ITEM_LAND_FOR_SALE: // land for sale case MAP_ITEM_LAND_FOR_SALE_ADULT: // adult land for sale { - std::string tooltip = llformat("%d sq. m. L$%d", extra, extra2); - new_item.setTooltip(tooltip); + static LLUIString tooltip_fmt = LLTrans::getString("worldmap_item_tooltip_format"); + + tooltip_fmt.setArg("[AREA]", llformat("%d", extra)); + tooltip_fmt.setArg("[PRICE]", llformat("%d", extra2)); + new_item.setTooltip(tooltip_fmt.getString()); + if (type == MAP_ITEM_LAND_FOR_SALE) { siminfo->insertLandForSale(new_item); |