Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos
Recently on one of my projects I was faced up with problem... I'm implementing SAP EP for some multinational company (local Russian branch). One of main requirements is to make this portal multi-lingual. We've got two main languages (Russian and English). There's no problem at all, when we speaking about translation of interface elements (worksets, pages, etc.). It's quite easy with 'Portal Content Translation'. The trouble comes with KM.  We need to use 'Forms Based Publishing' feature with different languages. And again we need to display forms (news, personal cards, other created forms) in proper language according to user preference. I tried to fing some info, opened OSS message, post here. Juite a little info. But we solved that by our own! And even faster than all advices from SDN (and OSS of course :o)). I'm not saying that it's quite perfect and clean solution, but it's working. And I wish to thank a lot Peter Grigoriev, who actually did the trick! Now what has to be done. I'm assuming, that You familiar with forms creation. Just create new form, or use one from SAP's demos.  Add objects for different languages and link them to Schema elements. You need separate input fields for Title, Description, and HTML editor for creating main article. Also make sure that those fields exist on RenderListItem and Show forms. In my example I created addionally 'namerus' custom property and descriptionrus and bodyrus DataSchema elements. Next Save and Generate your project.  Now it cames to the main part. 1) Download generated files to your computer. On portal's KM forms are usually stored in '/etc/xmlforms//'. You need files 'Show.xsl', 'RenderListItem.xsl', because they are responsible for showing content to enduser.  2) Open downloaded file with any text editor.  3) Perform a search for 'namerus' string, as it was custom property linked to text field with title of an article in Russian. 4) Add following code before "paragraph" tag: " ". Do not forget to close it after closing "paragraph" tag as shown on the picture. 5) Do the same, but with "$sap_language = 'en'" for property 'displayname. As shown on the next picture. Now title will be shown to enduser with language set on Portal Personalization!  You just have to repeat those 5 steps for all other fields in your form, and job's done!  You also probably would do same steps for 'RenderListItem.xsl' if you need this. Once again, I do not think that this solution is perfect (you have to manually change the code every time you change and   generate form). But it's working and there's no ready solution around.
17 Comments