124 static String translateWithCurrentMappings (
const String& text);
135 static String translateWithCurrentMappings (
const char* text);
195 void loadFromText (
const String&,
bool ignoreCase);
208 #define TRANS(stringLiteral) juce::translate (stringLiteral)
218#define NEEDS_TRANS(stringLiteral) (stringLiteral)
223JUCE_API String
translate (
const String& stringLiteral);
228JUCE_API String
translate (
const char* stringLiteral);
233JUCE_API String
translate (CharPointer_UTF8 stringLiteral);
238JUCE_API String
translate (
const String& stringLiteral,
const String& resultIfNotFound);
Represents a local file or directory.
Used to convert strings to localised foreign-language versions.
const StringArray & getCountryCodes() const
Returns the list of suitable country codes listed in the translation file.
const StringPairArray & getMappings() const
Provides access to the actual list of mappings.
~LocalisedStrings()=default
Destructor.
String getLanguageName() const
Returns the name of the language specified in the translation file.
A special array for holding a list of strings.
A container for holding a set of strings which are keyed by another string.
#define JUCE_LEAK_DETECTOR(OwnerClass)
This macro lets you embed a leak-detecting object inside a class.
JUCE_API String translate(const String &text)
Uses the LocalisedStrings class to translate the given string literal.