Skip to Content
0
Former Member
Dec 08, 2009 at 04:01 AM

HTML button text in English and German

48 Views

Hi,

I have a BSP application where I have stored a Javascript file in MIME repository. IN this file I have a code to display button called 'Clear All'

<butt on name="clear" i d ="clear" disabled="true" ty pe="button" style="font:14px Arial" On Click="clear ();" >Clear All </button >

Now the issue is, I want 'Clear All' to be dispalyed in English if the browser language is 'English' and German if the browser language is 'German' . How can I do this. I tried with

lang = navigator.browserlanguage 

but it always returns the language as English even though the setting is made to German. How can this be resolved

Can anybody help me with this.

Thanks,

Maansi