HTML Parser - displaying extra information in the string list

Hi, 

I have a Passolo 2018 project which contains what I call HTML "big files". Passolo treats these big files as HTML files (using the standard HTML parser) but are in fact a concatenation of thousands of individual HTML files. 

This method has served me well over the many years I've been using it. 

Here's a sample:

<?xml version="1.0" encoding="UTF-8"?>
<FILES>
 <FILE name="P:/help/file1.htm">
  <html>
   <head>
    <title>Panoramica di cronologia saldi</title>
   </head>
   <body>
    <h1 class="ref">Panoramica di cronologia saldi</h1>
   </body>
  </html>
 </FILE>
 <FILE name="P:/help/file2.htm">
  <html>
   <head>
    <title>Modifica della visualizzazione di riepilogo conto</title>
   </head>
   <body>
    <h1 class="task">Modifica della visualizzazione di riepilogo conto</h1>
   </body>
  </html>
 </FILE>
</FILES>

I now have a requirement to be able to associate a specific translation with a specific file. E.g. "Modifica della visualizzazione di riepilogo conto" belongs to "P:/help/file2.htm"

Does anyone know of a method whereby the FILE name attribute value could be somehow displayed when the string list is opened for translation? 

Regards

Mark 

emoji
  • The file is not an HTML file, but XML. The HTML parser is not bothered by this, it simply reads the HTML elements into a long list and treats the file as a large HTML file. All non HTML elements will not be imported or considered and the result will look like:

    Screenshot showing the Resources panel with 'html' and 'Html.Document doc' selected, and a table listing 4 strings to translate with IDs 0 to 3.

    In order to achieve the desired differentiation of the elements according to the FILE element, the file must be read in as an XML file and the FILE element must be defined as a grouping. All HTML elements appearing in the HTML context must be defined explicitly as a rule. The individual texts can then be differentiated by file:

    Screenshot showing the Resources panel with 'html' and 'XML' expanded, displaying file1.htm and file2.htm. The All strings table lists 4 strings with Italian text to translate.

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 5:26 AM (GMT 1) on 16 May 2025]