Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.webengine.gadgets.render
Class Gadgeti18n

java.lang.Object
  extended by 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)

Field Summary
static String DYN_TRANSLATION_FILE
           
 
Constructor Summary
Gadgeti18n()
           
 
Method Summary
 List<Locale> getSupportedLangs()
           
 InputStream getTranslationFile(InternalGadgetDescriptor gadget, String fileName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DYN_TRANSLATION_FILE

public static final String DYN_TRANSLATION_FILE
See Also:
Constant Field Values
Constructor Detail

Gadgeti18n

public Gadgeti18n()
Method Detail

getTranslationFile

public InputStream getTranslationFile(InternalGadgetDescriptor gadget,
                                      String fileName)
                               throws IOException
Throws:
IOException

getSupportedLangs

public List<Locale> getSupportedLangs()

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.