@GwtIncompatible(value="Currently not used in GWT version") public final class XtbMessageBundle extends java.lang.Object implements MessageBundle
| Constructor and Description |
|---|
XtbMessageBundle(java.io.InputStream xtb,
java.lang.String projectId)
Creates an instance and initializes it with the messages in an XTB file.
|
XtbMessageBundle(java.io.InputStream xtb,
java.lang.String projectId,
boolean unused) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<JsMessage> |
getAllMessages()
Returns an iterable over the keys that this object has replacements for.
|
JsMessage |
getMessage(java.lang.String id)
Gets a message replacement.
|
JsMessage.IdGenerator |
idGenerator()
Gets the message ID generator to use to compute message IDs for this
type of bundle.
|
public XtbMessageBundle(java.io.InputStream xtb,
@Nullable
java.lang.String projectId,
boolean unused)
public XtbMessageBundle(java.io.InputStream xtb,
@Nullable
java.lang.String projectId)
xtb - the XTB file as a byte streamprojectId - the translation console project id (i.e. name)public JsMessage getMessage(java.lang.String id)
MessageBundlegetMessage in interface MessageBundleid - the id of the message being replaced; the key is message ID
generated by JsMessage.IdGeneratorpublic JsMessage.IdGenerator idGenerator()
MessageBundleidGenerator in interface MessageBundlepublic java.lang.Iterable<JsMessage> getAllMessages()
MessageBundlegetAllMessages in interface MessageBundleCopyright © 2009-2020 Google. All Rights Reserved.