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 

How to process with common titles

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



Joined: 06 Jan 2006
Posts: 124

PostPosted: Fri Jan 06, 2006 10:38 am    Post subject: How to process with common titles Reply with quote

Hello, I don't want to translate some title in each form, Is there a possibilty to translate it once and to reference in each form to the central point?

Thanks a lot
Thomas
I'm using C++ Builder 6, 6.1, Dispatcher, LangRT, and SIL file
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Fri Jan 06, 2006 11:00 am    Post subject: Reply with quote

This will require some "manual" work:
1. You can declare some global string variables in some common unit.
2. Create some function that will initialize these variables with the content.
3. Translate this function content using TsiLang Expert (File -> Source menu)
4. Under OnChangeLanguage event of TsiLang you will need to call this function.
5. In other forms you will need to initialize you UI controls with these variables and repeat this on every language change event.

But it will be dramatically simple to leave them as they are and just re-type translations. You can add your translations to Dictionary and later just use Auto-Translate to speed-up the translation.
Hope this helps.
Back to top
View user's profile Send private message
Thomas J.



Joined: 06 Jan 2006
Posts: 124

PostPosted: Fri Jan 06, 2006 11:24 am    Post subject: Reply with quote

Thanks a lot, but how can I do this?
I add a new row in the Dictionary
"Betreff" (German), "Subject" (English)
and saved.
I opened my form and the Translation Editor add in the German column
"Betreff" and in the English column "Subjects" which is of course wrong.
I clicked on Suggestion and Auto Translate and Translate all.
But the wrong word "Subjects" was still the translation of "Betreff".

What did I wrong?
Thanks for your help
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Fri Jan 06, 2006 11:29 am    Post subject: Reply with quote

I can suppose that you have in dictionary the "Subjects" as translation for "Betreff". Just check the content of your dictionary.
Back to top
View user's profile Send private message
Thomas J.



Joined: 06 Jan 2006
Posts: 124

PostPosted: Fri Jan 06, 2006 11:38 am    Post subject: Reply with quote

No its "Subject" sure! But if I remove "Subjects" that the cell is blank it works. So it works only for empty cells?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Fri Jan 06, 2006 11:50 am    Post subject: Reply with quote

If the cell is not empty then it is not auto-translated.
Back to top
View user's profile Send private message
Thomas J.



Joined: 06 Jan 2006
Posts: 124

PostPosted: Fri Jan 06, 2006 12:21 pm    Post subject: Reply with quote

But if I have e.g 80 forms and on each form I have 2 titles with same title and now I have to change the 160 titles due to a mistake or new spelling reform. I have to change these 160 titles manuel?
There is no other solution?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Fri Jan 06, 2006 12:43 pm    Post subject: Reply with quote

You can export translations into SIL/SIB file and using SIL Editor use Auto-translate feature with "Overwrite existing items" option checked. This will try to re-translate the items that are already translated.
Hope this helps.
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