|
|||
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Bugs and Quirks in Sisulizer > Program doesn't go back to original language
|
Moderated by: Sisusupport, Renate.Reinartz, Markus.Kreisel, Ilkka.Salmenius |
|
Program doesn't go back to original language - 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 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||
TektonV2 Member
![]() |
Hello, I use Sisulizer 1.1.26 Trial under Delphi from Borland Developer Studio 2006. The problem occurs with various projects; for example one of the sample projects: LangChange The .exe builts without any problems, Sisu itself doesn't report any errors too. It switches to Deutsch and suomi - but when it comes to changing back to the original language english, it simply changes to Deutsch. Same goes for other samples, the Embedded-project for instance. When I try Sisu 1.1.9, the samples work for me. Best regards, Tek
|
||||||||||||||||
|
| |||||||||||||||||
Sisusupport Administrator
![]() |
There was a bug in <sldir>\VCL\LaResource.pas. I fixed it and the next build will have a fix. You can make the same changes in your file. Repalce the current SetNewResourceFile with this. function SetNewResourceFile( locale: Integer; updateThreadLocale: Boolean; updateLocaleVariables: Boolean): Boolean; function GetCode: String; begin if locale = 0 then Result := '' else Result := LocaleToExtension(locale); end; begin Result := SetNewResourceFile( GetCode, updateThreadLocale, updateLocaleVariables); end; Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
|
|
|||||||||||||||||
TektonV2 Member
![]() |
Embedded now works; LangChange is still malfunctionating like described above, and so is my project too.
|
||||||||||||||||
|
| |||||||||||||||||
Sisusupport Administrator
![]() |
I am sorry. I forgot to check the other issue. I fixed it. A new build will be available today. I let you know when to download it. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
|
|
|||||||||||||||||
Sisusupport Administrator
![]() |
1.1.27 is available http://www.sisulizer.com/downloads.shtml Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
|
| |||||||||||||||||
TektonV2 Member
![]() |
I'm looking forward to it, hope it is available in the next hours. (My last day for about month here and I would like to finish this.) By the way, is there a way to prevent the Forms form being repositionated in the upper left corner of the screen? At the moment, I save the position and set it back afterwards, but this looks rather disturbing. [edit: Well, that's timing. I will try it in a moment.] Last edited on Fri Apr 20th, 2007 11:02 am by TektonV2 |
||||||||||||||||
|
|
|||||||||||||||||
TektonV2 Member
![]() |
Works great, thanks for the fast support. ![]() The answer to the question above would be still interesting.
|
||||||||||||||||
|
| |||||||||||||||||
Sisusupport Administrator
![]() |
When Sisulizer changes the language it reload the form data from resource file. If the TFrom.Position property is set to poDefault or poDefaultPosition VCL will reposition the form after new resource has been loaded. If implemented a new feature to 1.1.28 that will keep the existing positons of the forms. You do not have to wait until 28 is out but just replace your LaResource.pas with the attached one. A good practice is to pass the main from SelectResourceLocale as fourth parameter. This will hide the form during language change and will eliminate some flickering. procedure TForm1.Button1Click(Sender: TObject); begin SelectResourceLocale(LANG_ENGLISH, [rloCompatible], poMainFormCenter, Self); end; If you call SetNewResourceFile directory just hide form before call and show it after mainForm.Hide; SetNewResourceFile(locale); mainForm.Show; Jaakko Attachment: LaResource.zip (Downloaded 1 time) Last edited on Sat Apr 21st, 2007 02:07 am by Sisusupport ____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
|
Current time is 01:50 am | |
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Bugs and Quirks in Sisulizer > Program doesn't go back to original language |
Sisulizer software localization tool - Three simple steps to localize