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
Problem parsing OpenVMS message files - 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: Fri Nov 7th, 2008 02:52 pm
PM Quote Reply
fx69
Member
 

Joined: Fri Nov 7th, 2008
Location:  
Posts: 2
Status: 
Offline
Hi,

I try to parse OpenVMS messages files into Sisulizer. These files are simple text files structured as below:
  • header lines, starting with '.' (dot)
 
  • Body lines with 3 possible cases:     1. ID "message"

        2. ID "message" ! message comment

        3. ! general comment
 
  • End line, starting with '.' (dot)
Then the rules are :

    1. Ignore lines starting with '.' or '!'.

    2. Assign ID to context.

    3. Assign "message" to message to be translated.

    4. Assign message comment to comment.

So, I have defined some rules from regular expressions (see screen capture) but I fail to parse the files. I get a warning (file data don't match the rules) and only one message is extracted.

For example, with this file:

.TITLE Libellés et titres EXAP

.IDENT 'VERSION 1.0'

.FACILITY EXAP2,67/PREFIX=EXAP2__

.SEVERITY INFORMATIONAL

.BASE 0000

0000_CONSDESPOSTESDEDIFF "cons. des postes de diffusion" ! "mode lecture"

! PSF_GSFP_EXAP_MODIF_POSTE_FRM P_ENTETE(x:22,y:2,l:36)

0001_MAJDESPOSTESDEDIFFU "maj des postes de diffusion" ! "mode mise à jour"

! PSF_GSFP_EXAP_MODIF_POSTE_FRM P_ENTETE(x:22,y:2,l:36)

0002_ARRETDEPARTDESPOSTE "arrêt/départ des postes de diff" ! "mode privilégié"

! PSF_GSFP_EXAP_MODIF_POSTE_FRM P_ENTETE(x:22,y:2,l:36)

.END

I only get this message:

0001_MAJDESPOSTESDEDIFFU maj des postes de diffusion

with no comment.

Please, can somebody help me?

Thanks, FX.

Attachment: SisulizerOpenVMSMessageFile.jpg (Downloaded 19 times)

Back To Top PM Quote Reply

 Posted: Fri Nov 7th, 2008 04:51 pm
PM Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 561
Status: 
Offline
Hello,

I tested your example and I've set up following settings:
- I've added header lines to ignored lines (in your case 5 lines) Options tab > Ignored lines in the beginning of file
- For comment lines starting with ! I added ! in Comments tab > Line
- For context items - Before item: nothing, After item: nothing
- For localize items - Before item: " character, After item: " character
- For comment items - Before item: ! " characters, After item: "rn|z
Below is result in Sisulizer translation sheet. Row comment column is by default disabled, but you could enable displaying this column in sheet columns dialog window (Sheet columns icon is indicated by red narrow).

Attachment: screen.png (Downloaded 20 times)



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

 Posted: Fri Nov 7th, 2008 04:54 pm
PM Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 561
Status: 
Offline
For your convenience I've attached to this post also sample text file with your text and Sisulizer project, so you could to see all above described text format settings in this sample project, if you select in project: Project menu > Edit source > OpenVMS.txt > Format tab.

Have a nice weekend,
janusz

Attachment: OpenVMS.zip (Downloaded 1 time)



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

 Posted: Mon Nov 10th, 2008 07:42 am
PM Quote Reply
fx69
Member
 

Joined: Fri Nov 7th, 2008
Location:  
Posts: 2
Status: 
Offline
Hello,

It works!

Thank you very much for your efficient help!

FX.

Back To Top PM Quote Reply

Current time is 02:00 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 > Problem parsing OpenVMS message files



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