|
|||
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
|||||||||||||
| Binary translation and MFC resources - Usage - Three simple steps to localize - Technical Support (You need to be registered at the forum to write) - Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... | ||||||||||||||
| Author | Post | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
|
JimBeveridge Member
|
I created a project based on an MFC application built with VC2005. It imports fine, but all of the String IDs come across as just numbers because of the way MFC handles resources. I can alternatively based the project on an RC file, in which case all of the String IDs come across symbolically (such as IDS_MY_FAVORITE_STRING.) However, all of the documentation seems to indicate that binary translation is preferred. Is there any way to attach the MFC resource.h file so I can show the String IDs in symbolic form instead of as integers? (Actually, I need to attach multiple resource.h files to get all of the IDs.) Thank you.
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Ilkka.Siikanen Administrator
|
I am sorry, but there is no way to link IDs with resource.h names in Sisulizer just now. In the binary scanning Sisulizer digs all necessary data from a binary file (EXE or DLL). In stringtable resources only IDs and strings can be found. If you like to handle strings with names you should use RC-localization. But I prefer binary localization: - it is faster - it is simplier - less changes for mistakes You'll get used to handle strings with IDs very quickly. In the end at the translation process there is not so important whatever the contexts are numeric or strings. Some difficulties may be lo locate the context in the program by just IDs. best regards Ilkka Last edited on Fri May 25th, 2007 09:32 pm by Ilkka.Siikanen ____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
JimBeveridge Member
|
Thank you for the quick response. I'm now creating a project based on my EXE, but I can't get Sisulizer to find non-English resources in the EXE. I've opened the EXE in Visual Studio to verify that the German and French translations are actually there, but Sisulizer doesn't recognize them when the project is created and I can't import them. When I choose File / Import and select my EXE, I'm asked to "Select the language column where you want to import the data." However, I am not asked which language resource should be the source and it always imports from the English resources. Any ideas? I'm running 1.5.5
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Ilkka.Siikanen Administrator
|
Could you send you EXE file to us, please support (at) sisulizer.fi I will take a look of it regards Ilkka
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Jaakko.Salmenius Administrator
|
Thank you for the files. Your EXE files are multilingual. They contains three languages. Currently Sisulizer only scans the resources of the original language (the one your select when you create the project). The other languages are just ignored. However it is easy to implement a feature that will scan just like now but after scanning it imports data from the other language resources. I have started implementing this and it will be in the next build early next week. Jaakko Last edited on Sat May 26th, 2007 01:49 am by Jaakko.Salmenius ____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
JimBeveridge Member
|
Thank you Jaako, I also have a related problem that I mentioned in my email to support. I'm trying to create a multilingual EXE (just like the EXEs I sent you) but it doesn't work. I tried in both my project and the VCPP sample. I went to the Properties for the "Converter" project, checked "Multilingual file" and did a rebuild. However, the EXE that's placed in the "all" directory only contains the last language that was built. Also, Ilkka had said that Sisulizer doesn't support reading MFC "resource.h" files to assign symbolic names to the numeric resource IDs. I'd like to make that a feature request.
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Jaakko.Salmenius Administrator
|
There was a bug. Sisulizer kept only last language in the EXE. I fixed it in 1.5.7. I understand you need for symbolic resource names. In most cases they are much more describing as numberic ids (that does not tell anything for translator) We have a similar feature in Delphi binary localization where the uses selects the EXE and corrseponding DRC file (that contains symbolic resource names). We can implement the same for Visual C++. The only problem is that there might be several .h files that the .rc files of the application use but we can add a feature that the user can add any number or .h files. Can you send me one sample .h file that you use to support (at) sisulizer.fi Thank you for good input! Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Jaakko.Salmenius Administrator
|
Hi Jim, We implemented the following new features to 1.5.7:
Regards, Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
JimBeveridge Member
|
Jaako, I purchased Sisulizer Enterprise yesterday. Thank you for your help! By the way, why don't you support importing translations from RC files when the original source is an EXE file? Jim Beveridge
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Jaakko.Salmenius Administrator
|
We could not do that because RC used different context (symbolic) than EXE (ids). Now when we have resource.h mapping we can implement importing form RC. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| Current time is 12:14 am | |
| Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Binary translation and MFC resources | |
Sisulizer software localization tool - Three simple steps to localize