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 

TsiLang component in .dfm file

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



Joined: 15 Jan 2003
Posts: 4

PostPosted: Wed Jan 15, 2003 3:38 pm    Post subject: TsiLang component in .dfm file Reply with quote

Hi, I'm using v5.2.0. Is there a way to store silang1.TranslationData within the .dfm file using text mode (as it was with previous versions) ?
How to multi-select cells of the grid of the translation editor?
How to multi-line edit a hint? There is no such menu item in the right click pop-up of the grid.
Thank you for help. Juergen
Back to top
View user's profile Send private message
gaivans



Joined: 29 Nov 2002
Posts: 71

PostPosted: Thu Jan 16, 2003 8:23 am    Post subject: Reply with quote

Hello,

> Hi, I'm using v5.2.0. Is there a way to store silang1.TranslationData within the .dfm file using text mode (as it was with previous versions) ?

The binary mode was introduced to protect strings from encoding corruption by the IDE's editor. If you need make any manipulations directly with the text data, you might save all translations into an external .sil file, modify it in a text editor, and then import back into the TsiLang.

> How to multi-select cells of the grid of the translation editor?

As in any text editor - using Shift+Arrow. Mouse selection has not implemented yet.

> How to multi-line edit a hint? There is no such menu item in the right click pop-up of the grid.

You can use the shortcut Ctrl+Enter. The corresponding item in the popup menu in our TODO list.

Best regards,
Serghei Gaivan
Back to top
View user's profile Send private message AIM Address MSN Messenger
juefu2002



Joined: 15 Jan 2003
Posts: 4

PostPosted: Thu Jan 16, 2003 1:34 pm    Post subject: Reply with quote

Hello,

> Hi, I'm using v5.2.0. Is there a way to store silang1.TranslationData within the .dfm file using text mode (as it was with previous versions) ?

The binary mode was introduced to protect strings from encoding corruption by the IDE's editor. If you need make any manipulations directly with the text data, you might save all translations into an external .sil file, modify it in a text editor, and then import back into the TsiLang.

ok

--The reason for my question is the following: I'm working with inherited forms: FormA with a lot of controls and a silang (NumOfLanguages=2). FormB inherits FormA and adds some more controls. I translated the controls of FormA. If I open the translator for FormB I can't see the translations of FormA for the second language. Consequently for the running application:
Call of FormA --> Change language --> all translations ok.
Call of FormB --> Change language ---> for FormA controls only the first language is present.

I know it works FINE for SIMPLE examples but this is a rather complex project.

I tried to workaround this by saving the translations of FormA to .sil and reloading the .sil file into FormB, but all properties were lost within the translator grid, I had to escape the translator without saving the changes.

The only chance I see at the moment is to re-enter all translations into FormB, but this is a lot of work! Any hints?

Thank you. Juergen
Back to top
View user's profile Send private message
gaivans



Joined: 29 Nov 2002
Posts: 71

PostPosted: Thu Jan 16, 2003 3:20 pm    Post subject: Reply with quote

Hello,

We would recommend you using the Dictionary Manager. For example, you enter translations in Translation Editor for FormB (as this child form contains all FormA's controls as well own ones).After that select from the menu "Dictionary|Add All" or press the toolbutton "Add All to Dictinary". All translations will be added to the default .DIC file. You can export all translation data (initial) from all the forms into a single .DIC file and send it to you translator with the Dictionary Manager.

After the translations is ready you can load them into any form in the project via "Dictionary|Translate All". This approach is especially useful if many strings in the project are repeated.
Back to top
View user's profile Send private message AIM Address MSN Messenger
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