-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #82 Minor translation extractor config enhancements (ogizanagi)
This PR was squashed before being merged into the 1.x-dev branch (closes #82). Discussion ---------- Minor translation extractor config enhancements Just some minor improvements after #81. @danut007ro: If you have some time to review those changes, I'll appreciate! Commits ------- 6539ae1 Add Sf 5.1 in allowed failures a3abaaf Minor translation extractor config enhancements
- Loading branch information
Showing
10 changed files
with
62 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 26 additions & 28 deletions
54
src/Bridge/Symfony/Bundle/Resources/config/schema/elao_enum.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,62 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<xsd:schema xmlns="http://elao.com/schema/dic/elao_enum" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
targetNamespace="http://elao.com/schema/dic/elao_enum" | ||
elementFormDefault="qualified"> | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
targetNamespace="http://elao.com/schema/dic/elao_enum" | ||
elementFormDefault="qualified"> | ||
|
||
<xsd:element name="config" type="config" /> | ||
<xsd:element name="config" type="config"/> | ||
|
||
<xsd:complexType name="config"> | ||
<xsd:choice maxOccurs="unbounded"> | ||
<xsd:element name="serializer" type="serializer" minOccurs="0" maxOccurs="1" /> | ||
<xsd:element name="argument_value_resolver" type="argument_value_resolver" minOccurs="0" maxOccurs="1" /> | ||
<xsd:element name="doctrine" type="doctrine" minOccurs="0" maxOccurs="1" /> | ||
<xsd:element name="translation_extractor" type="translation_extractor" minOccurs="0" maxOccurs="1" /> | ||
<xsd:element name="serializer" type="serializer" minOccurs="0" maxOccurs="1"/> | ||
<xsd:element name="argument_value_resolver" type="argument_value_resolver" minOccurs="0" maxOccurs="1"/> | ||
<xsd:element name="doctrine" type="doctrine" minOccurs="0" maxOccurs="1"/> | ||
<xsd:element name="translation_extractor" type="translation_extractor" minOccurs="0" maxOccurs="1"/> | ||
</xsd:choice> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="serializer"> | ||
<xsd:attribute name="enabled" type="xsd:boolean" /> | ||
<xsd:attribute name="enabled" type="xsd:boolean"/> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="argument_value_resolver"> | ||
<xsd:attribute name="enabled" type="xsd:boolean" /> | ||
<xsd:attribute name="enabled" type="xsd:boolean"/> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="doctrine"> | ||
<xsd:sequence> | ||
<xsd:element name="type" type="doctrine_type" minOccurs="0" maxOccurs="unbounded" /> | ||
<xsd:element name="type" type="doctrine_type" minOccurs="0" maxOccurs="unbounded"/> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="doctrine_type"> | ||
<xsd:attribute name="class" type="xsd:string" use="required" /> | ||
<xsd:attribute name="type" type="doctrine_type_type" default="string" /> | ||
<xsd:attribute name="name" type="xsd:string" use="required" /> | ||
<xsd:attribute name="class" type="xsd:string" use="required"/> | ||
<xsd:attribute name="type" type="doctrine_type_type" default="string"/> | ||
<xsd:attribute name="name" type="xsd:string" use="required"/> | ||
</xsd:complexType> | ||
|
||
<xsd:simpleType name="doctrine_type_type"> | ||
<xsd:restriction base="xsd:string"> | ||
<xsd:enumeration value="string" /> | ||
<xsd:enumeration value="int" /> | ||
<xsd:enumeration value="string"/> | ||
<xsd:enumeration value="int"/> | ||
</xsd:restriction> | ||
</xsd:simpleType> | ||
|
||
<xsd:complexType name="translation_extractor"> | ||
<xsd:sequence> | ||
<xsd:element name="path" type="translation_extractor_path" minOccurs="1" maxOccurs="unbounded" /> | ||
<xsd:element name="ignore" type="translation_extractor_ignore" minOccurs="0" maxOccurs="unbounded" /> | ||
<xsd:element name="path" type="translation_extractor_path" minOccurs="1" maxOccurs="unbounded"/> | ||
<xsd:element name="ignore" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> | ||
</xsd:sequence> | ||
<xsd:attribute name="enabled" type="xsd:boolean" /> | ||
<xsd:attribute name="domain" type="xsd:string" /> | ||
<xsd:attribute name="filename_pattern" type="xsd:string" /> | ||
<xsd:attribute name="enabled" type="xsd:boolean"/> | ||
<xsd:attribute name="domain" type="xsd:string"/> | ||
<xsd:attribute name="filename_pattern" type="xsd:string"/> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="translation_extractor_path"> | ||
<xsd:attribute name="path" type="xsd:string" use="required" /> | ||
<xsd:attribute name="namespace" type="xsd:string" use="required" /> | ||
<xsd:complexType name="translation_extractor_path" mixed="true"> | ||
<xsd:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xsd:element name="path" type="xsd:string"/> | ||
</xsd:choice> | ||
<xsd:attribute name="namespace" type="xsd:string" use="required"/> | ||
</xsd:complexType> | ||
|
||
<xsd:simpleType name="translation_extractor_ignore"> | ||
<xsd:restriction base="xsd:string" /> | ||
</xsd:simpleType> | ||
</xsd:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...idge/Symfony/Bundle/DependencyInjection/ElaoEnumExtension/yaml/translation_extractor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters