cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro for java project - with 2 languages

former_member413959
Participant
0 Kudos

Hi,

I have WD project with 2 languages(xlf translation) :English and Hebrew.

The project have one Application.

I want to create Role with 2 iViews : The first one with The application in Hebrew and the second one the application in English,

the differences between the iviews is in the "Logon Language" iview property, the first one set to Hebrew the Second one to English.

My problem is that if i navigate to the Hebrew iview ...the English iview is shown in Hebrew to,

After logoff/login If i navigate to the English iview the Hebrew iview is shown in English to,

Any suggestions how to use 2 iviews of the same application in a diffrent language ???

Thanks,F.F

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

First u have to create one more ( <ViewName>_<ISO Name (German id "de")>).xlf File. means Firstview_Hebriew.xlf file

and Convert to all fields and labels into Hebrew Language

that Hebrew Language view is assign to that role

that role is in one particular user that user language also convert to Hebrew Language.

So role having 2 view that views in diff languages 1 English and 2nd Hebrew Language

Regards

Vijay Kalluri

former_member413959
Participant
0 Kudos

Thanks,Vijay,

I think that you didnt understand my question...

I want that user in the portal that have language HE , will have one role with 2 iViews/Pages,

one with the application in Hebrew and the other one with the same application in English.

In the WD project i have the correct xlf ( he, and en ).

Former Member
0 Kudos

Hi

You can create two applications and can set the language of one of the application as Hebrew and of the other one as English.

Then create two views for two applications.

Hope this will help.

Regards

Vineet

former_member413959
Participant
0 Kudos

HI Vineet,

I already try it.

If i first navigate to the HE iView I see the application in HE ,then I navigate to the EN iview , i see the application in HE and the opposite.

Former Member
0 Kudos

Hi F.F.,

if you use the Web Dynpro in the Portal, the application is not change the language if you has start the application on time.

You must close the portal (all browser sessions) and start the application in the new language.

If you want to try that without the portal you can load the application direct, means the link you got if you deploy it and select run.

At the end of the url please add sap-locale=<locale> sap-locale=EN or sap-locale=HE than you will see the translations.

That the language switch is not supported in the Portal is bug since 2006. You must start the login with the new language. Only than it will work.

regards

Gunter.

former_member413959
Participant
0 Kudos

OSS Answer : SAP Note #947081

"WebDynpro Java has a known limitation also described in the SAP Note #947081 (Point 9. Change of locale in Web Dynpro iView).

The Limitation is,

There is one locale assigned per login (user) session. This is done for the first Web Dynpro Java application or Web Dynpro Java iView started in the login session. After detecting the locale, this locale is assigned to the login session and all Web Dynpro applications and all Web Dynpro iViews are started in the same login session. The reason why it has to be this way is that Web Dynpro uses backend connection caches which are associated to the login session and they are locale sensitive"

former_member413959
Participant
0 Kudos

OSS Answer : SAP Note #947081

"WebDynpro Java has a known limitation also described in the SAP Note #947081 (Point 9. Change of locale in Web Dynpro iView).

The Limitation is,

There is one locale assigned per login (user) session. This is done for the first Web Dynpro Java application or Web Dynpro Java iView started in the login session. After detecting the locale, this locale is assigned to the login session and all Web Dynpro applications and all Web Dynpro iViews are started in the same login session. The reason why it has to be this way is that Web Dynpro uses backend connection caches which are associated to the login session and they are locale sensitive"