Setting up the SAP Mobile Platform Server to Support Multiple Languages

Context

If you are only using the application in English and no other languages, you do not need to perform this procedure as English is the default language for SAP Work Manager.

You can download the latest language pack ZIP file on the SAP Work Manager portal page. Be sure to choose the latest SAP Work Manager version release from the dropdown list on the upper right of the portal screen.

Procedure

  1. Create a folder called languages inside your App folder (<SMP Root>\Server\configuration\com.sap.mobile.platform.server.agentry.application.SAPWM). Unzip your .ini files to that folder.
  2. Navigate to the SAP Mobile Platform Cockpit:
    1. Click Applications on the left side of the screen. Then click Configure from the Actions column for your application. Navigate to the Application-Specific Settings tab.
    1. In the Configuration section, add the following value to the <LocalizationPath> key: <.\languages>.
    2. After the equal ( = ) sign, add the languages used in your application (English is the default language, so you do not need to add it). For example, to add German and Spanish, type localizations=de;es;.
  3. In the User Selectable Languages section, add a key-value pair of the language code and the language name. The language code is what is used in the <Localizations> input field. For example:

    Each code-name combination must be on a separate line.

Results

All languages that you defined in the Localizations line of the Configuration section are supported on the SAP Mobile Platform server.

Next Steps

Start your SAP Mobile Platform server. Check the startup.log for the following lines to ensure that the language files were successfully loaded:

  • 13:19:32 01/23/2019: Event: 21, 152, Loading Development application definitions for default localization

  • 13:19:32 01/23/2019: Event: 21, 152, Loading Development application definitions for 'de' localization

To configure the user language selection, so that the user can select which language they desire on the client application, see the Configuring User Language Selection procedure.