Adding a New Language

Adding a New Language

There are 2 ways of selecting the language:

  • Generic Language Screen (Default) = Recommended
  • Language Tableau = Not supported for OneX Self Checkout

Generic Language Screen

The generic language screen is activated by the following setting (sco.properties):
ScoConfig.welcomeScreen=LanguageGeneric
The displayed languages are defined by the following parameter (services-client.properties):
LocalizationServiceConfig.customerLocalesList=de_DE;en_US

It is possible to define up to 6 languages.

Language Tableau

The language tableau is activated by the following setting (sco.properties):
ScoConfig.welcomeScreen=LanguageTableau

Adding the Language Selection Button in the Menu Editor

Add the language selection button in the Menu Editor. To do this, proceed as follows:

  1. Edit the welcome screen of the Self Checkout POS
  2. Add a functional button. The name of the function corresponds to the name of the language.
  3. Select the type "Toggle button".

A prerequisite is that the language you wish to select already exists in the file TableauConfig.json .

If this is not the case, create an entry for the respective language. This may look as follows:
{
 "com.gk_software.pos.api.model.config.component.client.ui.tableau.TableauProcess": {
"description": "Italian",
"reactionName": "setLanguage_it_IT"
}
}

The following table contains the descriptions of the parameters:

Parameter Description
reactionName setLanguage _ {language_country} .properties
description Language description

The file TableauConfig.json is located in the Menu Editor at the following path:

..\gkretail\med\tableau-data\TableauConfig.json

Translation of the Tableau

Now translate the menu into the desired language. To do this, proceed as follows:

  1. Edit the respective menu.
  2. Select the respective language in the language selection list.
  3. Enter the translations.

If the language is not included in the language selection list, add it to the file TableauVariants.json of the corresponding layoutType.

The entry may look as follows:

{
"com.gk_software.gkr.pos.tableau.api.model.TableauVariant": {
".": {
"com.gk_software.gkr.pos.tableau.api.model.Language": {
"languageID": "it_IT",
"name": "it_IT",
"variantID": "5"
}
},
"id": "5",
"layoutType": "SCO"
}
} 

The file is located in the Menu Editor at the following path:

..\gkretail\med\tableau-data\TableauVariants.json