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: Renate.Reinartz
New Topic Reply Printer Friendly
Runtime change language in high DPI Delphi program - 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: Mon Jan 11th, 2021 11:56 am
PM Private Upload Quote Reply
laurens
Member
 

Joined: Mon Jan 11th, 2021
Location:  
Posts: 3
Status: 
Offline
I have a problem with Sisulizer in a DPI-aware Delphi application. The application works perfect in high DPI, also along multiple monitors with multiple DPI settings.

The problem arrises if the user changes the language (resource) runtime with one or multiple forms shown. We do this using SetNewResourceFile in LaResource.pas. This loads the new resource file and will overwrite all properties of all components. This changes also the left, right, top, bottom, width, height, etc. of the components and thereby change the scaling of all forms and components. So, a form that is scaled 200% is 'reset' to 96ppi after this action. This behavior is not desirable.

Does anybody have a suggestion how to solve this?

Back To Top PM Private Upload Quote Reply

 Posted: Mon Jan 11th, 2021 05:11 pm
PM Private Upload Quote Reply
jaska
Guest
 

Joined: 
Location:  
Posts: 
Status: 
Offline
Make TLaTranslator only translate string properties. Add this to the initialization of you main unit.

initialization
LaEnabledProperties := STRING_TYPES_C;
end.

Last edited on Mon Jan 11th, 2021 05:12 pm by

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jan 12th, 2021 11:31 am
PM Private Upload Quote Reply
laurens
Member
 

Joined: Mon Jan 11th, 2021
Location:  
Posts: 3
Status: 
Offline
Thanks! This solved my issue for now.

However, I think it is still a bug (or missing feature ;-)) in Sisulizer. If you want to have -for example- labels with different width for each language, it does not work correctly. Although this is not a problem for us now,
it can be for other users.

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jan 12th, 2021 06:52 pm
PM Private Upload Quote Reply
jaska
Guest
 

Joined: 
Location:  
Posts: 
Status: 
Offline
You are right. It is a bug or at least a missing feature.

Back To Top PM Private Upload Quote Reply

Current time is 05:22 pm  
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Runtime change language in high DPI Delphi program



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