views:

94

answers:

2

what i need to know is: http://img338.imageshack.us/img338/315/19999578.gif

, self explaining image :)

is it possible in Chrome Browser?

Thanks in advanced

+1  A: 

Would the internalization API work for you? http://code.google.com/chrome/extensions/i18n.html

If you want to get the systems language from Windows Language bar, you would need to use NPAPI http://code.google.com/chrome/extensions/npapi.html to get the language. You would need to create a plugin that fetches the windows settings for language and use that for your extension.

That might be a valid request for i18n, perhaps create an issue for that http://crbug.com/new

Mohamed Mansour
hmm not really..because i need to know user's languagebut thanks for your answers
dinbrca
I updated my answer, you would need NPAPI
Mohamed Mansour
A: 

If you need something different than the i18n API Mansour mentioned, use navigator.language.

Eli Grey
but navigator.language gives me eni need to get the current language the user writes on..for example i got english and hebrew language as my "Region and Languages" preference in windowsso if i am currently using hebrew than i need to get "he" but if i currently writing in english than i should get "en"it isnt related to the language i prefer in Google Chrome
dinbrca