cancel
Showing results for 
Search instead for 
Did you mean: 

Localization of form-validation messages in WebDynpro

Former Member
0 Kudos

Hello all,

We're trying to solve this issue:

How to get localized (e.g. Slovak) messages which are result of form validation?

Situation: there is a context atribute, it's type is a simple type and this attribute is bound to an UI input element. When the form is submitted, every such attribute it's checked against it's simple-type.

So the question is how to get these messages - when validating automatically - for example:

"Enter the value in the format 25.11.1987"

in defined language? Is there a way how to configure/translate them?

Thanks a lot!!

Rado

Accepted Solutions (1)

Accepted Solutions (1)

p330068
Active Contributor
0 Kudos

Hi Radoslav,

You need use Message Pool for showing any data in the WEB Dynpro Applicaiton screen for intenationalization.

Please refer to this link might help in you scenario :

[Developing International Web Dynpro Applications|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/internationalization%20of%20web%20dynpro%20applications.pdf]

Hope it helps

Regards

Arun

Former Member
0 Kudos

Arun: This document shows only how to translate an application, so this is not the case.

The point is how to localize automatic messages NOT WRITTEN BY DEVELOPER but generated by WD framework, during form submitting and validation.

Edited by: Radoslav Martinec on May 12, 2010 9:19 AM

former_member214651
Active Contributor
0 Kudos

Hi,

Not sure about this, but there should be an option to change the settings somewhere on the server.

Regards,

Poojith. MV

Former Member
0 Kudos

Dear colleagues, is somebody able to answer?

Former Member
0 Kudos

Hi Radoslav,

default dictionary messages are located in archive:

/usr/sap/<SID>/JC<SYSNO>/j2ee/cluster/server<n>/bin/ext/tcddicddicruntime/SapDictionaryTypesRuntime.jar

unpack it and check directory:

com/sap/dictionary/runtime/messages

if file:

messages_<your_locale_code>.properties

is missing, simply create new one, pack it and overwrite archive on your server

Hope this helps.

Kind regards,

Juraj

Former Member
0 Kudos

Thanks Juraj!

It works as described.. This is exactly what we was looking for!

Answers (1)

Answers (1)

former_member214651
Active Contributor
0 Kudos

Hi,

To achieve this, u need to internationalize your application, so that locale specific texts are displayed. U can find documents on the SDN site to internationalize a webdynpro application.

Regards,

Poojith MV

Former Member
0 Kudos

Hi, thanks, but can you point me to a specific document? Is there any example...?