Class I18nHelper
- java.lang.Object
-
- org.nuxeo.ecm.platform.suggestbox.service.suggesters.I18nHelper
-
public class I18nHelper extends Object
Simple interpolation for i18n messages with parameters independently of the UI layer. Only support parameter replacement with the "{0}", "{1}"... syntax.- Author:
- ogrisel
-
-
Constructor Summary
Constructors Constructor Description I18nHelper(Map<String,String> messages)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static I18nHelper
instanceFor(Map<String,String> messages)
static String
interpolate(String message, Object... params)
String
translate(String label, Object... params)
-