Mercurial > repos > IBBoard
comparison Lang/Translation.cs @ 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 | cc7fae81afec |
children | 980ebd49c40b |
comparison
equal
deleted
inserted
replaced
63:8fe11cd7d3bf | 64:70d6c2a5d99e |
---|---|
111 settings.XmlResolver = new IBBXmlResolver(translationDir.Parent.FullName); | 111 settings.XmlResolver = new IBBXmlResolver(translationDir.Parent.FullName); |
112 settings.ValidationType = ValidationType.Schema; | 112 settings.ValidationType = ValidationType.Schema; |
113 settings.ValidationFlags = XmlSchemaValidationFlags.ReportValidationWarnings; | 113 settings.ValidationFlags = XmlSchemaValidationFlags.ReportValidationWarnings; |
114 settings.ValidationEventHandler+= new ValidationEventHandler(ValidationEventMethod); | 114 settings.ValidationEventHandler+= new ValidationEventHandler(ValidationEventMethod); |
115 XmlSchemaSet cache = new XmlSchemaSet(); | 115 XmlSchemaSet cache = new XmlSchemaSet(); |
116 cache.Add("http://ibboard.co.uk/translation", translationDir.Parent.FullName + "/dtds/translation.xsd"); | 116 cache.Add("http://ibboard.co.uk/translation", translationDir.Parent.FullName + "/schemas/translation.xsd"); |
117 settings.Schemas.Add(cache); | 117 settings.Schemas.Add(cache); |
118 } | 118 } |
119 catch (DirectoryNotFoundException ex) | 119 catch (DirectoryNotFoundException ex) |
120 { | 120 { |
121 throw new TranslationLoadException("Problem validating schema for translation: " + ex.Message, ex); | 121 throw new TranslationLoadException("Problem validating schema for translation: " + ex.Message, ex); |