Solved

I need a clue for a good component to work with languages

Posted on 2006-07-24
6
193 Views
Last Modified: 2012-05-05
Hello guys,

I am developing a program and it will be translated for 3 languages, portuguese - english and spanish, I would like to know if there is a good component to work with.

One that allows me to change the language in run time.
Thanks very much
0
Comment
Question by:hidrau
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 28

Expert Comment

by:2266180
ID: 17166881
why not use the languages support provided by delphi?
0
 
LVL 28

Accepted Solution

by:
2266180 earned 300 total points
ID: 17166902
0
 
LVL 1

Author Comment

by:hidrau
ID: 17166905
If I understood correctly, I only use it to compile my project in the language that I want. It didn't allow to exchange the language in run time.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 28

Expert Comment

by:2266180
ID: 17166911
the paq I gave you should clear that issue :)
0
 
LVL 12

Assisted Solution

by:Ivanov_G
Ivanov_G earned 200 total points
ID: 17169923
According to me, you should make the translation by yourself. It is easy and you can customize it very well.

1) First of all, you can use Unicode controls (like TNT controls). If later you have to translate to Chinese for e.g. you will be ready.
2) Create TBaseForm, which is inherited by all other forms. Make a Translate method for it.
3) You translate method can use XML for captions. Example:

<language>
  <form name="Form1">
    <Label1>Your caption here:</Label1>
    <Edit1>Edit text here</Edit1>
  </form>
</language>

4) Your translate method should do something like this:

  for i:=0 to Self.ComponentCount -1 do
   begin
     if (Self.Components[i] is TLabel) then
       begin
         (Self.Components[i] as TLabel).Caption = 'YOUR_PARSED_VALUE_FROM_XML';
         // you can set hint also
       end;
     if (Self.Components[i] is TEdit) then
       begin
         (Self.Components[i] as TEdit).Text= 'YOUR_PARSED_VALUE_FROM_XML';
         // you can set hint also
       end;
   end;

For XML parsing you can use TXMLDocument.

Hope this helps.
0
 
LVL 1

Author Comment

by:hidrau
ID: 17286791
Thanks guys
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question