com.atlassian.greenhopper.model
Interface I18n2


public interface I18n2

New implementation of i18n utilties. Favour this implementation over I18nUtil, I18nImpl, BoardAction.getText and all the other places where i18n is done


Method Summary
 java.util.Locale getLocale()
           
 java.lang.String getText(java.lang.String key)
          Get the text for a given key Note: Keep this method as velocity doesn't handle varargs
 java.lang.String getText(java.lang.String key, java.lang.Object... params)
          Get the text for a given key.
 java.lang.String getText(java.lang.String key, java.lang.Object parameter)
          Get the text for a given key and one parameter Note: Keep this method as velocity doesn't handle varargs
 java.lang.String getText(java.lang.String key, java.lang.Object parameter1, java.lang.Object parameter2)
          Get the text for a given key and two parameters Note: Keep this method as velocity doesn't handle varargs
 java.lang.String getText(java.lang.String key, java.lang.Object parameter1, java.lang.Object parameter2, java.lang.Object parameter3)
          Get the text for a given key and three parameters Note: Keep this method as velocity doesn't handle varargs
 java.lang.String getText(java.lang.String key, java.lang.Object parameter1, java.lang.Object parameter2, java.lang.Object parameter3, java.lang.Object parameter4)
          Get the text for a given key and four parameters Note: Keep this method as velocity doesn't handle varargs
 java.lang.String getText(java.lang.String key, java.lang.Object parameter1, java.lang.Object parameter2, java.lang.Object parameter3, java.lang.Object parameter4, java.lang.Object parameter5)
          Get the text for a given key and five parameters Note: Keep this method as velocity doesn't handle varargs
 

Method Detail

getLocale

java.util.Locale getLocale()

getText

java.lang.String getText(java.lang.String key)
Get the text for a given key Note: Keep this method as velocity doesn't handle varargs


getText

java.lang.String getText(java.lang.String key,
                         java.lang.Object parameter)
Get the text for a given key and one parameter Note: Keep this method as velocity doesn't handle varargs


getText

java.lang.String getText(java.lang.String key,
                         java.lang.Object parameter1,
                         java.lang.Object parameter2)
Get the text for a given key and two parameters Note: Keep this method as velocity doesn't handle varargs


getText

java.lang.String getText(java.lang.String key,
                         java.lang.Object parameter1,
                         java.lang.Object parameter2,
                         java.lang.Object parameter3)
Get the text for a given key and three parameters Note: Keep this method as velocity doesn't handle varargs


getText

java.lang.String getText(java.lang.String key,
                         java.lang.Object parameter1,
                         java.lang.Object parameter2,
                         java.lang.Object parameter3,
                         java.lang.Object parameter4)
Get the text for a given key and four parameters Note: Keep this method as velocity doesn't handle varargs


getText

java.lang.String getText(java.lang.String key,
                         java.lang.Object parameter1,
                         java.lang.Object parameter2,
                         java.lang.Object parameter3,
                         java.lang.Object parameter4,
                         java.lang.Object parameter5)
Get the text for a given key and five parameters Note: Keep this method as velocity doesn't handle varargs


getText

java.lang.String getText(java.lang.String key,
                         java.lang.Object... params)
Get the text for a given key.

Returns:
returns the message found for the given key with all message params replaced, the message key if not found


Copyright © 2007-2012 Atlassian. All Rights Reserved.