Class PropertiesFormat
- java.lang.Object
-
- com.google.gwt.i18n.rebind.format.PropertiesFormat
-
- All Implemented Interfaces:
MessageCatalogFormat
public class PropertiesFormat extends java.lang.Object implements MessageCatalogFormat
Writes GWT-style Java properties files for translation. This catalog format does not support aggregation of messages from multiple interfaces since there is no way to distinguish messages from another interface from those that were from this interface but no longer used. The output file is assumed to be in UTF-8 encoding rather than using the\\uXXXXescapes.
-
-
Constructor Summary
Constructors Constructor Description PropertiesFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetExtension()Returns the extension to use for this file type, including the dot.voidwrite(TreeLogger logger, java.lang.String locale, com.google.gwt.i18n.rebind.AbstractResource.ResourceList resourceList, java.io.PrintWriter out, JClassType messageInterface)Write a message catalog file.
-
-
-
Method Detail
-
getExtension
public java.lang.String getExtension()
Description copied from interface:MessageCatalogFormatReturns the extension to use for this file type, including the dot.- Specified by:
getExtensionin interfaceMessageCatalogFormat
-
write
public void write(TreeLogger logger, java.lang.String locale, com.google.gwt.i18n.rebind.AbstractResource.ResourceList resourceList, java.io.PrintWriter out, JClassType messageInterface)
Description copied from interface:MessageCatalogFormatWrite a message catalog file.- Specified by:
writein interfaceMessageCatalogFormat- Parameters:
logger- TreeLogger for logging errors/etclocale- locale of this output fileresourceList- the contents to writeout- the PrintWriter to generate output onmessageInterface- the interface to create (so additional annotations may be accessed)
-
-