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
Regular expression in text parser - 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: Tue Apr 29th, 2008 11:12 am
PM Quote Reply
Trinok
Member


Joined: Wed Mar 26th, 2008
Location: Mosow, Russia
Posts: 30
Status: 
Offline
Hi support!

I have founded another problemm.

In text parser does not work ^ and A in "Before item:" condition.

Please see attach and let me know if it is my mistake.


I use SL version 1.6.25

Attachment: New Folder.zip (Downloaded 5 times)

Last edited on Tue Apr 29th, 2008 11:12 am by Trinok

Back To Top PM Quote Reply

 Posted: Tue Apr 29th, 2008 11:31 am
PM Quote Reply
Trinok
Member


Joined: Wed Mar 26th, 2008
Location: Mosow, Russia
Posts: 30
Status: 
Offline
Also $ symbol does not work in "After item:"

Back To Top PM Quote Reply

 Posted: Tue Apr 29th, 2008 11:34 am
PM Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Bedburg, Germany
Posts: 832
Status: 
Offline
Hi,

you used only "^", nothing else, in the before item expression. Something needs to follow that so the routine knows what to search at the beginning of the string, e.g ^A = String beginning with capital A.

The regular expressions can be quiet tricky. Perhaps you try some editor like: http://waterproof.fr/products/RegExpEditor/ - which is free to download and use.

Best

Markus



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

 Posted: Tue Apr 29th, 2008 11:36 am
PM Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Bedburg, Germany
Posts: 832
Status: 
Offline
Have you combined the $ with something?

Each of the items (before, after, element) must contain a complete and valid regular expression of its own.

Best

Markus



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

 Posted: Tue Apr 29th, 2008 11:54 am
PM Quote Reply
Trinok
Member


Joined: Wed Mar 26th, 2008
Location: Mosow, Russia
Posts: 30
Status: 
Offline
Thanks Markus!
I understand you! But help me again please.
For example I have 2 strings in my file:

//----------------------------------------------------------------------------

NIKEditProjectMenu.Title      = "String1" ;


After parse I want to obtain as results:

Context -> NIKEditProjectMenu.Title
Original -> String1

also all string with // symbols at beginning must be ignored.
What setting I can use in text parser?


I tried to use following:
[^A-Z,a-z]*Context[]*=
"localize"
;Ignore


This settings works perfect if my file does not contain "//" strings at all
But I do not find any solution fo file, which I attached to the first post.




Back To Top PM Quote Reply

 Posted: Tue Apr 29th, 2008 11:59 am
PM Quote Reply
Trinok
Member


Joined: Wed Mar 26th, 2008
Location: Mosow, Russia
Posts: 30
Status: 
Offline
Markus.Kreisel wrote: Hi,

you used only "^", nothing else, in the before item expression. Something needs to follow that so the routine knows what to search at the beginning of the string, e.g ^A = String beginning with capital A.

The regular expressions can be quiet tricky. Perhaps you try some editor like: http://waterproof.fr/products/RegExpEditor/ - which is free to download and use.

Best

Markus


I can't use ^ with something else. Becouse If I use, for example, ^[A-Z] for the string NIKEditProjectMenu.Title      = "String1" ; I obtain IKEditProjectMenu.Title.
I.e. without first symbol :-(

Last edited on Tue Apr 29th, 2008 12:00 pm by Trinok

Back To Top PM Quote Reply

 Posted: Tue Apr 29th, 2008 12:49 pm
PM Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Bedburg, Germany
Posts: 832
Status: 
Offline
In the moment Sisulizer combines your six comment lines with the first context. I have not found a way to avoid that and asked the developers for assistance.

Best

Markus



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

 Posted: Tue Apr 29th, 2008 01:04 pm
PM Quote Reply
Trinok
Member


Joined: Wed Mar 26th, 2008
Location: Mosow, Russia
Posts: 30
Status: 
Offline
Thanks a lot!

Back To Top PM Quote Reply

 Posted: Wed Apr 30th, 2008 02:28 am
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1641
Status: 
Offline
I implemented comment to text file definitions. Now you can give single line comment string. Sisulizer irgnore all data from comment string to the next line begining.

The new features is in 1.6.26 that will come out soon.

I have attached a screenshot showing how to edit comment and how to change your rule to make it working after you have downloaded 1.6.26

Jaakko

Attachment: untitled.PNG (Downloaded 29 times)



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

 Posted: Wed Apr 30th, 2008 03:30 am
PM Quote Reply
Trinok
Member


Joined: Wed Mar 26th, 2008
Location: Mosow, Russia
Posts: 30
Status: 
Offline
Hi Jaakko!

Thank you very much!
This sounds like a nice sollution!

Back To Top PM Quote Reply

 Posted: Thu May 1st, 2008 07:17 pm
PM Quote Reply
Trinok
Member


Joined: Wed Mar 26th, 2008
Location: Mosow, Russia
Posts: 30
Status: 
Offline
Hi Jaakko!

I have tried new version SL with this project and settings like on the screen above.

When I press F5 button I receive one warning:

11:12:15 PM        Scanning file "C:\Documents and Settings\Administrator\Desktop\New Folder\NIKAniCfg.CATNls"
11:12:15 PM        Warning    Data in file does not match rules
11:12:15 PM        Warnings: 1
11:12:15 PM        Elapsed time 0 ms


My question to you: This is normal or not?

Back To Top PM Quote Reply

 Posted: Thu May 1st, 2008 11:25 pm
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1641
Status: 
Offline
There was one bug that caused this. Fortunately it is not fatal in your file. It just writes this message. Anyay in some other file the bug might break scanning. It has been fixed in 1.6.27

Jaakko



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

 Posted: Sun May 4th, 2008 03:06 am
PM Quote Reply
Trinok
Member


Joined: Wed Mar 26th, 2008
Location: Mosow, Russia
Posts: 30
Status: 
Offline
Hi Jaakko!

I tested this problem on version 1.6.27.
All seems to be working! But only one small problem.
If my file contain one or more empty string at the end of the file I receive this warning. I attached sample file. Please see it  and let me know if you need more information.
Thank you very much.

Attachment: New Folder.zip (Downloaded 2 times)

Last edited on Sun May 4th, 2008 03:07 am by Trinok

Back To Top PM Quote Reply

 Posted: Tue May 6th, 2008 02:07 pm
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1641
Status: 
Offline
Hi

The reason for the warning is that your rule does not contain possibility for white spaces after the item (e.g ;). See the attached image that contains modified rule that allows white spaces after item.

Jaakko

Attachment: Untitled.png (Downloaded 12 times)



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

 Posted: Tue May 6th, 2008 03:08 pm
PM Quote Reply
Trinok
Member


Joined: Wed Mar 26th, 2008
Location: Mosow, Russia
Posts: 30
Status: 
Offline
Hi Jaakko,

Thanks for the sollution. I test it ASAP and inform you about my result.

Back To Top PM Quote Reply

 Posted: Wed May 7th, 2008 04:33 am
PM Quote Reply
Trinok
Member


Joined: Wed Mar 26th, 2008
Location: Mosow, Russia
Posts: 30
Status: 
Offline
Hi Jaakko,

I tested it. All works perfect.
Thank again for a quick and perfect support!

Back To Top PM Quote Reply

Current time is 04:48 pm  
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 > Regular expression in text parser



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