All Downloads are FREE. Search and download functionalities are using the official Maven repository.

desc.GetI18nMessage.txt Maven / Gradle / Ivy

There is a newer version: 1.9
Show newest version
Retrieves the message for the current locale given the {{messageCode}} and/or {{localeID}}. This will not change the current locale even if {{localeID}} is provided.

When no locale was set using the `Set i18n Locale` keyword, this will use the machine locale settings.

Please see the {{jspringbot-doc:i18n|#introduction}} introduction section for the supported locale IDs.

Example:

{{Messages_en.properties}} - English language messages.

| login.field.username=User Name
| login.field.password=Password
| login.page.title=Login Page

{{Messages_ja.properties}} - Japanese language messages.

| login.field.username=\u30E6\u30FC\u30B6\u30FC\u540D

_usage_

| `Set i18n Locale`    | en                 |                      |    |
| ${loginTitle}=       | `Get i18n Message` | login.page.title     |    |
| ${loginUserName}=    | `Get i18n Message` | login.field.username |    |
| ${loginPassword}=    | `Get i18n Message` | login.field.password |    |
| ${jaLoginUserName}=  | `Get i18n Message` | login.field.username | ja |

=>

| ${loginTitle} = "Login Page"
| ${loginUserName} = "User Name"
| ${loginPassword} = "Password"
| ${jaLoginUserName} = "{{unicode:\u30E6\u30FC\u30B6\u30FC\u540D}}"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy