|
|||
|
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Bugs and Quirks in Sisulizer > Toolbars (RT_TOOLBAR) are not translated.
|
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
||||||||||||||||
| Toolbars (RT_TOOLBAR) are not translated. - Bugs and Quirks in Sisulizer - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support | |||||||||||||||||
| Author | Post | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||
|
danliu Member
|
I have a VC++ MFC project, and after being translated by Sisulizer, I found only English in the output DLL for Toolbar (RT_TOOLBAR). The other types of resources (such as RT_DIALOG) are translated fine. Please let me know how to fix it. The attached is what I see when I click on one of the Toolbars. Attachment: Toolbar.bmp (Downloaded 29 times)
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
Hi, can you please check under Project -> Edit Source -> <Your Source Name> -> Resources if the resource type RT_TOOLBAR is listed and selected. Best Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
danliu Member
|
Yes, it is listed and selected.
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
Can you please send your DLL and the .slp (Sisulizer project) to support (at) sisulizer.fi (not .com). We try to reproduce it here. Best Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
danliu Member
|
Thanks Markus! I just sent the files over. Please let me know if you need more info. Regards, Dan
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Ilkka.Salmenius Administrator
|
A toolbar resource is stored into two places: 1. In toolbar resource (RT_TOOLBAR) Here is just the dimension of bitmaps, counts and IDs. There are no need to localize them. 2. In bitmap resource (RT_BITMAP) The actual bitmap resource is stored here with the same ID as in the toolbar resource. For example you have toolbar id 128. The bitmap of that toolbar can be found as bitmap id 128. If you like to localize the toolbar 128 you have to localize bitmap 128. regards Ilkka
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Ilkka.Salmenius Administrator
|
1. Include bitmap resources Attachment: Toolbar1.PNG (Downloaded 22 times)
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Ilkka.Salmenius Administrator
|
2. Include binary data types Attachment: Toolbar2.PNG (Downloaded 22 times)
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Ilkka.Salmenius Administrator
|
Now you can localize toolbar bitmaps.
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
danliu Member
|
Thank you very much! Now the toolbars are translated by unchecking Binary Data from Excluded Types in my project. However, my original problem still exists - the tooltips on the toolbar buttons are still in English. The tooltip texts are "Prompt" in toolbar button's perperty page (see the attached image). The string identified by ID_LABEL_ELLIPSE_CENTER (32876) is translated in Japanese (string section). Does that mean Sisulizer won't put this translated "prompt" into tranlsated toolbar resource? If true, how can I get these tooltips translated? Regards, Dan Attachment: Toolbar_button.bmp (Downloaded 21 times)
|
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Markus.Kreisel Administrator
|
Hi, the binary datas seem not to contain strings. But I found Centered ellipse\nCentered ellipse and others around node 2055 in the strings sections. I'm not a C++ developer but I would think Visual Studio placed the tooltip strings into the string resources like it placed the matching bitmaps into the bitmaps section. Best Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Ilkka.Salmenius Administrator
|
Those tooltips are stored into string resources (RT_STRING). For example toolbar 246. It's first button has id 33006. The corresponding string is stored as resourcestring id 33006. I will implement a visual editor for toolbars that shows the ids and help user to locate the right strings and bitmaps.
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
danliu Member
|
Markus and Ilkka, Thank you very much for the useful information! Now my problem is solved! I overrode CMFCToolBar::OnToolHitTest() function, where I loaded the tooltips based on the languages. Regards, Dan
|
||||||||||||||||
| |||||||||||||||||
| Current time is 10:28 pm | |
| .NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Bugs and Quirks in Sisulizer > Toolbars (RT_TOOLBAR) are not translated. | |
Sisulizer software localization tool - Three simple steps to localize