Difference between revisions of "LRM html Support"
(→Example .html File) |
|||
Line 1: | Line 1: | ||
− | == Example . |
+ | == Example .html or .htm File or a file extension that uses the ''html'' parser type == |
<pre> |
<pre> |
||
+ | <html> |
||
− | <?xml version="1.0" encoding="UTF-8"?> |
||
+ | <p>This is some text in an html file</p> |
||
− | <properties> |
||
+ | </html> |
||
− | <!--SOURCE_FILE C:/Path/to/source/file/StringBug2.h--> |
||
− | <entry xml:space="preserve" key="STRI_MCAFEEC_15"><![CDATA[\\McAfee.com Personal Firewall]]></entry> |
||
− | <!--SOURCE_FILE C:/Path/to/source/file/StringBug3.cpp--> |
||
− | <entry xml:space="preserve" key="STRI_40FORAL_16"><![CDATA[%40 for all]]></entry> |
||
− | <entry xml:space="preserve" key="STRI_WRITELO_18"><![CDATA[Write Log Error]]></entry> |
||
− | <!--SOURCE_FILE C:/Path/to/source/file/weird.cpp--> |
||
− | <entry xml:space="preserve" key="WEIR_TWASTHE_20"><![CDATA['Twas the night before \"Christmas\"]]></entry> |
||
− | <entry xml:space="preserve" key="WEIR_ANDALLT_21"><![CDATA[and all through the house]]></entry> |
||
− | </properties> |
||
</pre> |
</pre> |
||
Revision as of 22:06, 31 August 2017
Example .html or .htm File or a file extension that uses the html parser type
<html> <p>This is some text in an html file</p> </html>
Example Project Definition File
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <lrmconf> <model-version>2.0.11</model-version> <project-name>DemoRxml</project-name> <project-desc>This is a sample LRM Project definition file, configured for Globalyzer Rxml resource files</project-desc> <group-name>acme</group-name> <top-level-dir>C:\acme\source</top-level-dir> <detect-errors> <missed-trans-error>1</missed-trans-error> <parameter-mismatch-error>1</parameter-mismatch-error> </detect-errors> <track-back-locale>br</track-back-locale> <pseudo-locale>eo</pseudo-locale> <target-locales> <locale>es_MX</locale> <locale>fr_CA</locale> <locale>fr_FR</locale> </target-locales> <default-locale>en_US</default-locale> <resource-extensions> <resource-extension> <!-- parser-type not needed since .rxml is a standard LRM extension that maps to the xml parser type --> <extension>rxml</extension> <file-name-pattern>*-l_c_v</file-name-pattern> <use-pattern-on-dflt-locale>0</use-pattern-on-dflt-locale> <file-location-pattern/> <use-location-pattern-on-dflt-locale>0</use-location-pattern-on-dflt-locale> <base-file-encoding>UTF-8</base-file-encoding> <localized-file-encoding>UTF-8</localized-file-encoding> <parameter-regex-pattern><![CDATA[%[ds]|%\d+\$[ds]|%\{\w+\}]]></parameter-regex-pattern> </resource-extension> <resource-extension> <!-- parser-type is required because .myext is not a standard LRM extension --> <extension>myext</extension> <!-- Once the project is created, the RxmlParser.xml, located in the samples/XmlParserExamples, needs to copied over the project's config folder and renamed xmlParser.xml --> <parser-type>xml</parser-type> <file-name-pattern>*-l_c_v</file-name-pattern> <use-pattern-on-dflt-locale>0</use-pattern-on-dflt-locale> <file-location-pattern/> <use-location-pattern-on-dflt-locale>0</use-location-pattern-on-dflt-locale> <base-file-encoding>UTF-8</base-file-encoding> <localized-file-encoding>UTF-8</localized-file-encoding> <parameter-regex-pattern><![CDATA[%[ds]|%\d+\$[ds]|%\{\w+\}]]></parameter-regex-pattern> </resource-extension> </resource-extensions> <dirset> <includes> <include-dir-file>**/**</include-dir-file> </includes> <excludes> <exclude-dir-file>**/source/bin/**</exclude-dir-file> </excludes> </dirset> </lrmconf>