Support forum of the software localization tool Sisulizer


.NET, Delphi, ... - Sisulizer Localization Tool Support Home

Get in contact with the makers of Sisulizer.
Our forum is open for all questions around Sisulizer from customers and prospects.
Don't hesitate to register and ask. The Sisulizer team will answer ASAP.

Search     Help Home Sisulizer Website Download
Search by username
Not logged in - Login | Register 

 Moderated by: Sisusupport, Renate.Reinartz, Markus.Kreisel, Ilkka.Salmenius
New Topic Reply Printer Friendly
Problem with ComboBox translating - Usage - Three simple steps to localize - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support
AuthorPost
 Posted: Tue Sep 3rd, 2019 07:08 am
PM Private Upload Quote Reply
Kamil.Huzar
Member
 

Joined: Tue Jun 11th, 2019
Location:  
Posts: 6
Status: 
Offline
Hi!

I have a problem with translating combobox, when I want to change language form polish to english by button click (function SetNewResourceFile(p_Language, [], cProgramLanguage);) everything is translated but only this combobox stay in original language, but when I restart program and run in english languge this combobox is correctly translated.

Attachment: 1.png (Downloaded 11 times)

Back To Top PM Private Upload Quote Reply

 Posted: Tue Sep 3rd, 2019 07:24 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 3281
Status: 
Offline
Sounds like your combo box is not fetched by the Sisulizer class. (Has it a custom class name?) Please check the classes coming with Sisulizer and look where they loop through all controls at runtime. Change it to add your combo class name.

I`m not a Delphi developer myself so I can`t give you sample code.

Hope it helps anyway

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Sep 4th, 2019 11:39 am
PM Private Upload Quote Reply
Kamil.Huzar
Member
 

Joined: Tue Jun 11th, 2019
Location:  
Posts: 6
Status: 
Offline
Hi!

I have normal, default combobox (TComboBox)class and I have this problem. Items in this combo can't be translate.
What can I do? Sisulizer doesn't support default ComboBox?

Back To Top PM Private Upload Quote Reply

 Posted: Wed Sep 4th, 2019 11:53 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 3281
Status: 
Offline
Don`t understand. You said if you start the app the translation of the combo is fine. Now you say translating the combo doesn`t work at all.

Please clarify

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Sep 4th, 2019 12:04 pm
PM Private Upload Quote Reply
Kamil.Huzar
Member
 

Joined: Tue Jun 11th, 2019
Location:  
Posts: 6
Status: 
Offline
The transtaling works only when I change the language and restart the program but when I just click the button to change the language everything will be translated except this combobox.

( I have done the program where I can change the language by button click (function SetNewResourceFile) and the language is save to registry so when I open the program again program know what is the correct language to set. )

Back To Top PM Private Upload Quote Reply

 Posted: Wed Sep 4th, 2019 12:45 pm
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 3281
Status: 
Offline
Somehow your combo box is not handled by the Sisulizer class replacing text at runtime. This can have many reasons.

Please check the classes coming with Sisulizer and look where they loop through all controls at runtime. Change the source code so it also fetches your combo. If you are not the developer please ask the developer for help.

The runtime language change is not a part of VCLs logic. VCL only handles translations at startup. Sisulizer provides classes to replace strings after tze code is loaded in memory. It loops through all controls and replaces text in all known controls having text. Off course standard combo boxes are known controls. But yours seems to have something special making it unknown. You need to manually add it. If you do you might find out what makes it special.

Hope it helps

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Thu Sep 5th, 2019 09:00 am
PM Private Upload Quote Reply
Kamil.Huzar
Member
 

Joined: Tue Jun 11th, 2019
Location:  
Posts: 6
Status: 
Offline
Hi!

I found problem which is connected with my combobox problem.

I have an array for example:

ArrayName: array [1] of string = (rs_1, rs_2);

and after change the language by button click (without restart application) in the array are not translated strings but rs_1 and rs_2 are translated correctly.
I think this is a problem that the array has pointers to old rs_1 and rs_2.

What do you whink? What should I do with that?

Thanks for answer.

Back To Top PM Private Upload Quote Reply

 Posted: Thu Sep 5th, 2019 10:07 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 3281
Status: 
Offline
I was pretty sure it was some custom handling like that. Simply change our classes coming in source code and add a handling for this situation. Perhaps a good idea to inherit our classes.

That will do the trick.

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

Current time is 11:06 am  
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Problem with ComboBox translating



WowUltra modified by Sisulizer Copyright © 2007-18 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Impress - Privacy statement

Sisulizer software localization tool - Three simple steps to localize