changeset 64:70d6c2a5d99e

* Move schema from "dtds" folder to "schemas" folder to match warfoundry:429 no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Wed, 16 Dec 2009 20:48:10 +0000
parents 8fe11cd7d3bf
children 980ebd49c40b
files IBBoard.csproj Lang/Translation.cs dtds/translation.xsd schemas/translation.xsd
diffstat 4 files changed, 20 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/IBBoard.csproj	Mon Nov 30 21:00:05 2009 +0000
+++ b/IBBoard.csproj	Wed Dec 16 20:48:10 2009 +0000
@@ -149,7 +149,7 @@
   <ItemGroup>
     <None Include="COPYING.GPL" />
     <None Include="COPYING.LGPL" />
-    <None Include="dtds\translation.xsd">
+    <None Include="schemas\translation.xsd">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
   </ItemGroup>
--- a/Lang/Translation.cs	Mon Nov 30 21:00:05 2009 +0000
+++ b/Lang/Translation.cs	Wed Dec 16 20:48:10 2009 +0000
@@ -113,7 +113,7 @@
 					settings.ValidationFlags = XmlSchemaValidationFlags.ReportValidationWarnings;
 					settings.ValidationEventHandler+= new ValidationEventHandler(ValidationEventMethod);
 					XmlSchemaSet cache = new XmlSchemaSet();
-					cache.Add("http://ibboard.co.uk/translation", translationDir.Parent.FullName + "/dtds/translation.xsd");
+					cache.Add("http://ibboard.co.uk/translation", translationDir.Parent.FullName + "/schemas/translation.xsd");
 					settings.Schemas.Add(cache);
 				}
 				catch (DirectoryNotFoundException ex)
--- a/dtds/translation.xsd	Mon Nov 30 21:00:05 2009 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-<?xml version="1.0"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/translation" xmlns="http://ibboard.co.uk/translation" elementFormDefault="qualified">
-<xs:complexType name="translationtype">
-    <xs:simpleContent>
-      <xs:extension base="xs:string">
-        <xs:attribute name="id" type="xs:ID" />
-      </xs:extension>
-    </xs:simpleContent>
-</xs:complexType>
-<xs:element name="translations">
-  <xs:complexType>
-    <xs:sequence>
-      <xs:element name="translation" minOccurs="0" maxOccurs="unbounded" type="translationtype"/>
-    </xs:sequence>
-    <xs:attribute name="lang" type="xs:string" use="required"/>
-  </xs:complexType>
-</xs:element>
-</xs:schema>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/schemas/translation.xsd	Wed Dec 16 20:48:10 2009 +0000
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/translation" xmlns="http://ibboard.co.uk/translation" elementFormDefault="qualified">
+<xs:complexType name="translationtype">
+    <xs:simpleContent>
+      <xs:extension base="xs:string">
+        <xs:attribute name="id" type="xs:ID" />
+      </xs:extension>
+    </xs:simpleContent>
+</xs:complexType>
+<xs:element name="translations">
+  <xs:complexType>
+    <xs:sequence>
+      <xs:element name="translation" minOccurs="0" maxOccurs="unbounded" type="translationtype"/>
+    </xs:sequence>
+    <xs:attribute name="lang" type="xs:string" use="required"/>
+  </xs:complexType>
+</xs:element>
+</xs:schema>
\ No newline at end of file