com.atlassian.crowd.util
Class I18nHelperImpl

java.lang.Object
  extended by com.atlassian.crowd.util.I18nHelperImpl
All Implemented Interfaces:
I18nHelper

public class I18nHelperImpl
extends Object
implements I18nHelper


Constructor Summary
I18nHelperImpl(List<ResourceBundleProvider> providers)
           
 
Method Summary
 Map<String,String> getAllTranslationsForPrefix(String prefix)
           
 String getText(Locale locale, String key, Serializable... arguments)
           
 String getText(String key)
           
 String getText(String key, Object parameters)
           
 String getText(String key, String value1)
           
 String getText(String key, String value1, String value2)
           
 String getUnescapedText(String key)
          Get the raw property value, complete with {0}'s.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

I18nHelperImpl

public I18nHelperImpl(List<ResourceBundleProvider> providers)
Method Detail

getText

public String getText(String key)
Specified by:
getText in interface I18nHelper

getText

public String getText(String key,
                      String value1)
Specified by:
getText in interface I18nHelper

getText

public String getText(String key,
                      String value1,
                      String value2)
Specified by:
getText in interface I18nHelper

getText

public String getText(String key,
                      Object parameters)
Specified by:
getText in interface I18nHelper

getText

public String getText(Locale locale,
                      String key,
                      Serializable... arguments)
Specified by:
getText in interface I18nHelper

getUnescapedText

public String getUnescapedText(String key)
Get the raw property value, complete with {0}'s.

Specified by:
getUnescapedText in interface I18nHelper
Parameters:
key - Non-null key to look up
Returns:
Unescaped property value for the key, or the key itself if no property with the specified key is found

getAllTranslationsForPrefix

public Map<String,String> getAllTranslationsForPrefix(String prefix)
Specified by:
getAllTranslationsForPrefix in interface I18nHelper


Copyright © 2014 Atlassian. All Rights Reserved.