public String format(Map parameters) { String result = finalLocalizedText.format(parameters); return result.replaceAll("\n", m_newline); //$NON-NLS-1$ } };
public String getLocalizedTextString( Locale locale, String id, Map parameters ) { ILocalizedText t = getLocalizedText( locale, id ); if ((t == null) && !locale.equals(locale)) { t = getLocalizedText(locale, id ); } if ((t == null) && !locale.getLanguage().equals( "en" )) { t = getLocalizedText( new Locale( "en" ), id ); } return (t == null)? null : t.format( parameters ); }
public String getLocalizedTextString( Locale locale, String id, Map parameters ) { ILocalizedText t = getLocalizedText( locale, id ); if ((t == null) && !locale.equals(locale)) { t = getLocalizedText(locale, id ); } if ((t == null) && !locale.getLanguage().equals( "en" )) { t = getLocalizedText( new Locale( "en" ), id ); } return (t == null)? null : t.format( parameters ); }