PhenixID DocumentationPhenixID Authentication ServicesSolutionsGUI CustomizationSet default language on PhenixID Server web pages from backend

Set default language on PhenixID Server web pages from backend

This article describes how to set default language for PhenixID Server web pages from backend.

By default, PhenixID Server use the browser settings to display texts in the correct language. Setting the language on the server side following this article will override that behaviour.

The reader should have some basic knowledge about PhenixID Server.

Overview

The language for PhenixID Server web pages will be set on backend.

We will make changes to the files:

/bin/start-PhenixID.sh (Linux)

/bin/*.vmoptions (Windows)

So please make sure to have a recent copy of these files before making the changes below.

Instruction

The parameter to set default language is -Dcom.phenixidentity.globals.defaultLanguage=<countrycode>.

On Linux this parameter is set in the file /bin/start-PhenixID.sh, add it like this:

JAVA_OPTS="${JAVA_OPTS} -Dcom.phenixidentity.globals.defaultLanguage=sv"

On Windows this parameter is set in the file/files /bin/*.vmoptions, add it like this:

-Dcom.phenixidentity.globals.defaultLanguage=SV

PhenixID service needs to be restarted for the change to take affect.

Note: On Linux platforms the country code is case sensitive and must be entered in lower case.