Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit a43f607

Browse files
committed
MAGETWO-67048: Cannot add translate attribute into the di.xml
1 parent f2b1e3c commit a43f607

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

lib/internal/Magento/Framework/Data/etc/argument/types.xsd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
<xs:complexContent>
3737
<xs:extension base="argumentType">
3838
<xs:attribute name="translate" use="optional" type="xs:boolean"/>
39-
<xs:attribute name="translatable" use="optional" type="xs:boolean"/>
4039
</xs:extension>
4140
</xs:complexContent>
4241
</xs:complexType>

lib/internal/Magento/Framework/ObjectManager/etc/config.xsd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
<xs:redefine schemaLocation="urn:magento:framework:Data/etc/argument/types.xsd">
1313
<xs:complexType name="string">
14-
<xs:complexContent mixed="true">
15-
<xs:restriction base="string">
16-
<xs:attribute name="translate" use="prohibited"/>
17-
</xs:restriction>
14+
<xs:complexContent>
15+
<xs:extension base="argumentType">
16+
<xs:attribute name="translatable" use="optional" type="xs:boolean" />
17+
</xs:extension>
1818
</xs:complexContent>
1919
</xs:complexType>
2020
<xs:complexType name="argumentType" abstract="true" mixed="false">

lib/internal/Magento/Framework/View/Layout/etc/elements.xsd

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
99
<!-- Redefine section -->
1010
<xs:redefine schemaLocation="urn:magento:framework:Data/etc/argument/types.xsd">
11-
<xs:complexType name="string">
12-
<xs:complexContent mixed="true">
13-
<xs:restriction base="string">
14-
<xs:attribute name="translatable" use="prohibited"/>
15-
</xs:restriction>
16-
</xs:complexContent>
17-
</xs:complexType>
1811
<xs:complexType name="argumentType" abstract="true" mixed="true">
1912
<xs:complexContent>
2013
<xs:extension base="argumentType">

0 commit comments

Comments
 (0)