SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is it possible to translate everything ?

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
laurent



Joined: 28 Apr 2003
Posts: 2

PostPosted: Mon Apr 28, 2003 7:19 am    Post subject: Is it possible to translate everything ? Reply with quote

hello

I am a newbie in Delphi and I am testing different solution to internationalize a project that will start in the next weeks. I downloaded the demo of your software last week to compare it with other solutions that I found.

I think that your solution fits our needs. But I have some questions to close my tests:
1/ Is there a way to translate all the system messages like for example : "Invalid filename", "Out of memory", "Cannot make a visible window modal" ... In other solutions it is possible so I want to know if I can do it with yours.
2/ Is there a way to translate all the information of a windows dialog ? I know that, for example with an open dialog, I can translate the caption of the different elements. But I want to know if I can translate the hint of the different butons of the dialog (example: create a new folder).
I used sDialogs but didn't find a way to do it.
3/ Is there a way you to translate the hint of the three butons that are in the window bar (close minimize, maximize) and the pop-up menu that appears when you click on the icon of the window bar. In the test I made, these texts were in the language used by the os.
4/ I read in the documentation that the translations can be associated with the exe file but can also be found in external files. I understood that we can simply add or modify translation by adding or modifying a file of the application. Am I right ? If i am, can you explain to me how to use externall files to stock the translation because I did not find a way to do it ?

Thanks in advance

Laurent
Back to top
View user's profile Send private message
gaivans



Joined: 29 Nov 2002
Posts: 71

PostPosted: Mon Apr 28, 2003 10:49 am    Post subject: Reply with quote

Hello,

1) Yes, it is possible. That strings are stored as resourcestrings in your application. And if some of them to be translated in your application you need set the property "HandleResourceStrings = True" of corresponding TsiLang components as well to add required strings to translation data with "Resource Strings Wizard" from the siLang Expert.

2,3) The hints for system menu items or window buttons (close/minimize/restore) are system-wide and "issued" by the operating system, so your application cannot translate them. All other visual elements of common dialogs are translated in the siDialogs components.

4) You are right. There are two ways to store translation data: internally in the .dfm/.xfm files and externally in the .sil/.sib files. The first way provides the better performance but the second one is more flexible, that is you or your end user can change the translations without recompiling the application. To link you application with external .sil/.sib file make the following:
a) Add to all the application forms TsiLangRT components.
b) Lanch the TsiLang Expert and click the menu "File|Save/Load Translations...|Save project...' and then specify a file name.
c) Open that file file in the SIL Editor and enter the translations.
d) Link all project's TsiLangRT comnponents with the above file. You can do it either its "StorageFile" property or via a TsiLangDispatcher's property "FileName".

Well, these are brief answers so you recommend you download our User's Guide from http://www.sicomponents.com/soft/siManual.pdf which contains much more useful information.
Back to top
View user's profile Send private message AIM Address MSN Messenger
laurent



Joined: 28 Apr 2003
Posts: 2

PostPosted: Tue Apr 29, 2003 6:51 am    Post subject: Reply with quote

Hello,

I found why I couldn't use an external translation file. The "Load on create' property was set to false. I set it to true and it works perfectly.

Thank you very much for your help and your quick answer.

I have now all the information I need and I think that your solution will be chosen.

Laurent.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group