Site messages

Site messages are key-value text fragments that can be used to support localization.

Site messages can be used only in site pages and page modules where the source is interpreted as Freemarker template text.
Each language enabled in the project should have the same messages keys as the default language but the message values should be translated.
A project will always have at least one supported language, by default the language is English (en).

See Site settings section to add more languages to the project.
Webpagebytes CMS messages section, used to support localization

A site message module has the following attributes

Attribute name Attribute description
Key A text based identifier used to access the message value.
Value The message value for the corresponding locale.

Using site messages

Use ${wpbMessages["message_key_here"]} to insert a text message from a template source.

<ul class="menu">
	<li> <a href="./home">${wpbMessages["Menu.home"]}</a> </li>
	<li> <a href="./deposits"> ${wpbMessages["Menu.deposits"]}</a> </li>
	<li> <a href="./payments"> ${wpbMessages["Menu.payments"]}</a> </li>
	<li> <a href="./withdrawals"> ${wpbMessages["Menu.withdrawals"]}</a> </li>
	<li> <a href="./statements-transactions"> ${wpbMessages["Menu.statements"]} </a> </li>
	<li> <a href="./profile"> ${wpbMessages["Menu.profile"]} </a> </li>
	<li> <a href="./reports"> ${wpbMessages["Menu.reports"]}</a> </li>
</ul>