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
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
AuthorPost
 Posted: Thu Apr 19th, 2007 10:20 am
PM Private Upload Quote Reply
TektonV2
Member
 

Joined: Thu Apr 19th, 2007
Location:  
Posts: 4
Status: 
Offline
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

Back To Top PM Private Upload Quote Reply

 Posted: Thu Apr 19th, 2007 11:00 am
PM Private Upload Quote Reply
Sisusupport
Administrator
 

Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 2261
Status: 
Offline
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
Back To Top PM Private Upload Quote Reply

 Posted: Thu Apr 19th, 2007 12:19 pm
PM Private Upload Quote Reply
TektonV2
Member
 

Joined: Thu Apr 19th, 2007
Location:  
Posts: 4
Status: 
Offline
Embedded now works; LangChange is still malfunctionating like described above, and so is my project too.

Back To Top PM Private Upload Quote Reply

 Posted: Thu Apr 19th, 2007 10:41 pm
PM Private Upload Quote Reply
Sisusupport
Administrator
 

Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 2261
Status: 
Offline
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
Back To Top PM Private Upload Quote Reply

 Posted: Fri Apr 20th, 2007 09:55 am
PM Private Upload Quote Reply
Sisusupport
Administrator
 

Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 2261
Status: 
Offline
1.1.27 is available

http://www.sisulizer.com/downloads.shtml

Jaakko



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

 Posted: Fri Apr 20th, 2007 09:59 am
PM Private Upload Quote Reply
TektonV2
Member
 

Joined: Thu Apr 19th, 2007
Location:  
Posts: 4
Status: 
Offline
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 10:02 am by TektonV2

Back To Top PM Private Upload Quote Reply

 Posted: Fri Apr 20th, 2007 11:50 am
PM Private Upload Quote Reply
TektonV2
Member
 

Joined: Thu Apr 19th, 2007
Location:  
Posts: 4
Status: 
Offline
Works great, thanks for the fast support. :)

The answer to the question above would be still interesting.

Back To Top PM Private Upload Quote Reply

 Posted: Sat Apr 21st, 2007 01:06 am
PM Private Upload Quote Reply
Sisusupport
Administrator
 

Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 2261
Status: 
Offline
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 01:07 am by Sisusupport



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

Current time is 07:11 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



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