Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

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.


{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

Parameters

}}

h2. Parameters

{span:class=borderless-table
}
|*{{messageString}}*| (String) The message key to be
expanded
 expanded |
|*{{args}}*| (String\|Array of Strings) An array of arguments to be substituted into the message
.

Return Value

Div
class
Wiki Markup
{div:class=api-page
}

h1. fluid.formatMessage(messageString, args)
Section
Column
width70%
Code Block
javascriptjavascript
bgColorwhite
borderStylenone
Span
class

messageString

args

Span
classborderless-table

String

The formatted string

Column
width5%
Column

See Also

. |
{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

Example

Code Blockjavascriptjavascript
]
{column}
{section}
----

h3. Example
{code:javascript}
example here
{code}
In this example, description here...

{div}