diff --git a/modules/juce_core/text/juce_LocalisedStrings.cpp b/modules/juce_core/text/juce_LocalisedStrings.cpp index 4563a8a913..e6118d31aa 100644 --- a/modules/juce_core/text/juce_LocalisedStrings.cpp +++ b/modules/juce_core/text/juce_LocalisedStrings.cpp @@ -194,11 +194,11 @@ LocalisedStrings* LocalisedStrings::getCurrentMappings() String LocalisedStrings::translateWithCurrentMappings (const String& text) { return juce::translate (text); } String LocalisedStrings::translateWithCurrentMappings (const char* text) { return juce::translate (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)); } +JUCE_API String translate (const String& text) { return juce::translate (text, text); } +JUCE_API String translate (const char* text) { return juce::translate (String (text)); } +JUCE_API String translate (CharPointer_UTF8 text) { return juce::translate (String (text)); } -String translate (const String& text, const String& resultIfNotFound) +JUCE_API String translate (const String& text, const String& resultIfNotFound) { const SpinLock::ScopedLockType sl (currentMappingsLock); diff --git a/modules/juce_core/text/juce_LocalisedStrings.h b/modules/juce_core/text/juce_LocalisedStrings.h index e8f70f7361..a594919b84 100644 --- a/modules/juce_core/text/juce_LocalisedStrings.h +++ b/modules/juce_core/text/juce_LocalisedStrings.h @@ -226,22 +226,22 @@ private: /** Uses the LocalisedStrings class to translate the given string literal. @see LocalisedStrings */ -String translate (const String& stringLiteral); +JUCE_API String translate (const String& stringLiteral); /** Uses the LocalisedStrings class to translate the given string literal. @see LocalisedStrings */ -String translate (const char* stringLiteral); +JUCE_API String translate (const char* stringLiteral); /** Uses the LocalisedStrings class to translate the given string literal. @see LocalisedStrings */ -String translate (CharPointer_UTF8 stringLiteral); +JUCE_API String translate (CharPointer_UTF8 stringLiteral); /** Uses the LocalisedStrings class to translate the given string literal. @see LocalisedStrings */ -String translate (const String& stringLiteral, const String& resultIfNotFound); +JUCE_API String translate (const String& stringLiteral, const String& resultIfNotFound); #endif // JUCE_LOCALISEDSTRINGS_H_INCLUDED