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)
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.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...