Jump to content
Sign in to follow this  

How to make a your website multilingual

Recommended Posts

"Language" as in "keyboard layout" or "spell check"?If you're talking about keyboard layout... You can't really do that. That's up to the user's keyboard settings. The closest thing to that you can do is detect the key pressed, and emulate a different keyboard layout based on a user selection. Depending on the browser used, this could backfire (=> the user would enter the character configured at their keyboard settings). You can do that using JavaScript. Attach an "onkeydown" event, check the pressed key from the event's "keyCode" property, append the character that corresponds to it (NOT the "charCode" character - this is the character based on the user's current keyboard settings), and return false to prevent the original character from being written.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...