cancel
Showing results for 
Search instead for 
Did you mean: 

XML Forms Template Translation

Former Member
0 Kudos

Hi expertes!

Customer is actively using XML templates for generating news and other KM content information.

All the XML forms templates are created using XML forms builder and created in local language. The customer has customers in different countries and want to have the Templates translated so they can easily create forms in different languages. Ie: forms translated, buttons, headings and so on....

One way of creating different templates would be to open up the local template in XML forms builder and make a copy(Save as) and translate the template, generate it and thus making template available in a different language. BUT this represents a lot of work if you have lets say 5-6 languages and all templates must be translated. Not to mention if you want to add a field, you would have to do it 5-6 times.

Question?

Are there any way of "translating" the XML template like you can do with "portal content translation" so you maintain only one XML form template but it changes according to the logon language of the portal?

like adding "language filters" to one xml template

Thanx in advance

Trond

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi thanx for quick response.

So by resetting the following two caches, you mean that the "translated" (xxxx_EN.xml)will show the correct translation in the generated XML document.

By that i mean the document that the users see and not the Administrators template ( entry form of xml).

For me it seem like the translation of the XML forms template works as a dream, but the output(finished enduser xml forms) still contains original language.

Best regards Trond

former_member615122
Participant
0 Kudos

Hi Trond,

I just did a test on my system and clearing the cache should solve the problem.

In my posting above I forgot a third cache:

- ca_xmlforms_showforms

Regards, Roland

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanx!!

Customer reports that this worked!

Assigning points!

Have a nice day.

Best regards

Trond

Former Member
0 Kudos

Hi, Thanx to this Forums professional users

ihave found the way of translating the XML forms template for easy changing the XML forms language using Userid language. So when a user logs on and wants to create a new XML forms(news ect.) they get the form in their own language.

Found in SAP help:

Language-Dependent Resource Files

You can use the default resource files as a template for language-dependent resource files. Note the following naming conventions for language-dependent resource files:

<Preferences location>/<project name>/<project name>_<language key>.xml

For example, an item file for Italian could have the following ID:

/etc/xmlforms/SAP_DemoNews/SAP_DemoNews_it.xml

You have to create the language-dependent resource files manually (see Activities). You offcourse change the content of the xml

Question:

When we translate the form and test it, the entering template(xml) works perfect and we can generate the xml forms(news) in no time, BUT when displaying the XML forms in "SHOW" modus, it points back to a NON translated XML/XLS form. The translation of the form should also print/show the translated xml forms in SHOW modus also? Is there a way of translating the SHOW, bcs going into the forms builder is too time consuming and we can n ot do this bcs of short timeframe.

Any solutions to this, Thanx!!

Best Regards

Trond Gjerde

former_member615122
Participant
0 Kudos

Hi Trond,

to optimize XML Forms performance the XSL transformer object and also some HTML snippets are cached. Please try to reset the following two caches (System Administration > Monitoring > Knowledge Mgmt > Cache Monitor):

- ca_pipeline

- ca_xmlforms_renderlistitems

Regards, Roland

Former Member
0 Kudos

Hi, thanx, looks good,

I'l read the document and revert back to you!

cheers

former_member615122
Participant
0 Kudos

Hi Trond,

it's possible to translate XMLForm templates. For more information see the <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/fb/c10f41dd57f623e10000000a155106/frameset.htm">documentation</a>

Regards, Roland