No announcement yet.

Language support

  • Filter
  • Time
  • Show
Clear All
new posts

  • dean goodman
    Well, I succeeded.

    The Chinese distributor made a txt file corresponding to my menu items in Chinese. Then they told me to change in the control panel the Regional Language to include Chinese PRC...I did that, restarted the computer and walla...i had PB menu items in Chinese after reading in the txt file and diplay these as strings...

    When the regional language setting is off, the Chinese text of course appears with strange characters...e.g..."File","Îļþ"
    "create new project","н¨ÏîÄ¿"
    "transfer data","µ¼ÈëÊý¾Ý"
    "create new info","н¨ÐÅÏ¢"

    However, display this with the Regional Language setting and you will get Chinese.

    Of course to make an executable independent of the installed language would be a larger task as outlined in some of the replys to this thread.... I just thought I should followup with a simple, easy solution that works. The only requirement is to take out all the text and menu items and read these in based on the language requirement...

    Leave a comment:

  • Gösta H. Lovgren-2
    Dean, here's a recent thread on Unicode ( ). Won't help with the IDe but may help otherwise.

    Never let the future disturb you.
    You will meet it, if you have to,
    with the same weapons of reason
    which today arm you against the present.
    Marcus Aurelius Antoninus (121-180 A.D.)

    Leave a comment:

  • Dave Biggs
    RichEdit controls can display Unicode (Chinese etc) characters.

    See this thread for more help..
    User to user discussions about the PB/Win (formerly PB/DLL) product line. Discussion topics include PowerBASIC Forms, PowerGEN and PowerTree for Windows.

    If you want to type chinese characters this link might be useful..

    Good luck!

    Leave a comment:

  • Michael Mattias
    >Is there a setting which will import these characters into text easily

    Not if they are wide (unicode) characters.

    If you want to handle wide characters, you will have to find another way to store your string literals, period. A STRINGTABLE resource or external data file come to mind; although you could, I suppose, use DATA statements if you store everything byte-by-byte.

    You're also not going to be able to use DDT syntax to display those characters.... you are going to have to do everything 'SDK' style using the "W" versions of the Windows' API functions.

    Here's a little starter demo for you...
    Directory List with Non-ASCII (Unicode) characters in file names 5-31-08

    That gets and displays unicode text and should get you a pretty good idea of what is going to be involved to add Chinese support to your application.

    Hopefully you have not already submitted fixed-price quote on this.


    Leave a comment:

  • dean goodman
    started a topic Language support

    Language support

    I have request to make language support in Chinese for my software package GPR-SLICE. As a test, i have received some chinese characters which when I copy and paste look fine in Notepad, or Word, however, when paste into PB9, i just get ???? for the characters. Is there a setting which will import these characters into text easily...Or is there a setting to make in the PB compiler...

    Any help would be helpful...thanks...