mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added an overloaded translate() function that takes CharPointer_UTF8
This commit is contained in:
parent
29ada09816
commit
ea9e833e5d
2 changed files with 10 additions and 19 deletions
|
|
@ -155,26 +155,12 @@ LocalisedStrings* LocalisedStrings::getCurrentMappings()
|
|||
return currentMappings;
|
||||
}
|
||||
|
||||
String LocalisedStrings::translateWithCurrentMappings (const String& text)
|
||||
{
|
||||
return juce::translate (text);
|
||||
}
|
||||
String LocalisedStrings::translateWithCurrentMappings (const String& text) { return juce::translate (text); }
|
||||
String LocalisedStrings::translateWithCurrentMappings (const char* text) { return juce::translate (text); }
|
||||
|
||||
String LocalisedStrings::translateWithCurrentMappings (const char* text)
|
||||
{
|
||||
return juce::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 juce::translate (text, text); }
|
||||
String translate (const char* text) { return juce::translate (String (text)); }
|
||||
String translate (CharPointer_UTF8 text) { return juce::translate (String (text)); }
|
||||
|
||||
String translate (const String& text, const String& resultIfNotFound)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -215,6 +215,11 @@ String translate (const String& stringLiteral);
|
|||
*/
|
||||
String translate (const char* stringLiteral);
|
||||
|
||||
/** Uses the LocalisedStrings class to translate the given string literal.
|
||||
@see LocalisedStrings
|
||||
*/
|
||||
String translate (CharPointer_UTF8 stringLiteral);
|
||||
|
||||
/** Uses the LocalisedStrings class to translate the given string literal.
|
||||
@see LocalisedStrings
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue