Results 1 to 4 of 4

Thread: Multi Language Application

  1. #1

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Multi Language Application

    Hey Guyz,

    Long time no see

    I have been handed over a task to convert an application we have written in Delphi 7 so it can input data into THAI Language (and more in future).

    First step I have taken is to make the database with all the tables using NVARCHAR & NCHAR & NTEXT so it can store the unicode characters. I have also converted all the stored procedures to use NVARCHAR & NCHAR & NTEXT.

    Now the next big step is to do something with the program so users can enter THAI characters. Good thing is the customer has agreed to keep the labels as they are but just the input is required in their language. e.g. Customer entry form, the labels would say Customer Code and Customer Name in english. But the Text box would take THAI input. Anyone has any idea how this can be done without having to have 2 different EXEs for 2 different language..!

    I have see THAI ppl using their laptop where when they type something normally it just gets typed in as THAI rather than english. Is that a matter of simply changing the Keyboard layout..?

    Hope this all makes sense

    Cheers

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Multi Language Application

    It's a matter of changing fonts, changing the keyboard driver, changing the language version of Windows running on the computer ... there are a number of ways to do what you need. I'd just get the program running and not worry about what keycode was drawn as what character on the screen.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Re: Multi Language Application

    OK I have got the alternative fonts installed and set the current keyboard layout set to THAI.

    Now it's a matter of changing a control's character set so it can take UNICODE characters. How do I know which Windows Message is passed via OS when keyboard language changes..?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Multi Language Application

    It should just be a matter of using a font which accepts unicode characters. And ensuring that the database can handle unicode characters, which in your case, has been done.

    You should now get debugging and watch the flow of the inputted characters into the database.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width