Grid currency, partial

This commit is contained in:
Siana Gearz
2011-02-11 19:56:30 +01:00
parent 1919c00f2d
commit d97f87b05f
82 changed files with 1164 additions and 1130 deletions

View File

@@ -36,6 +36,8 @@
#include "lluuid.h"
#include "lltransactionflags.h"
#include "lltransactiontypes.h"
#include "../newview/hippogridmanager.h"
const U8 TRANSACTION_FLAGS_NONE = 0;
const U8 TRANSACTION_FLAG_SOURCE_GROUP = 1;
@@ -114,7 +116,7 @@ std::string build_transfer_message_to_source(
std::ostringstream ostr;
if(dest_id.isNull())
{
ostr << "You paid L$" << amount;
ostr << "You paid " << gHippoGridManager->getConnectedGrid()->getCurrencySymbol() << amount;
switch(transaction_type)
{
case TRANS_GROUP_CREATE:
@@ -132,7 +134,7 @@ std::string build_transfer_message_to_source(
}
else
{
ostr << "You paid " << dest_name << " L$" << amount;
ostr << "You paid " << dest_name << ' ' << gHippoGridManager->getConnectedGrid()->getCurrencySymbol() << amount;
append_reason(ostr, transaction_type, description);
}
ostr << ".";
@@ -160,7 +162,7 @@ std::string build_transfer_message_to_destination(
return description;
}
std::ostringstream ostr;
ostr << source_name << " paid you L$" << amount;
ostr << source_name << " paid you " << gHippoGridManager->getConnectedGrid()->getCurrencySymbol() << amount;
append_reason(ostr, transaction_type, description);
ostr << ".";
return ostr.str();