^International();
^International(key,namespace);
Pull a translated message key from the internationalization system. By default, it looks in the WebGUI namespace. A different namespace can be specified as a second, optional argument.
Example: ^International(45,Article);
This Macro may be nested inside other Macros if the message does not contain commas or quotes.
To make typing easier, you can create an alias for the International macro in your WebGUI config file.
"i18n" : "International",
Because I didn't know how to find the right key and namespace, this is what I ended up doing:
'scheduling conflict continue' => {This is an example from Asset_EventManagementSystem.pm. So to use the international macro, you'd supply:
'lastUpdated' => '1252530417',
'message' => 'Click para continuar'
^International(scheduling conflict continue,Asset_EventManagementSystem);If you found something like this in the WebGUI.pm file:
348 => {The macro would be:
'lastUpdated' => '1291127697',
'message' => 'Nombre'
},
^International(348,WebGUI);
You can use single quotes or double quotes or leave strings without quotes.
the javascript i18n object does things the opposite way, it accepts (namespace, key) instead of the macro and API standard (key, namespace)