mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
Add overloaded translate() that takes CharPointer_UTF8
This commit is contained in:
@@ -150,26 +150,12 @@ LocalisedStrings* LocalisedStrings::getCurrentMappings()
|
||||
return currentMappings;
|
||||
}
|
||||
|
||||
String LocalisedStrings::translateWithCurrentMappings (const String& text)
|
||||
{
|
||||
return beast::translate (text);
|
||||
}
|
||||
String LocalisedStrings::translateWithCurrentMappings (const String& text) { return beast::translate (text); }
|
||||
String LocalisedStrings::translateWithCurrentMappings (const char* text) { return beast::translate (text); }
|
||||
|
||||
String LocalisedStrings::translateWithCurrentMappings (const char* text)
|
||||
{
|
||||
return beast::translate (String (text));
|
||||
}
|
||||
|
||||
String translate (const String& text)
|
||||
{
|
||||
return translate (text, text);
|
||||
}
|
||||
|
||||
String translate (const char* const literal)
|
||||
{
|
||||
const String text (literal);
|
||||
return translate (text, text);
|
||||
}
|
||||
String translate (const String& text) { return beast::translate (text, text); }
|
||||
String translate (const char* text) { return beast::translate (String (text)); }
|
||||
String translate (CharPointer_UTF8 text) { return beast::translate (String (text)); }
|
||||
|
||||
String translate (const String& text, const String& resultIfNotFound)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user