Support forum of the software localization tool Sisulizer


Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... 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, Markus.Kreisel, Jaakko.Salmenius, 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) - Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ...
AuthorPost
 Posted: Thu Apr 19th, 2007 12:20 pm
PM 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 Quote Reply

 Posted: Thu Apr 19th, 2007 01:00 pm
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1487
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 Quote Reply

 Posted: Thu Apr 19th, 2007 02:19 pm
PM 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 Quote Reply

 Posted: Fri Apr 20th, 2007 12:41 am
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1487
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 Quote Reply

 Posted: Fri Apr 20th, 2007 11:55 am
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1487
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 Quote Reply

 Posted: Fri Apr 20th, 2007 11:59 am
PM 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 12:02 pm by TektonV2

Back To Top PM Quote Reply

 Posted: Fri Apr 20th, 2007 01:50 pm
PM 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 Quote Reply

 Posted: Sat Apr 21st, 2007 03:06 am
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1487
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 03:07 am by Jaakko.Salmenius



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

Current time is 10:45 am  
Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... > 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 1.11 Copyright © 2007 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Sisulizer software localization tool - Three simple steps to localize