• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

how to translate form data using i18n

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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.

Thanks in advance.

sridhara.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
sridhar anna
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Please reply.

Thanks in advance,
Sridhara.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic