Reader's Comments »

  1. 1. By Ray on January 9, 2013 at 22:56

    Hi Kambiz,

    This looks like an excellent component.

    If I had to store strings in another language such as Chinese or Arabic, how would I go about it?

    For example to store a string such as ‘hello’ I simply write the 5 character string to a file. example put_string(location : longint;s : string) which is my own procedure to just write the s string to the file at a certain location using blockwrite.

    Would I need to have two byes for each character if I use other languages?

    Could one mix English and say Chinese in one file?

    Sorry its a bit vague, but not really sure about what questions to ask as I am new to Delphi with other languages.

  2. 2. By Kambiz on January 10, 2013 at 08:35

    Dear Ray,

    Both i18n package and i18nEditor use UTF-8 to save or load strings from file. Actually, you do not need to do anything special in your code.

  3. 3. By Phil on January 14, 2013 at 20:16

    Thanks Kambiz, you don’t know how much you help means to me.

    I have TMS software components that I would like to RTL. I will use your TTranslator and see what I will come up with.

    Feedback: the component looks great on your article, but there is something major missing. The form buttons (Close, Max, Min)

    are still LTR. I hope you modify the following code and add it to the component.

    —————————————————————————————————-

    procedure TForm1.FormCreate(Sender: TObject);
    begin
    SetWindowLong(Form1.Handle,GWL_EXSTYLE, GetWindowLong(Form1.Handle,GWL_EXSTYLE) or WS_EX_LAYOUTRTL);
    end;

    —————————————————————————————————-

    Appreciated,

    Phil.

  4. 4. By Phil on January 14, 2013 at 20:19

    I just found a typo in the read me file of the component:

    ————————————

    I N S T A L L A T I O N
    ———————–

    To install the i18n package on Delphi:

    1. Open ‘i18nPackages.groupproj’ that is located in the ‘Packages’ folder.
    2. Bild <<<<<<<<<<< (here it is) 'i18n' and 'i18nDB' packages.
    3. Install 'i18nDesign' package.

    ————————————

    Delete this comment and don't publish it. Unless you don't want to :p

  5. 5. By Kambiz on January 14, 2013 at 20:53

    Thanks for your comments.
    Sometime changing the window layout has a messy result, particularly with common controls. But for the next release I’ll try to add an option for cases that it’s required.

  6. 6. By Kambiz on January 14, 2013 at 20:56

    Thank you for bringing this typo in my attention.
    It’s good to know that this file is read. 🙂