Support > Repository > Function > Resources · Internationalization
ja | en

Here are three resource files and internationalization functions.

LOCALE()

The locale information of the Web browser is returned.For example Japanese locales will be "ja".

By combining with conditional authority management, it becomes possible to prepare multiple model items for one model and switch display by locale.Here is an example.

Item name (Japanese) Item name (English) Reading authority
Name (Sun) name_ja select;EXACT(LOCALE(),"ja")
Name (English) name_en select;EXACT(LOCALE(),"en")

MESSAGE (resource key)

MESSAGE (resource key, argument ...)

Get message matching the resource key of resource file jfcapp.The return value is a string type.Since the locale is taken into account, the appropriate message is displayed according to the locale selected by the logged-on user.(It is necessary to prepare messages for each locale in advance.)

MESSAGE ("M0001") MESSAGE ("M0002", $ {item1})

Developers can prepare their own resource keys and corresponding messages.For details, refer to "Change / internationalize message> Edit resource filePlease read.

ERRORMESSAGE (resource key)

ERRORMESSAGE (resource key, argument ...)

It gets a message that matches the resource key of resource file errormsg.The return value is a string type.Since the locale is taken into account, the appropriate message is displayed according to the locale selected by the logged-on user.(It is necessary to prepare messages for each locale in advance.)

ERRORMESSAGE ("E0001") ERRORMESSAGE ("E0002", $ {item1})

Developers can prepare their own resource keys and corresponding messages.For details, refer to "Change / internationalize message> Edit resource filePlease read.