info.magnolia.i18nsystem
Interface TranslationService

All Known Implementing Classes:
TranslationServiceImpl

public interface TranslationService

The TranslationService is responsible for getting translated text corresponding to the given Locale, basename and keys. Different implementations will use different mechanisms for retrieving the translated text. As a rule of thumb, one should probably not use TranslationService directly. Use I18nizer or SimpleTranslator instead.

See Also:
I18nizer, SimpleTranslator

Method Summary
 void reloadMessageBundles()
          Allows to reload all the message bundles - useful in development.
 String translate(LocaleProvider localeProvider, String[] keys)
           
 String translate(LocaleProvider localeProvider, String basename, String[] keys)
          Deprecated. should not be using a basename. Currently in use for backwards compatibility.
 

Method Detail

translate

String translate(LocaleProvider localeProvider,
                 String[] keys)

translate

String translate(LocaleProvider localeProvider,
                 String basename,
                 String[] keys)
Deprecated. should not be using a basename. Currently in use for backwards compatibility.

Parameters:
basename - Usage of a basename is deprecated since 5.1. This method is here to allow backwards compatibility.

reloadMessageBundles

void reloadMessageBundles()
Allows to reload all the message bundles - useful in development.



Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.