| Package | Description |
|---|---|
| com.google.template.soy.jbcsrc.runtime | |
| com.google.template.soy.jbcsrc.shared | |
| com.google.template.soy.msgs |
Support for message translation (i.e. localization).
|
| com.google.template.soy.msgs.internal | |
| com.google.template.soy.msgs.restricted |
| Modifier and Type | Method and Description |
|---|---|
static void |
JbcSrcRuntime.renderSoyMsgPartsWithPlaceholders(com.google.common.collect.ImmutableList<SoyMsgPart> msgParts,
com.ibm.icu.util.ULocale locale,
Map<String,Object> placeholders,
Appendable out)
Render a 'complex' message containing with placeholders.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<SoyMsgPart> |
RenderContext.getSoyMsgParts(long msgId,
com.google.common.collect.ImmutableList<SoyMsgPart> defaultMsgParts)
Returns the
SoyMsg associated with the msgId or the fallback (aka english)
translation if there is no such message. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<SoyMsgPart> |
RenderContext.getSoyMsgParts(long msgId,
com.google.common.collect.ImmutableList<SoyMsgPart> defaultMsgParts)
Returns the
SoyMsg associated with the msgId or the fallback (aka english)
translation if there is no such message. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<SoyMsgPart> |
SoyMsgBundle.getMsgParts(long msgId)
Returns the message parts, or an empty array if there is no such message.
|
com.google.common.collect.ImmutableList<SoyMsgPart> |
SoyMsgBundleWithFullLocale.getMsgParts(long msgId) |
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableList<SoyMsgPart> |
MsgUtils.MsgPartsAndIds.parts
The parts that make up the message content.
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableList<SoyMsgPart> |
MsgUtils.buildMsgParts(MsgNode msgNode)
Builds the list of SoyMsgParts for the given MsgNode.
|
static com.google.common.collect.ImmutableList<SoyMsgPart> |
IcuSyntaxUtils.convertMsgPartsToEmbeddedIcuSyntax(com.google.common.collect.ImmutableList<SoyMsgPart> origMsgParts)
Given a list of msg parts: (a) if it contains any plural/select parts, then builds a new list
of msg parts where plural/select parts in the original msg parts are all embedded as raw text
in ICU format, (b) if it doesn't contain any plural/select parts, then simply returns the
original msg parts instead of creating a new list of identical msg parts.
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableList<SoyMsgPart> |
IcuSyntaxUtils.convertMsgPartsToEmbeddedIcuSyntax(com.google.common.collect.ImmutableList<SoyMsgPart> origMsgParts)
Given a list of msg parts: (a) if it contains any plural/select parts, then builds a new list
of msg parts where plural/select parts in the original msg parts are all embedded as raw text
in ICU format, (b) if it doesn't contain any plural/select parts, then simply returns the
original msg parts instead of creating a new list of identical msg parts.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SoyMsgPlaceholderPart
Represents a placeholder within a message.
|
class |
SoyMsgPluralPart
Represents a plural statement within a message.
|
class |
SoyMsgPluralRemainderPart
Represents the placeholder part in the plural statement (The '#' sign in ICU syntax).
|
class |
SoyMsgRawTextPart
Represents a raw text string within a message (the stuff that translators change).
|
class |
SoyMsgSelectPart
Represents a select statement within a message.
|
| Modifier and Type | Method and Description |
|---|---|
abstract com.google.common.collect.ImmutableList<SoyMsgPart> |
SoyMsg.getParts()
Returns the parts that make up the message content.
|
com.google.common.collect.ImmutableList<SoyMsgPart> |
SoyMsgPluralPart.lookupCase(long pluralValue,
com.ibm.icu.util.ULocale locale)
Returns the list of parts to implement the case.
|
com.google.common.collect.ImmutableList<SoyMsgPart> |
SoyMsgSelectPart.lookupCase(String selectValue) |
abstract com.google.common.collect.ImmutableList<SoyMsgPart> |
SoyMsgPart.Case.parts() |
| Modifier and Type | Method and Description |
|---|---|
static <T> SoyMsgPart.Case<T> |
SoyMsgPart.Case.create(T spec,
Iterable<? extends SoyMsgPart> parts) |
static boolean |
MsgPartUtils.hasPlrselPart(List<SoyMsgPart> msgParts)
Checks whether a given list of msg parts has any plural or select parts.
|
SoyMsg.Builder |
SoyMsg.Builder.setParts(Iterable<? extends SoyMsgPart> parts) |