|
|||
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius | Page: 1 2 |
|
|||||||||||||||
| Handling of DRC files - Usage - Three simple steps to localize - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support | |||||||||||||||||
| Author | Post | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||
|
waeberd Member
|
Hello, To build an initial sisulizer project, I have localized EXE files that I am importing one by one. For each EXE file I have a corresponding DPR and DCR file. Here's what I do: 1) Run "File -> Import" for the EXE in the original language 2) in the wizard, add paths to the drc / dpr file of the original language 3) Run "File -> Import" for the EXE in the second language 4) In the wizard, add paths to the drc / dpr file of the second language. => doing this, I get a warning "drc file is out of date. Resource strings may be mixed." why? I have double checked that EXE / DRC / DPR files are matching. In step 4, do I have to add the same drc file as in step 2?? and: sisulizer was right to warn me, resource strings are definitely mixed... Cheers, Daniel
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
Hi Daniel, Just to make sure: You first created a project with File - New. This will import your original language into the project. And you made sure that DRC/DPR are correct for that? Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Jaakko.Salmenius Administrator
|
Make sure that Delphi really makes a new DRC file every time you rebuild your project. http://www.sisulizer.com/online-help/DrcFile.htm It may be that your have turned off this feature and this is why your DRC is older than EXE. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
Hi Daniel, Another good source for Delphi developers is our manual for VCL developers: http://www.sisulizer.com/software-localization-tool/vcl.pdf You should not miss to read it since it written by developers for developers and gives you some background info. Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
waeberd Member
|
hmm, I have re-done everything from scratch and still got the warning as soon as the second language was imported. But this time the strings were in the correct order. One special thing is that the exe is compiled using the eurekalog compiler (in a Finalbuilder script). Let me re-check it using the native Delphi2006 compiler... Another thing maybe related: If I import the first EXE in the project, it is not possible to select "German (Switzerland)" as an original language of the source (see Screenshot). Thanks guys! Daniel Attachment: sisulizerLanguageSelection.jpg (Downloaded 41 times)
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
Hi Daniel, Sisulizer lists the languages it finds in your binary. Looks like you do not have Swiss German in it. Perhaps you want to switch of the automatic with Tools - General Settings - Languages - Detect original language. I'm not sure if that will allow you to select a language not available in your EXE. But in any case this is not related to the problem with the drc files. Perhaps the eurekalog compiler is the reason. Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
waeberd Member
|
Thanks Markus, I will re-check everything tomorrow with manually built exe-files (from the Delphi 2006 IDE). Regarding the language: I have double checked that "Swiss German" is set correctly (see screenshot). Still having the same language selector. Regards, Daniel Attachment: projectLocaleID.jpg (Downloaded 40 times)
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
Hi, Can you please zip that Exe and upload it to us. We have to take a look. Please use the new "Private Upload" button right above this post. It helps us to keep track of uploads and forums posts. Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Markus.Kreisel Administrator
|
... or you can check yourself with a tool like XN Resource Editor (Freeware). You have to check if your resources have the correct language. Your shot shows only the version info, but each resource block has its own settings. Best Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
waeberd Member
|
Thanks a lot Markus, I will re-check this tomorrow morning and come back to you. And build a minimal EXE showing the problem... Cheers, Daniel
|
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Markus.Kreisel Administrator
|
Hi Daniel, Please make sure that all resources have the right language settings. Setting the version info does not change the language of the resource string blocks. Best Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
waeberd Member
|
Markus, I will check this. How can I change the language of the resource string blocks in Delphi? Thanks for your great support, Daniel
|
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Markus.Kreisel Administrator
|
Hi, I'm not a Delphi developer myself. I would know how to do it plain windows recource files. There each block has some header. Should be the same in Delphi... but I don't know how where in the GUI this setting is implemented. Hope our R&D follows the thread and give some hint where to look. Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Jaakko.Salmenius Administrator
|
waeberd wrote: How can I change the language of the resource string blocks in Delphi? There is no way to change the resource language of string resource. Language is always neutral. The same applies to the form resources. However if you add custom resources (.rc) into Delphi you can specify the default language in the resource compiler options sheet. Choose Project | Options in Delphi. See screenshot. Here I have assigned English (United States) to default language. Jaakko Attachment: Untitled.png (Downloaded 34 times)
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
waeberd Member
|
Thanks a lot for clarifying things (and sorry for my noob questions...). You were right, Markus: in the (nice!) xn resource editor, my resourcestrings appear as "Language Neutral" (see Screenshot). _(at)_Jaakko: i don't find this project-option in Delphi 2006, but will check the brcc options or compiler directives. Cheers, Daniel Attachment: languageneutral.jpg (Downloaded 32 times)
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Jaakko.Salmenius Administrator
|
This option was added in Delphi 2009. Earlier do not have it. I read incorrectly that you use 2009 but it was 2006. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Markus.Kreisel Administrator
|
Hi Daniel, A sample would be really useful to identify whats happening. Please upload it as soon as you have it. Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
waeberd Member
|
Hi Markus, done! I've created a small project in D2006 where I can reproduce the "drc out of date" problem. 1) New Sisulizer project using the DES-exe (build 291) 2) Import FRA-exe => Warning "out of date". Funnily the language is detected correctly, but I guess this is not a serious problem anyway. Thanks, Daniel
|
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Janusz Grzybek Super Moderator
|
Hello Daniel,I've created a small project in D2006 where I can reproduce the "drc out of date" problem. Thank you for files. I tested it, but I didn’t get "DRC out of date" message. Funnily the language is detected correctly, but I guess this is not a serious problem anyway. It could be a problem. I found different items in your exe files have different language settings, e.g. your Version info has set "German (Switzerland)", RCDATA has neutral language (this is correctly for Delphi), Cursors has set "English (United States)", and for this reason Sisulizer detect language for first exe (DES) as "German (Switzerland)", while for second exe (FRA) as "English (United States)". Different original languages in project could be reason many issues in future, e.g. Sisulizer can't import translations from your translator to some parts (sources) of your project, because source languages don't match. However, Sisulizer allows on changing of original language in Sisulizer project. Open "Project" menu > "Edit source" > your source > "Encodings" tab > "Original language". Here you can see source language detected by Sisulizer, and optionally change it via dropdown menu. Next, you can repeats these steps for next your sources in project Best regards, Janusz Attachment: screen1.png (Downloaded 25 times)
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
Hi, I could see the message. It is a bit tricky to see :-) I asked our R&D for help. Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| Current time is 09:12 pm | Page: 1 2 |
| .NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Handling of DRC files | |
Sisulizer software localization tool - Three simple steps to localize