velosurf.web.l10n
Interface Localizer

All Known Implementing Classes:
HTTPLocalizerTool, SimpleDBLocalizer

public interface Localizer

To be implemented by localizers used by the engine to get localized strings from their database id.

Author:
Claude Brisson

Method Summary
 java.lang.String get(java.lang.Object id)
          Message getter.
 java.lang.String get(java.lang.Object id, java.lang.Object... param)
          Parameterized message getter.
 java.util.Locale getLocale()
          Locale getter.
 void setLocale(java.util.Locale locale)
          Locale setter.
 

Method Detail

setLocale

void setLocale(java.util.Locale locale)
Locale setter.

Parameters:
locale - locale

getLocale

java.util.Locale getLocale()
Locale getter.

Returns:
locale

get

java.lang.String get(java.lang.Object id)
Message getter.

Parameters:
id - message id
Returns:
localized message

get

java.lang.String get(java.lang.Object id,
                     java.lang.Object... param)
Parameterized message getter.

Parameters:
id - message id
param - message parameters
Returns:
localized message


~ooOoo~