Entering content frame

Procedure documentation Define language-specific application properties Locate the document in its SAP Library structure

 

In the Web Dynpro application, you can define the properties of the application under Application Properties. These properties can include the sequence in which the language is displayed. Web Dynpro provides you with the following predefined application properties for internationalization:

·        Authentication

If the user has been authenticated, the application is displayed in the language specified in the user profile.

DefaultLocale

If a user does not need authentication to use the application, this setting specifies the language that is displayed for anonymous users if no language preference is defined in the Web browser. You can use the search process described below to determine the session locale used by the Web Dynpro runtime environment when starting an application.

Note

In the Internet Explorer browser, you can set the language by choosing Tools à Internet Options... On the General tab page, choose Languages... You can now add and delete languages.

If the Web Dynpro application requires user authentication, the language indicator is determined through the data of the user who is logged on. If the Web Dynpro application does not require user authentication, the language key of the used browser is used for the selection of the properties file. If the language indicator is not set, the language preference sap-locale defined for the application is used, then the one for the system, and finally the one of the current Java Virtual Machine (JVM).

Example

User

Language indicator of the user

Language preference of the browser

Language preference of the application

Language preference of the system

Language preference of the JVM

Language preference used

Authenticated

de

en

fr

it

Ru

de

Anonymous

-

en

fr

it

Ru

en

Anonymous

-

-

fr

it

ru

fr

Anonymous

-

-

-

it

ru

it

Anonymous

-

-

-

-

ru

ru

For more information, refer to Search Process for Determining the Required Resource Bundle.

 

Procedure

To define DefaultLocale of a Web Dynpo application, proceed as follows:

...

...

        1.      Open the Web Dynpro application LanguagesApp (choose TutWD_Languages_Init à WebDynpro àApplications) and switch to the Application properties tab page.

        2.      Choose New. In the next dialog box, choose Browse...

        3.      In the next dialog box, select DefaultLocale, then choose OK.

This graphic is explained in the accompanying text

sap-localeis used as the name.

...

        1.      Under Value, enter en. Confirm by choosing Finish. This defines English as the default language.

 

Result

You have defined the default locale for the Web Dynpro application.

This graphic is explained in the accompanying text

 

Next Step:

Executing the Internationalized Application TutWD_Languages_Init

0  

 

Leaving content frame