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
Translation hints for Sisulizer Project in Delphi Source - 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: Tue Aug 1st, 2017 08:10 am
PM Private Upload Quote Reply
thbeckmann
Member


Joined: Thu May 28th, 2015
Location:  
Posts: 71
Status: 
Offline
We are discussing how to point out translation issues for our localisation team. Developement is done with Object Pascal/Delphi/VCL in a distributed setting.

Is there a "best pratice" guide or do you know about any inline comment tools or something else to point out translation issues to Sisulizer?

Thanks for any hints on this

Back To Top PM Private Upload Quote Reply

 Posted: Tue Aug 1st, 2017 08:33 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 3014
Status: 
Offline
Sisulizer recognizes tags in source code:

https://www.sisulizer.com/online-help/Tagging.shtml

But these tags are not compiled into the binaries. So if you do binary localization (the recommended way) the link is broken

Markus



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

 Posted: Wed Aug 2nd, 2017 01:42 pm
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1977
Status: 
Offline
Hi,

Sisulizer has built-in feature to read comments from Delphi/Pascal source code.

1) Add the comments and mark them with slz. For example

procedure TForm1.FormCreate(Sender: TObject);
resourcestring
SPlainString = 'This is a sample'; //slz This is a comment
SPatternString = 'Hello %s'; //slz %s: Name of the user
SInfoString = 'Attribute sample'; //slz MaxChars=20 The result is a comment
begin
Label1.Caption := SPlainString;
Label2.Caption := Format(SPatternString, ['John']);
Label3.Caption := SInfoString;
end;

2) Turn comment scanning on. From Delphi source's properties dialog choose Prohect sheet and check Scan source code to find resource strings. See the screenshot.

Next time Sisulizer scans it also scans the source code to find the comments.

Ilkka

Attachment: Untitled.png (Downloaded 14 times)



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

 Posted: Wed Aug 2nd, 2017 06:23 pm
PM Private Upload Quote Reply
thbeckmann
Member


Joined: Thu May 28th, 2015
Location:  
Posts: 71
Status: 
Offline
Thank you, Ilkka, I'm going to present this within the dev team - lets see how we are getting a grip on it!

Thanks again, Thomas

Back To Top PM Private Upload Quote Reply

 Posted: Tue Aug 8th, 2017 12:26 pm
PM Private Upload Quote Reply
thbeckmann
Member


Joined: Thu May 28th, 2015
Location:  
Posts: 71
Status: 
Offline
Is there a chance to get objects in dfm file commented? For example, we've an element that is invisible and does not need to (or even may not) go through translation. The comment could be made at the declaration of the object...

Last edited on Tue Aug 8th, 2017 12:28 pm by thbeckmann

Back To Top PM Private Upload Quote Reply

 Posted: Wed Aug 9th, 2017 04:21 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1977
Status: 
Offline
Unfortunately not. DFM format does not have a comment field. However you can add a comment to any row in Sisulizer or to any translation.

Ilkka



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

 Posted: Thu Aug 10th, 2017 10:25 am
PM Private Upload Quote Reply
thbeckmann
Member


Joined: Thu May 28th, 2015
Location:  
Posts: 71
Status: 
Offline
Thank you!
We are making usage of row comments quite a bit - but the dev team is growing, and it would have been nice, if every developper could add comments on his or her own just inside the code. Therefore the suggestion: If comments occur in the declaration of an object, it would be cool to have them show up at the row with that context...

Back To Top PM Private Upload Quote Reply

 Posted: Fri Aug 11th, 2017 09:25 pm
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1977
Status: 
Offline
OK. I got you. How do you comment components. Is it something like this.

type
TForm1 = class(TForm)
Label1: TLabel; //slz This is a comment
Label2: TLabel;
Label3: TLabel;
Button1: TButton;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;


Ilkka



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

 Posted: Sat Aug 12th, 2017 05:44 am
PM Private Upload Quote Reply
thbeckmann
Member


Joined: Thu May 28th, 2015
Location:  
Posts: 71
Status: 
Offline
That's what I want - I should have tried prior to asking... :-) Thank you!

Back To Top PM Private Upload Quote Reply

 Posted: Sun Aug 13th, 2017 12:32 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1977
Status: 
Offline
This feature does not yet exist. I added it to TODO list.

Ilkka



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

Current time is 10:37 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 > Translation hints for Sisulizer Project in Delphi Source



WowUltra modified by Sisulizer Copyright © 2007-09 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Sisulizer software localization tool - Three simple steps to localize