Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20199

ezlupdate generates invalid xml for template files

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Customer request
    • 4.7.0
    • Language
    • None
    • Linux
      Qt 4.7.4

    Description

      The following is a generated untranslated file generated by ezlupdate from the extension https://github.com/xrowgmbh/xrowformgenerator

      <context>
      <name>xrowformgenerator/mail</name>
      <message>
      <location filename="xrowformgeneratortype.php" line="850"/>
      <source>No.:</source>
      <translation type="unfinished"></translation>
      </message>
      <message>
      <location filename="xrowformgeneratortype.php" line="851"/>
      <source>Date</source>
      <translation type="unfinished"></translation>
      </message>
      <message>
      <location filename="xrowformgeneratortype.php" line="910"/>
      <location line="0"/>
      <source>Yes</source>
      <translation type="unfinished"></translation>
      </message>
      <message>
      <location filename="xrowformgeneratortype.php" line="914"/>
      <location line="0"/>
      <source>No</source>
      <translation type="unfinished"></translation>
      </message>
      <message>
      <source>Form sent successfully</source>
      <translation type="unfinished"></translation>
      </message>
      <message>
      <source>Thank You! You have successfully submitted the form.</source>
      <translation type="unfinished"></translation>
      </message>
      <message>
      <source>Your data</source>
      <translation type="unfinished"></translation>
      </message>
      <message>
      <source>required</source>
      <translation type="unfinished"></translation>
      </message>
      </context>
      If I run a validation against it it will fail.

      $ xmllint --noout --relaxng schemas/translation/ts.rng extension/xrowformgenerator/translations/untranslated/translation.ts
      extension/xrowformgenerator/translations/untranslated/translation.ts:340: element location: Relax-NG validity error : Element location failed to validate attributes
      extension/xrowformgenerator/translations/untranslated/translation.ts:351: element location: Relax-NG validity error : Element location failed to validate attributes
      extension/xrowformgenerator/translations/untranslated/translation.ts:357: element location: Relax-NG validity error : Element location failed to validate attributes
      extension/xrowformgenerator/translations/untranslated/translation.ts fails to validate
      The expected behavior is that ezlupdate will generate a xml that is valid.

      How to run ezlupdate to generate a new translation file, reproducing the issue:
      bin/linux/ezlupdate -e extension/xrowformgenerator nor-NO

      Attachments

        Activity

          People

            Unassigned Unassigned
            gunnstein.lye@ibexa.co Gunnstein Lye
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 4 hours, 45 minutes
                2d 4h 45m