cancel
Showing results for 
Search instead for 
Did you mean: 

Language of error message of simpletypes

Former Member
0 Kudos

Hi,

I've created a few simpletypes to input only digits for example. When i input letters in there, a message shows that i have to change te format the only problem is that the message is in german. Nothing wrong with german but i would rather have it in english. My browser is english and the language of my user in the SAP portal is set to english . How does Web Dynpro get its locale settings?

Much thanks,

Hugo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hugo,

1. Quick test -- add the following parameter to application URL, it overwrites any language settings: sap-locale=en_US

Open application in new browser window. Can you see English text now?

2. Is this simpletype from Local Dictionary or from Adaptive RFC Model dictionary?

In later case probably you have fixed settings for language in metadat connection...

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Valery,

I tried using the sap_locale parameter but still got the message in german.

I use the simpletype from the local dictionary.

regards,

Hugo

Former Member
0 Kudos

Which release/SP are you using?

Armin

Former Member
0 Kudos

Im using Version: 2.0.15

Build id: 200511290548

Hugo

Former Member
0 Kudos

Which language order is configured in your browser? Are you sure your application locale is english when you get these german messages (they come from the Java DDIC runtime, not Web Dynpro itself).

Armin

Former Member
0 Kudos

How can i see what my application locale is in WD? The order of languages of my browser is en-us, en.

Hugo

Former Member
0 Kudos
wdComponentAPI.getMessageManager().reportSuccess("Session locale is " + WDResourceHandler.getCurrentSessionLocale());

Armin

Former Member
0 Kudos

It says:

Session locale is en

Hugo

Former Member
0 Kudos

Hugo,

Seems that your project was created in DE language and simple type has no corresponding EN translation, check that corresponding *_en.xlf file exists.

VS

Former Member
0 Kudos

i cannot find any _en.xlf files in my project but neither any _de.xlf file...or is german the default language?

Is there a way to change the language to EN and add corresponding EN translation to the simple types?

thanks,

Hugo

Former Member
0 Kudos

Hugo,

But you can see *.xlf file that correspons to simple type, and text here is in German, aren't you?

Also check Project properties -- the default language is German as well if my guess is correct.

If both is true then you have to add translated version of XLF.

VS

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi Hugo

It seems VS is right. You need to create _en.xlf. You can just copy _de.xlf into _en.xlf and change value of source-language="de" property to source-language="en" in the file.

BR

Sergei

Former Member
0 Kudos

Valery,

I only see files with wdview and wdwindow in the name....such as *.wdview.xlf or *.wdwindow.xlf . I dont see any files with the same name of my create simpletypes such as creditNoteAmount_de.xlf for example.

Hugo

Former Member
0 Kudos

btw the project properties of my project under metamodel says my language is American English

Former Member
0 Kudos

Hugo,

Can you describe your simple type? What is base type? What restrictions are applied?

If your project is en_US, and type is just trivial deriviation from built-in type ineteger or double, and session locale is reported as EN but the message is still in German, then this is probably a WD bug. WD has message texts for all built-in types and they should be translated (EN as DE is fully supported language by SAP). Just for clarity, could you post exact message text?

VS

Former Member
0 Kudos

Valery,

My simpletype is called creditNoteAmount and uses local dictionary. The build-in type is decimal. I havent specified a base type.Length constraints are 15 digits and 2 fraction digits. The message i get when i input letters for example is: Bitte geben Sie den Wert in der Form -2,733.34 ein.

Hugo

Former Member
0 Kudos

Hugo,

This is standard WD message for numeric types. Seems that your installation has no text translated to EN for this message. Try to submit a bug.

Also check whether other built-in error messages are correct. For example, create simple type with enumeration and try to enter value outside enumeration. Does it shows error in END or in DE?

VS

Former Member
0 Kudos

Valery,

I tried creating a simpletype of type integer with value range of 1 to 25. When i enter a range outside of this i get the message: Wert 234 muß kleiner oder gleich MaxInclusive 25 sein....

Where can i submit a bug ?

Much thanks,

Hugo

Former Member
0 Kudos

hi Hugo

I 've met the same problem as you.

Did you find out the solution?

Thanks & Best Regards

Liting Zhou

Former Member
0 Kudos

Hi Liting,

No, im sorry. Still havent found a solution. The strange thing is that we have a previous build application which when deployed on the server DOES show english. This makes me suspect it's a configuration thingie in netweaver when building the project.

regards,

Hugo

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Hugo,Valery,Armin,

We've gone on a upgrade from SP14 to SP18 and facing this issue. Though the locale is still the same (en_GB), in all applications the standard validation error messages appear in German. Does any setting needs to be changed or is it a problem with SP18?

FYI, I tried what Valery and Armin suggested, and the locale is determined as en_GB at runtime.

Any help is greatly appreciated.

Thanks,

Rajit