cancel
Showing results for 
Search instead for 
Did you mean: 

Localization (MII 12.1)

Former Member
0 Kudos

Hi,

We have defined the properties file in the META-INF tab for different languages.

The data coming in the irpt pages are as per the language defined in UME for the logged in user.

I want to provide an option to user for selecting language in which he wants to see the application.

For Ex: I will be having a drop down box in the home page for different langugaes available. Now when the user selects one of the language, I want application to use the selected language properties file in the application.

I want user to select the language instead of using the one defined in UME.

Is it possible to specifiy which language properties file to use in irpt page?

Thank You

Regards,

Neha Maheshwari

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

This message was moderated.

jcgood25
Active Contributor
0 Kudos

After logging in you can see the 'Language' attribute in the list of session properties: /XMII/PropertyAccessServlet?Mode=List

This will drive the server side Localization of your irpt page tokens {##TOKEN}

Edited by: Jeremy Good on Jan 4, 2011 8:19 AM

If you want application oriented switching you will likely need to use your own logic with database lookup tables or xml files.

Former Member
0 Kudos

Hi Jeremy,

If I go for database look up table or xml files, I cannot use {##Token} in my irpt pages.

I am looking for a way in which my keys defined like {##Token} is automatically replaced with the translation file I choose.

Now, this translation file could be properties file we define in META-INF or we can defined an xml file/database tables.

Is there anyway possible to achieve this?

Thank You

Regards,

Neha Maheshwari

jcgood25
Active Contributor
0 Kudos

Not that I am aware of. You are trying to use the built-in localization of having the {##TOKEN} replaced at runtime by the server from the user language relevant resource bundle, but the language selection is driven by the user, not a passed in override setting that you can control from the client.

In my earlier post I was trying to indicate that it's either one or the other, not a hybrid. I have tried updating both the Locale and Language attributes for a running user session, and the PropertyAccessServlet reflects the apparent change, but the system is apparently using something more bound to the user and session than the attribute list.

0 Kudos

Hi,

SAP xMII reads the settings from the following locations, in the order in which they are listed, until a language is specified:

1. SAP User Management Engine (SAP UME) user locale

2. SAP UME Language attribute

.

.

.

I wanted to know how & where do you change this user locale, language attribute. Please give me the path.

I want to set one language for one user and another language for other user. So that they can view the pages

in their preferred language.

Thanks and Regards

Khaleel

Former Member
0 Kudos

Hi Khaleel,

Please find the steps below to set user language.

1) Go to http://<server>:<port>/index.html

2) Select User Management

3) Put userId in the text box and Search

4) Select UserId row in the gird.

5) Below the grid you can find the user details with an option to select Langugae.

You can change the language of the user selected and Save it

0 Kudos

Neha,

Thanks. I did that before posting my query but it was not reflecting.

Also where is locale and where is language attribute? These two are different fields.

Regards

Khaleel

Former Member
0 Kudos

The language selection is based on the Web browser. Each time if you changed your Web browser language, MII internally transforms the localization variables in your irpt page to the value that you define in your META-INF property.

I believe it is not "runtime" means you can define language in your homepage and the page will be tranformed to your selected language.

seng