Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
{div:class=} h1.
Wiki Markup
Div
classapi-page

fluid.formatMessage(messageString,

args)

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

Section
Column
width70%

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
bgColorwhite
borderStylenone

fluid.formatMessage(messageString, args);
{code} *File

File name:

* {{

JavaProperties.js

}} h2. Parameters {span:class=

Parameters

Span
classborderless-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} h2. Return Value {span:class=borderless-table} |*String*| The formatted string | {span} {column} {column:width=5%} {column} {column} h3. See Also * [

Return Value

Span
classborderless-table

String

The formatted string

Column
width5%

Column

See Also

] {column} {section} ---- h3. Example {code:javascript}

Example

Code Block
javascript
javascript

example here
{code}

In

this

example,

description

here...

{div}