diff options
author | McCabe Maxsted | 2010-04-26 20:06:23 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-04-26 20:06:23 -0700 |
commit | e563e2c2cc66fa9f3b47c4814d70f9800d957026 (patch) | |
tree | a2a9ca5bfeaf747b76b744f007da061ad15110c2 /linden/indra/llinventory/lltransactionflags.cpp | |
parent | Merge commit 'jacek/next' into next (diff) | |
download | meta-impy-e563e2c2cc66fa9f3b47c4814d70f9800d957026.zip meta-impy-e563e2c2cc66fa9f3b47c4814d70f9800d957026.tar.gz meta-impy-e563e2c2cc66fa9f3b47c4814d70f9800d957026.tar.bz2 meta-impy-e563e2c2cc66fa9f3b47c4814d70f9800d957026.tar.xz |
Ported currency changes from Hippo (#237) and fixed some labels Hippo missed (also fixed #200 in the process)
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llinventory/lltransactionflags.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/linden/indra/llinventory/lltransactionflags.cpp b/linden/indra/llinventory/lltransactionflags.cpp index e0f87aa..aaea161 100644 --- a/linden/indra/llinventory/lltransactionflags.cpp +++ b/linden/indra/llinventory/lltransactionflags.cpp | |||
@@ -36,7 +36,9 @@ | |||
36 | #include "lluuid.h" | 36 | #include "lluuid.h" |
37 | #include "lltransactionflags.h" | 37 | #include "lltransactionflags.h" |
38 | #include "lltransactiontypes.h" | 38 | #include "lltransactiontypes.h" |
39 | 39 | ||
40 | #include "../newview/hippoGridManager.h" | ||
41 | |||
40 | const U8 TRANSACTION_FLAGS_NONE = 0; | 42 | const U8 TRANSACTION_FLAGS_NONE = 0; |
41 | const U8 TRANSACTION_FLAG_SOURCE_GROUP = 1; | 43 | const U8 TRANSACTION_FLAG_SOURCE_GROUP = 1; |
42 | const U8 TRANSACTION_FLAG_DEST_GROUP = 2; | 44 | const U8 TRANSACTION_FLAG_DEST_GROUP = 2; |
@@ -114,7 +116,7 @@ std::string build_transfer_message_to_source( | |||
114 | std::ostringstream ostr; | 116 | std::ostringstream ostr; |
115 | if(dest_id.isNull()) | 117 | if(dest_id.isNull()) |
116 | { | 118 | { |
117 | ostr << "You paid L$" << amount; | 119 | ostr << "You paid " << gHippoGridManager->getConnectedGrid()->getCurrencySymbol() << amount; |
118 | switch(transaction_type) | 120 | switch(transaction_type) |
119 | { | 121 | { |
120 | case TRANS_GROUP_CREATE: | 122 | case TRANS_GROUP_CREATE: |
@@ -132,7 +134,7 @@ std::string build_transfer_message_to_source( | |||
132 | } | 134 | } |
133 | else | 135 | else |
134 | { | 136 | { |
135 | ostr << "You paid " << dest_name << " L$" << amount; | 137 | ostr << "You paid " << dest_name << ' ' << gHippoGridManager->getConnectedGrid()->getCurrencySymbol() << amount; |
136 | append_reason(ostr, transaction_type, description); | 138 | append_reason(ostr, transaction_type, description); |
137 | } | 139 | } |
138 | ostr << "."; | 140 | ostr << "."; |
@@ -160,7 +162,7 @@ std::string build_transfer_message_to_destination( | |||
160 | return description; | 162 | return description; |
161 | } | 163 | } |
162 | std::ostringstream ostr; | 164 | std::ostringstream ostr; |
163 | ostr << source_name << " paid you L$" << amount; | 165 | ostr << source_name << " paid you " << gHippoGridManager->getConnectedGrid()->getCurrencySymbol() << amount; |
164 | append_reason(ostr, transaction_type, description); | 166 | append_reason(ostr, transaction_type, description); |
165 | ostr << "."; | 167 | ostr << "."; |
166 | return ostr.str(); | 168 | return ostr.str(); |