openshot-audio  0.1.2
Classes | Macros | Functions
juce_LocalisedStrings.h File Reference

Go to the source code of this file.

Classes

class  LocalisedStrings
 

Macros

#define JUCE_LOCALISEDSTRINGS_H_INCLUDED
 
#define NEEDS_TRANS(stringLiteral)   (stringLiteral)
 
#define TRANS(stringLiteral)   juce::translate (stringLiteral)
 
#define NEEDS_TRANS(stringLiteral)   (stringLiteral)
 

Functions

JUCE_API String translate (const String &stringLiteral)
 
JUCE_API String translate (const char *stringLiteral)
 
JUCE_API String translate (CharPointer_UTF8 stringLiteral)
 
JUCE_API String translate (const String &stringLiteral, const String &resultIfNotFound)
 

Macro Definition Documentation

#define JUCE_LOCALISEDSTRINGS_H_INCLUDED
#define NEEDS_TRANS (   stringLiteral)    (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.

#define NEEDS_TRANS (   stringLiteral)    (stringLiteral)
#define TRANS (   stringLiteral)    juce::translate (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

Function Documentation

JUCE_API String translate ( const String stringLiteral)

Uses the LocalisedStrings class to translate the given string literal.

See also
LocalisedStrings
JUCE_API String translate ( const char *  stringLiteral)

Uses the LocalisedStrings class to translate the given string literal.

See also
LocalisedStrings
JUCE_API String translate ( CharPointer_UTF8  stringLiteral)

Uses the LocalisedStrings class to translate the given string literal.

See also
LocalisedStrings
JUCE_API String translate ( const String stringLiteral,
const String resultIfNotFound 
)

Uses the LocalisedStrings class to translate the given string literal.

See also
LocalisedStrings