You are viewing the documentation for Blueriq 13. Documentation for other versions is available in our documentation directory.
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.
When 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 Type | Name | Format |
---|---|---|
Boolean | default-boolean-format | true,on;false,off |
Boolean | default-boolean-format-nl-NL | true,on,ja;false,off,nee |
Number | default-number-format-dot-2d | #0.00 |
Number | default-number-format-dot-4d | #0.0000 |
Number | default-number-format-dot-2d-nl-NL | #0.00 |
Number | default-number-format-dot-4d-nl-NL | #0.0000 |
Date | default-date-format | yyyy-MM-dd |
Date | default-date-format-nl-NL | dd-MM-yyyy |
DateTime | default-datetime-format | yyyy-MM-dd HH:mm:ss |
DateTime | default-datetime-format-nl-NL | dd-MM-yyyy HH:mm:ss |
Percentage | default-percentage-format-dot-2d | #0.00 |
Percentage | default-percentage-format-dot-2d-nl-NL | #0.00 |
Currency | default-currency-format-dot-2d | #0.00 |
Currency | default-currency-format-dot-2d-nl-NL | #0.00 |
Integer | default-integer-format | #0 |
Integer | default-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.
language-formats.properties
creating your own library