diff options
| author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-04-28 12:41:34 +0100 | 
|---|---|---|
| committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-04-28 12:41:34 +0100 | 
| commit | 47fa4bc01478d5ef0311aa491321bfb397777302 (patch) | |
| tree | 7d9ab0c14c56ece7b178dc9d8ab67633cd476af0 /indra/newview/llworldmapview.cpp | |
| parent | b740924c9dbb6a5697254ca238e099a62e7054a9 (diff) | |
| parent | 96df3f3eb1351973d140ba73b507de44b1052c89 (diff) | |
merge from viewer-trunk
Diffstat (limited to 'indra/newview/llworldmapview.cpp')
| -rw-r--r-- | indra/newview/llworldmapview.cpp | 16 | 
1 files changed, 4 insertions, 12 deletions
| diff --git a/indra/newview/llworldmapview.cpp b/indra/newview/llworldmapview.cpp index 151180aae7..081a3721b1 100644 --- a/indra/newview/llworldmapview.cpp +++ b/indra/newview/llworldmapview.cpp @@ -1072,18 +1072,10 @@ BOOL LLWorldMapView::handleToolTip( S32 x, S32 y, MASK mask )  			// zoomed out, so don't display anything about the count. JC  			if (agent_count > 0)  			{ -				// Merov: i18n horror!!! Even using gettext(), concatenating strings is not localizable.  -				// The singular/plural switch form here under might make no sense in some languages. Don't do that. -				message += llformat("\n%d ", agent_count); - -				if (agent_count == 1) -				{ -					message += "person"; -				} -				else -				{ -					message += "people"; -				} +				LLStringUtil::format_map_t string_args; +				string_args["[NUMBER]"] = llformat("%d", agent_count); +				message += '\n'; +				message += getString((agent_count == 1 ? "world_map_person" : "world_map_people") , string_args);  			}  		}  		tooltip_msg.assign( message ); | 
