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.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
 

Method Detail

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... 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-2011 Atlassian. All Rights Reserved.