CURRENCY added as a default token replacement within LLTrans. (Will be useful when strings are migrated from ui xmls to strings.xml). Also, fixed compile (missed llwindowcallbacks.cpp in my previous commit)
This commit is contained in:
@@ -113,3 +113,7 @@ std::string LLTrans::getString(const std::string &xml_desc, const LLStringUtil::
|
||||
}
|
||||
}
|
||||
|
||||
void LLTrans::setDefaultArg(const std::string& name, const std::string& value)
|
||||
{
|
||||
sDefaultArgs[name] = value;
|
||||
}
|
||||
|
||||
@@ -85,6 +85,7 @@ public:
|
||||
return getString(xml_desc, empty);
|
||||
}
|
||||
|
||||
static void setDefaultArg(const std::string& name, const std::string& value);
|
||||
|
||||
private:
|
||||
typedef std::map<std::string, LLTransTemplate > template_map_t;
|
||||
|
||||
@@ -187,3 +187,14 @@ void LLWindowCallbacks::handleResumeWatchdog(LLWindow *window)
|
||||
|
||||
}
|
||||
|
||||
std::string LLWindowCallbacks::translateString(const char* tag)
|
||||
{
|
||||
return std::string();
|
||||
}
|
||||
|
||||
//virtual
|
||||
std::string LLWindowCallbacks::translateString(const char* tag,
|
||||
const std::map<std::string, std::string>& args)
|
||||
{
|
||||
return std::string();
|
||||
}
|
||||
|
||||
@@ -377,6 +377,7 @@ void init_default_trans_args()
|
||||
default_trans_args.insert("CAPITALIZED_APP_NAME");
|
||||
default_trans_args.insert("SECOND_LIFE_GRID");
|
||||
default_trans_args.insert("SUPPORT_SITE");
|
||||
default_trans_args.insert("CURRENCY");
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
@@ -990,7 +990,8 @@ bool idle_startup()
|
||||
}
|
||||
|
||||
gHippoGridManager->setCurrentGridAsConnected();
|
||||
gHippoLimits->setLimits();
|
||||
gHippoLimits->setLimits();
|
||||
LLTrans::setDefaultArg("CURRENCY",gHippoGridManager->getConnectedGrid()->getCurrencySymbol()); //replace [CURRENCY] with OS$, not L$ for instance.
|
||||
|
||||
// create necessary directories
|
||||
// *FIX: these mkdir's should error check
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
that are returned from one component and may appear in many places-->
|
||||
<strings>
|
||||
|
||||
<string name="CURRENCY">L$</string>
|
||||
<string name="hippo_label_free">free</string>
|
||||
<string name="hippo_label_week">week</string>
|
||||
<string name="TeleportOfferMaturity">
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
For example, the strings used in avatar chat bubbles, and strings
|
||||
that are returned from one component and may appear in many places-->
|
||||
<strings>
|
||||
<string name="CURRENCY">L$</string>
|
||||
<string name="SECOND_LIFE">
|
||||
Second Life
|
||||
</string>
|
||||
|
||||
Reference in New Issue
Block a user