JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
juce_LocalisedStrings.h File Reference

Go to the source code of this file.

Classes

class  juce::LocalisedStrings
 Used to convert strings to localised foreign-language versions. More...
 

Namespaces

namespace  juce
 JUCE Namespace.
 

Macros

#define TRANS(stringLiteral)
 Uses the LocalisedStrings class to translate the given string literal.
 
#define NEEDS_TRANS(stringLiteral)
 A dummy version of the TRANS macro, used to indicate a string literal that should be added to the translation file by source-code scanner tools.
 

Functions

JUCE_API String juce::translate (const String &stringLiteral)
 Uses the LocalisedStrings class to translate the given string literal.
 
JUCE_API String juce::translate (const char *stringLiteral)
 Uses the LocalisedStrings class to translate the given string literal.
 
JUCE_API String juce::translate (CharPointer_UTF8 stringLiteral)
 Uses the LocalisedStrings class to translate the given string literal.
 
JUCE_API String juce::translate (const String &stringLiteral, const String &resultIfNotFound)
 Uses the LocalisedStrings class to translate the given string literal.
 

Macro Definition Documentation

◆ NEEDS_TRANS

#define NEEDS_TRANS (   stringLiteral)

A dummy version of the TRANS macro, used to indicate a string literal that should be added to the translation file by source-code scanner tools.

Wrapping a string literal in this macro has no effect, but by using it around strings that your app needs to translate at a later stage, it lets automatic code-scanning tools find this string and add it to the list of strings that need translation.

Definition at line 218 of file juce_LocalisedStrings.h.

◆ TRANS

#define TRANS (   stringLiteral)

Uses the LocalisedStrings class to translate the given string literal.

This macro is provided for backwards-compatibility, and just calls the translate() function. In new code, it's recommended that you just call translate() directly instead, and avoid using macros.

See also
translate(), LocalisedStrings

Definition at line 208 of file juce_LocalisedStrings.h.