org.nuxeo.opensocial.webengine.gadgets.render
Class Gadgeti18n
java.lang.Object
org.nuxeo.opensocial.webengine.gadgets.render.Gadgeti18n
public class Gadgeti18n
- extends Object
Helper class that manages i18n files for gadgets.
2 modes are supported :
Static mode :
gadget has to statically include the Local headers and associated files
Dynamic mode : gadget only includes a dynamic_messages.properties This file
is used to know what labels are used by the gadget (and provide default
valude) The Headers in Gadgets specs and associated XML files will be
dynamically generated using the message bundles used by Nuxeo app.
- Author:
- Tiry (tdelprat@nuxeo.com)
DYN_TRANSLATION_FILE
public static final String DYN_TRANSLATION_FILE
- See Also:
- Constant Field Values
Gadgeti18n
public Gadgeti18n()
getTranslationFile
public InputStream getTranslationFile(InternalGadgetDescriptor gadget,
String fileName)
throws IOException
- Throws:
IOException
getSupportedLangs
public List<Locale> getSupportedLangs()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.