Div |
---|
class | Wiki Markup |
---|
{div:class=api-page | }
h1. fluid.formatMessage(messageString, args) Section |
---|
Column |
---|
|
|
Expand a message string with respect to a set of arguments, following a basic subset of the Java Message Format rules.
The message string is expected to contain replacement specifications such as {0}, {1}, {2}, etc.
Code Block |
---|
javascript | javascript | bgColor | white |
---|
borderStyle | none |
---|
{section}
{column:width=70%}
Expand a message string with respect to a set of arguments, following a basic subset of the Java Message Format rules.
The message string is expected to contain replacement specifications such as \{0\}, \{1\}, \{2\}, etc.
{code:javascript|borderStyle=none|bgColor=white}
fluid.formatMessage(messageString, args);
File {code}
*File name:* {{JavaProperties.js
Span |
---|
class | }}
h2. Parameters
{span:class=borderless-table
messageString
| }
|*{{messageString}}*| (String) The message key to be
expanded args
| expanded |
|*{{args}}*| (String\|Array of Strings) An array of arguments to be substituted into the message
. Span |
---|
|
String | The formatted string |
|
Column |
---|
|
Column |
---|
. |
{span}
h2. Return Value
{span:class=borderless-table}
|*String*| The formatted string |
{span}
{column}
{column:width=5%}
{column}
{column}
h3. See Also
* [http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html
Code Block |
---|
javascript | javascript | ]
{column}
{section}
----
h3. Example
{code:javascript}
example here
{code}
In this example, description here...
{div}