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 

Translation Editor and Import strings from PeFile

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



Joined: 13 Mar 2005
Posts: 14

PostPosted: Fri Nov 11, 2005 11:33 am    Post subject: Translation Editor and Import strings from PeFile Reply with quote

Hello,

questions:

I have all my files in the TSiLangExpert. Is there a way to mark all files to get one TranslationEditor-File?

In the TranslationEditor I have 5 languages. I have for every language a translator. I give every translator a sil-file and I get back 5 files. What have I to do to get on sil file from the five files?

I have freereport components in my project. I get the strings with Import strings from PeFile. But after finnished this wizard I cann't find the marked phrases.

Where can I find this strings?

I have in the frreport components memo-fields as report- or columnheaders. How can I get this memo fields for translation?

Best regards

Josef
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Fri Nov 11, 2005 2:09 pm    Post subject: Re: Translation Editor and Import strings from PeFile Reply with quote

Josef Koller wrote:
I have all my files in the TSiLangExpert. Is there a way to mark all files to get one TranslationEditor-File?

Just select all forms in TsiLang Expert or use Save Project to save all project forms into one SIL/SIB file.

Quote:
In the TranslationEditor I have 5 languages. I have for every language a translator. I give every translator a sil-file and I get back 5 files. What have I to do to get on sil file from the five files?


SIL Editor menu includes File->Merge command which starts Merge Wizard and it will easily help you to merge these files into one.

Quote:
I have freereport components in my project. I get the strings with Import strings from PeFile. But after finnished this wizard I cann't find the marked phrases.
Where can I find this strings?

These strings are placed into Strings section of TsiLang. You will easily identify them since they have IDS_RES_ prefix.

Quote:
I have in the frreport components memo-fields as report- or columnheaders. How can I get this memo fields for translation?


You can assign content of these fields in your source code in creation event and use TsiLang Expert to translate these hard-coded strings.

Hope this helps.
Back to top
View user's profile Send private message
Josef Koller



Joined: 13 Mar 2005
Posts: 14

PostPosted: Fri Nov 11, 2005 8:40 pm    Post subject: Reply with quote

Hello,

thanks for answer. But:

[...]These strings are placed into Strings section of TsiLang. You will easily identify them since they have IDS_RES_ prefix. [...]

I got a hint in the Import strings from PeFile-Wizard that the strings will be include in the file fAnfang.dfm.

But when doubleclick on this file and click on strings ther is nothing in it.

With a normal texteditor I see in the fanfang.dfm some new strings (they came from the freereport-component.

But how get I the strings in the translation Editor?

Than you wrote:

Quote:
I have in the frreport components memo-fields as report- or columnheaders. How can I get this memo fields for translation?


You can assign content of these fields in your source code in creation event and use TsiLang Expert to translate these hard-coded strings.

Hope this helps.
...
Not really! The only way I think is to take the GetValueEvent from the frreport component and give all the memos a variable and than I fill this variable by code. But this way is a hard job (lot of memos as headers in the reports). Do you know an other way?

Tanks and best regards

Josef
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Sat Nov 12, 2005 5:48 am    Post subject: Reply with quote

Did the Wizard finish successfully? May be there was some error during importing and wizard didn't complete? Could you please try to re-run the wizard and check?

With FR it is the only way, since they don't provide "access" to the inside objects and their properties anyhow.
Back to top
View user's profile Send private message
Josef Koller



Joined: 13 Mar 2005
Posts: 14

PostPosted: Sat Nov 12, 2005 9:46 am    Post subject: Reply with quote

Hello,

isiticov wrote:
Did the Wizard finish successfully? May be there was some error during importing and wizard didn't complete? Could you please try to re-run the wizard and check?

With FR it is the only way, since they don't provide "access" to the inside objects and their properties anyhow.


I found the mistake:
I gave the property HandleResourceStrings to True than I closed the forms (with save). Than I started "Import strings from PeFile" again.

Than it works and I get the strings.

But I have a new problem:

I have charts in my forms. In extended translations I found my chart1 and my series. In chart1 I found the charttitle but I cann't find the series titles.

Where they are?

Thanks again

Josef
Back to top
View user's profile Send private message
Josef Koller



Joined: 13 Mar 2005
Posts: 14

PostPosted: Sat Nov 12, 2005 1:11 pm    Post subject: Reply with quote

Hello,

sorry, I found the strings in "others".

Thanks again

Josef
Back to top
View user's profile Send private message
Josef Koller



Joined: 13 Mar 2005
Posts: 14

PostPosted: Sat Nov 12, 2005 3:08 pm    Post subject: Reply with quote

Hello,

I' again. I come from error to error.
If I click to dictonary and than to Translate all I get the following errror:

Incompatible Version of RPC stub"

with Ok I get a languagebox mith my languages but all grayed. the button Cancel is possible.

What's that?

And than:
I tested with my really project the possiblity to get the freereport strings with load from PEFile. After successfull ending this wizard and doubleclick to the file which I have separeted for insert the strings I get the warning that it is unable to open this file. The FAnfang.caption isn't available etc.

What's now wrong?

Tanks and best regards

Josef
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Sat Nov 12, 2005 6:05 pm    Post subject: Reply with quote

About Dictionary Manager: it looks like you've closed the Dictionary Manager during Auto-translate.

About the error you get with "FAnfang.caption ...": where do you get such errors?

P.S. I will be out of office during next several days, please take in account this.
Back to top
View user's profile Send private message
Josef Koller



Joined: 13 Mar 2005
Posts: 14

PostPosted: Sat Nov 12, 2005 6:53 pm    Post subject: Reply with quote

isiticov wrote:
About Dictionary Manager: it looks like you've closed the Dictionary Manager during Auto-translate.


no, I found this error. I have had a wrong Oleaut32.dll. After copy the original file from the windows-CD the AutoTranslate function works fine.

isiticov wrote:
About the error you get with "FAnfang.caption ...": where do you get such errors?


This message comes after ending the PEFile Wizard. I doubleclick to the FAnfang file in the TSeLangExpert List.
The FAnfang is the startfile of the project.

isiticov wrote:
P.S. I will be out of office during next several days, please take in account this.


No problem, I'm just in test phase.

Nice days, many thanks and best regards

Josef
Back to top
View user's profile Send private message
Josef Koller



Joined: 13 Mar 2005
Posts: 14

PostPosted: Sat Nov 12, 2005 11:25 pm    Post subject: Reply with quote

In additional to my last message here the steps by start PeFile wizard:

By this test I gave only to the unit FAnfang 6 languages. Than I gone the property handlesystemresources to true than saved and closed the file fanfang.

Than doubleclick in the expert to the file. than the messagebox:
Error by reading FAnfang.Caption. Invalid value of the property. Error ignore and continue? Warning: By ignore it is possible that components will be delete or property values will lost.

After Cancel I got the message:
Unabel to obtain the interface of form module! Please check your project source.

Than: I would like to open the FAnfang.dfm with Delphi . But after minutes of loading I got the message:
Expand of memory stream not possible. memory lack.

Than I opened the uAnfang.dfm with WordPad. Here one of the last rows of the file. But I think the hole file is damaged.

stStrings
IDS_RES_53032Show help
IDS_RES_53028Find text
IDS_RES_53027Print report
IDS_RES_53026Save report
IDS_RES_53025Open report
IDS_RES_53024Scale
IDS_RES_53023Close preview

If it is possible I will send you the file UAnfang.dfm

Best regards

Josef
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Sun Nov 20, 2005 9:43 am    Post subject: Reply with quote

Please send us the DFM file. It looks like it is corrupted somehow.
Back to top
View user's profile Send private message
Josef Koller



Joined: 13 Mar 2005
Posts: 14

PostPosted: Mon Nov 28, 2005 11:24 am    Post subject: Reply with quote

Hello,

I have the same problem again and again. I find no way th get the strings in the FreeReport (Import form PE-File).

Is it possible to send you the project small one only with a start form and a second form)?

Best regards

Josef
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Mon Nov 28, 2005 11:59 am    Post subject: Reply with quote

Hello,

Yes, please send us the sample project and we will try to find the origin of problem.
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