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 Page:  First Page Previous Page  1  2   
New Topic Reply Printer Friendly
Exclude translation of TLabel component with name lblNotTranslate - Usage - Three simple steps to localize - 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: Tue Apr 29th, 2008 06:51 am
PM Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Espoo, Finland
Posts: 455
Status: 
Offline
starvisitor wrote: procedure BeforeTranslate(host: TComponent; obj: TObject; propertyInfo: PPropInfo; const currentValue: Variant; var newValue: Variant; var cancel: Boolean);
begin
cancel := obj = Form1.lblRegistrationCap;
cancel := obj = Form1.cboJComp;
cancel := obj = Form1.cboRes;
end;

This should work.

procedure BeforeTranslate(
  host: TComponent;
  obj: TObject;
  propertyInfo: PPropInfo;
  const currentValue: Variant;
  var newValue: Variant;
  var cancel: Boolean);
begin
  cancel := (obj = Form1.lblRegistrationCap) or
    (obj = Form1.cboJComp) or
    (obj = Form1.cboRes);
end;

 


 



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

 Posted: Tue Apr 29th, 2008 08:29 am
PM Quote Reply
starvisitor
Member
 

Joined: Mon Apr 28th, 2008
Location:  
Posts: 14
Status: 
Offline
Nice, it works. But now I have another effect. My exe creates a Systemtray Menu. Therefore inside the FormCreate Event I use this code:

with TrayIconData do
begin
cbSize := SizeOf(TrayIconData);
Wnd := Handle;
uID := 0;
uFlags := NIF_MESSAGE + NIF_ICON + NIF_TIP;
uCallbackMessage := WM_ICONTRAY;
hIcon := Application.Icon.Handle;
StrPCopy(szTip, Application.Title);
end;

Now, if I switch the language over the Popup-Menu entry, the Form1 bounce on the left side of my screen, then centers on Screen and then my systemtray menu disappeared.

What is the problem, now?

Thanks for help!!

Back To Top PM Quote Reply

 Posted: Tue Apr 29th, 2008 08:40 am
PM Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Espoo, Finland
Posts: 455
Status: 
Offline
Try this

procedure BeforeTranslate(
  host: TComponent;
  obj: TObject;
  propertyInfo: PPropInfo;
  const currentValue: Variant;
  var newValue: Variant;
  var cancel: Boolean);
begin
  cancel := (obj = Form1.lblRegistrationCap) or
    (obj = Form1.cboJComp) or
    (obj = Form1.cboRes) or

    ((obj = Form1) and (propertyInfo.Name = 'Position'));
end;





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

 Posted: Tue Apr 29th, 2008 08:48 am
PM Quote Reply
starvisitor
Member
 

Joined: Mon Apr 28th, 2008
Location:  
Posts: 14
Status: 
Offline
I put only "or (obj = Form1)" at my code. Now everything is fine and pretty ;-))

I'm so happy now. To choose sisulizer was the correct arbitration for me. Your support is brilliant!

Many thanks!!!

Back To Top PM Quote Reply

Current time is 04:25 am Page:  First Page Previous Page  1  2     
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) > Usage - Three simple steps to localize > Exclude translation of TLabel component with name lblNotTranslate



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