|
|||
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
|||||||||||||
| 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 ... | ||||||||||||||
| Author | Post | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
|
Trinok Member
|
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 |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Trinok Member
|
Also $ symbol does not work in "After item:"
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Markus.Kreisel Administrator
|
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 |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Markus.Kreisel Administrator
|
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 |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Trinok Member
|
Thanks Markus! I understand you! But help me again please. For example I have 2 strings in my file:
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:
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.
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Trinok Member
|
Markus.Kreisel wrote: Hi, 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 |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Markus.Kreisel Administrator
|
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 |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Trinok Member
|
Thanks a lot!
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Jaakko.Salmenius Administrator
|
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 |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Trinok Member
|
Hi Jaakko! Thank you very much! This sounds like a nice sollution!
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Trinok Member
|
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:
My question to you: This is normal or not?
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Jaakko.Salmenius Administrator
|
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 |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Trinok Member
|
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 |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Jaakko.Salmenius Administrator
|
Hi The reason for the warning is that your rule does not contain possibility for white spaces after the item (e.g Jaakko Attachment: Untitled.png (Downloaded 12 times)
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Trinok Member
|
Hi Jaakko, Thanks for the sollution. I test it ASAP and inform you about my result.
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Trinok Member
|
Hi Jaakko, I tested it. All works perfect. Thank again for a quick and perfect support!
|
|||||||||||||
| ||||||||||||||
| 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 | |
Sisulizer software localization tool - Three simple steps to localize