You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The languages defined in studio are supported by language settings in the runtime. These define for a specific language or dialect how information is displayed. By using the language code, you can define properties such as messages_en-GB.properties with all settings regarding the en-GB language. A default messages.properties is available as fallback. Please be aware that if you have a messages.properties in your config location, the messages.properties from the WAR will not be used anymore.

When using a dialect, it does not fall back to the default language settings, and you should create a property file for the dialect.

 

Value Formats

In the runtime you are able to define the formatting of attributes in a language specific manner. This is done using value formats. These value formats are by default available to use:

Data TypeNameFormat
Booleandefault-boolean-formattrue,on;false,off
Booleandefault-boolean-format-nl-NLtrue,on,ja;false,off,nee
Numberdefault-number-format-dot-2d#0.00
Numberdefault-number-format-dot-4d#0.0000
Numberdefault-number-format-dot-2d-nl-NL#0.00
Numberdefault-number-format-dot-2d-nl-NL#0.0000
Datedefault-date-formatyyyy-MM-dd
Datedefault-date-format-nl-NLdd-MM-yyyy
DateTimedefault-datetime-formatyyyy-MM-dd HH:mm:ss
DateTimedefault-datetime-format-nl-NLdd-MM-yyyy HH:mm:ss
Percentagedefault-percentage-format-dot-2d#0.00
Percentagedefault-percentage-format-dot-2d-nl-NL#0.00
Currencydefault-currency-format-dot-2d#0.00
Currencydefault-currency-format-dot-2d-nl-NL#0.00
Integerdefault-integer-format#0
Integerdefault-integer-format-nl-NL#0

The above value formats can be applied per data type per language inside the language-formats.properties inside the config location.

The following settings are used out of the box:

integer=default-integer-format
number=default-number-format-dot-4d
currency=default-currency-format-dot-2d
percentage=default-percentage-format-dot-2d
date=default-date-format
datetime=default-datetime-format
boolean=default-boolean-format

integer.nl-NL=default-integer-format-nl-NL
number.nl-NL=default-number-format-dot-4d-nl-NL
currency.nl-NL=default-currency-format-dot-2d-nl-NL
percentage.nl-NL=default-percentage-format-dot-2d-nl-NL
date.nl-NL=default-date-format-nl-NL
datetime.nl-NL=default-datetime-format-nl-NL
boolean.nl-NL=default-boolean-format-nl-NL

Creating your own format

Next to the defaults that are provided out-of-the-box, you are able to create your own language formats as well. To do this, create an own format in the Globals section. You can use the name of this global format now as well inside the language-formats.properties file.

As the settings inside the language-formats.properties are a global setting for all projects, this causes problems for projects that do not have this global format defined. We therefore advise to define this format in each project, possibly by creating your own library.
  • No labels