I am developing an application using struts framework. I am using i18n for the page to be viewed in espanol. It works fine for static pages. For dynamic pages with forms, the keys/labels are displayed in espanol, but the values or input form data is dependant on the keyboard used. It is either english or espanol. If the input is entered in different languages, how do we translate it into locale specific language or translate into english and update in database.
The first thing I'd do is re-think the User Interface design. As much as possible, change all controls to radio button groups, check box groups, or dropdown select boxes. With these types of controls, you can display the labels in any language, but have the actual input value remain constant.
In the case where the user simply enters text into an input box, there isn't really much you can do to manipulate it for different languages other than insanely difficult and bug-prone code to try and decide what language it's in and try to translate it.
Is there any way to convert the input values to English? Are there any tools/plugins available? If the characters from a language like Japanese are translated into English, how do we know for sure that the meaning remains same.
There are translation tools available. Just use Goggle or some other search engine to find them. However, given the complexities of languages, there really is no way to know that any tool has translated something correctly.