Last Updates | Login      

How to use internationalization in DisplayTags

If you don't have any i18n file, follow this link:
http://www.mentaframework.org/i18n.jsp

if you want create your own DisplayTags, follow this link:
http://recipes.mentaframework.org/posts/list/34.page

To use internationalization in DisplayTags, do the following:

1) Create your taglib. For example:


2) Flaunt your taglib where are the i18n files. To do that, use


inside your getStringToPrint() method. After that, use


To get the internationalized text.

The first string is the path to your master file, from the application root. loc is the user localeé o locale do usuário, available automagically inside the class.


Master file:

/i18n/master_pt_BR.i18n


/i18n/master_en_US.i18n


Logging: how to enable and use in 3 easy steps

The Mentawai logging system is very simple and non-intrusive. To use it, follow these steps:

1) Activate the logging system in ApplicationManager:


2) Use:


3) See the logged text in