|
|||
|
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
|
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
|||||||||||||
| 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 ... | ||||||||||||||
| Author | Post | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
|
fx69 Member
|
Hi, I try to parse OpenVMS messages files into Sisulizer. These files are simple text files structured as below:
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)
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Janusz Grzybek Super Moderator
|
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 |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Janusz Grzybek Super Moderator
|
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 |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
fx69 Member
|
Hello, It works! Thank you very much for your efficient help! FX.
|
|||||||||||||
| ||||||||||||||
| 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 | |
Sisulizer software localization tool - Three simple steps to localize