Skip to content

Commit fa21826

Browse files
[Translation] fix perf of lint:xliff command
1 parent 6fcd1bd commit fa21826

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Command/XliffLintCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ private function validate($content, $file = null)
130130
$document->schemaValidate(__DIR__.'/../Resources/schemas/xliff-core-1.2-strict.xsd');
131131
foreach (libxml_get_errors() as $xmlError) {
132132
$errors[] = array(
133-
'line' => $xmlError->line,
134-
'column' => $xmlError->column,
135-
'message' => trim($xmlError->message),
136-
);
133+
'line' => $xmlError->line,
134+
'column' => $xmlError->column,
135+
'message' => trim($xmlError->message),
136+
);
137137
}
138138

139139
libxml_clear_errors();

Resources/schemas/xliff-core-1.2-strict.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Jan-10-2006
3030
-->
3131
<xsd:schema xmlns:xlf="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="urn:oasis:names:tc:xliff:document:1.2" xml:lang="en">
3232
<!-- Import for xml:lang and xml:space -->
33-
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
33+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="../../Loader/schema/dic/xliff-core/xml.xsd"/>
3434
<!-- Attributes Lists -->
3535
<xsd:simpleType name="XTend">
3636
<xsd:restriction base="xsd:string">

0 commit comments

Comments
 (0)