cancel
Showing results for 
Search instead for 
Did you mean: 

Translate FileUpload

Former Member
0 Kudos

Hi everybody,

in my application I use the FileUpload UI element.

But the button for browsing the local filesystem is not translated according to the locale of the user.

I can change my browser settings to whatever I like the Buttons text stays german.

I get the browser language by WDResourceHandler.getCurrentSessionLocale().

Can anybody help me in translating it.

Any hint is highly appreciated...

Best Regards,

Roland

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create .xlf files for different locales.

Refer this https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de1...

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Ayyapparaj,

thank you for the quick reply!

I know about the xlf files but in the origin xlf file there is no entry for the fileupload ui.

There are entries for labels and buttons, but no one for the fileupload ui element...

Regards,

Roland

Former Member
0 Kudos

The short answer is no.

The file upload "browse" button is not specific to Web Dynpro.

It depends on the browser you're using. It might not depend on your currently selected locale (or any locales used in the portal). It might depend on the language you set on the operation system.

There is no way to change the look of the "browse" button or the file upload input field.

There is however some pretty tricky workarounds (described here: http://www.quirksmode.org/dom/inputfile.html) witch are very browser dependent, even if you're using the same browser with different versions.

The workaround is that you create a input and a button (or image) and place them exactly where the file input field would be. It is not possible to do this in webdynpro, but you could do this with a JSPDynpage.

However, you would probably need to rewrite this code for each browser version released