cancel
Showing results for 
Search instead for 
Did you mean: 

Portal Content Translation

Former Member
0 Kudos

Hi All,

I have a PDK iview.I created a Worklist for translating the name of the iView and the text strings in the resource bundle.I changed the text in the resource bundle to German.Finally I Published the Worklist.

I also placed a small peice of code in my JSP using Java API for ResourceBundle and a print statement for printing the text from the resource bundle file in my project.This particual text i have already translated to German in the Worklist translation as explained above.

I then changed my browser language to German and refreshed the browser.I could see the the iView name which I had translated in German language but the text from the resource bundle still appears in English and not in German.

Could you please help me getting this text printed in my Browser language.

I urgently need help on this.

Warm Regards

Saurabh

Accepted Solutions (0)

Answers (1)

Answers (1)

Lukas_Weigelt
Active Contributor
0 Kudos

Hi,

please take a look at this thread, at Siddarth's last post. There he is stating the hierarchy for translation. Check whether you have anything hard maintained BEFORE the local comptuer checks the browser settings. Because if there is, the language set in the browser will be ignored.

Cheers, Lukas

Former Member
0 Kudos

HI Lukas,

Thanks for the reply.

I checked with another User ID where his Locale was set to english.I changed the browser language to German but everything still displayed in English.

Then I set the language for the User ID to blank.This time the text changed to German.

This means that in the Language hierarchy Component Locale is not set,Portal Mandatory Locale is not set and ofcourse the User Locale was already set to blank.So the Browser language setting took effect.

I then executed my iView.The iView name was displayed in German but the text string "Welcome" in my properties file (resource bundle)which i had translated to "Welcome German" using the Portal Content Translation still displayed as "Welcome".

I used the normal JAVA code for getting the resource bundle and the called it getString () method to display the Welcome string from my resource bundle.I have just one resource bundle in my par file.

I am not sure where it is going wrong.Is it the code which i have written is wrong ?

Wht should be the correct code?

Am i suppose to make some other configuration as well.

I have only one resource bundle in my par file.I suppose the Content Translation application in the portal would create another resource bundle for the languge in which i translated my text.

Is this the correct assumption or will i have to create additional resource bundles in my par file.

Warm Regards

Saurabh

Former Member
0 Kudos

Hi,

My problem has resolved.After publishng the worklist,i used the SAP API to get the resourceBundle and it worked.I changed the browser language and i could see the translated text on my JSP.I have only one properties file in my par and i have used Portal content Translation to translate all the string in this properties file in different languages.For each language i created a different Worklist and published it.

When using this one needs to keep in mind the Language hierarchy.The browser is 4th on the list, so if the user has langauge set to English,which is at the 3rd position in the list,any change in the browser language will not take effect and u will still see the content in English.

Hope this helps anyone who is struggling with resource bundle language translation using Portal Content Translation and wondering if this actually works.

It Works !!!

Saurabh