[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2006-07-24
6
Medium Priority
?
196 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 1200 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 800 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

649 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