8000 [Translation] fix perf of lint:xliff command · symfony/symfony@02c69b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02c69b1

Browse files
[Translation] fix perf of lint:xliff command
1 parent 9654de3 commit 02c69b1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Symfony/Component/Translation/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();

src/Symfony/Component/Translation/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)
0