cancel
Showing results for 
Search instead for 
Did you mean: 

Provide Multi Language Content in Knowledge Management blank page

Former Member
0 Kudos

Hi Team,

I have followed the document above from Thomas Kuri, but the result was an empty page with "jj" as text without errors.

My case (SAP NetWeaver Portal 7.0):

1) I have two folders: "/documents/myCompany/de" with documents written in German and "/documents/myCompany/en" for English written documents

2) User can choose another language by click at the "English" or "German" link on the Masthead

3) Dependent on the choosed language, the right document should be shown in the iView.

I already have tryied these ways:

1) Create a JSP which includes the right KM document

2) Create a JSP with IFRAME and define the SRC as given in Thomas Kurt's document

3) Lookup an existing KM documents iView and set the "path" property in runtime

Thanks.

Regards,

Cengiz

Edited by: Cengiz Türkoglu on Jan 24, 2010 3:23 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can crete 2 diffrent pages for KM iviews of one lang each.

create PDC filers par files for pages to filter using language as required.

Then configure this filers on pages to display the page based on the language in PCD tools.

this will be a easy way to handle it.

Regards,

Gunja

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Cengiz,

Thank you for your help. I will try it.

Best regards,

Kirsten

Former Member
0 Kudos

Hello Cengiz,

Did you find a solution for your problem? I created and deployed the files yesterday and having the same problem (on NW 7).

Thanks.

Best regards,

Kristen

Former Member
0 Kudos

Hi Kirsten,

yes I have found another way. Follow the steps below:

1) Create a folder in KM (e. g. "MyCompany")

2) Create two HTML files within the folder (e. g. "mydoc_de.html", "mydoc_en.html")

3) Dependent on language, write something into this files (e. g. "mydoc_de.html" => "Dies ist das HTML-Dokument mit deutschsprachigem Inhalt", "mydoc_en.html" => "This is the HTML document with English written content")

4) Start NWDS and create a new Portal Application Project

5) In the project properties, define the JAR files you need for implementing the solution (bc.jar, com.sap.portal.ivs..jar, com.sap.portal.navigation..jar, com.sap.portal.usermanagementapi.jar, com.sap.security..jar, gl_*.jar). If on server side not available, you must copy/paste the missing JAR file in your projects lib folder

6) Update portalapp.xml with the entry SharingPreference -> <application><application-config><property name="SharingPreference" value"..."/></aplication-config>

7) Write your first class (it's a simple Java class) named "PortalKMUtil.java". In this class - that was my solution - I have three methods: a) getUsedLanguage() to read out users langauge, b) getDocContent() to read the documents content named "mycompany_" + USER_LANGUAGE + ".html" and c) getEP5User(). The last method transforms EP6 user into the EP5

😎 The second and last Java class in your project is an AbstractPortalComponent (I18NDocReader.java) with only three line of code. The responsibility of method doContent() is to call PortalKMUtil.getDocContent() with passing two parameters "request" and "mydoc". The return value of PortalKMUtil.getDocContent() - it is of type String - you can write in the response object

9) On the Portal side, create a new iView and use your own (new created) AbstractPortalComponent as template

10) Start testing in preview mode. Switch browser language if you can see the right content within the iview

If you need some sources, don't hesitate to write to me.

Regards,

Cengiz