if (!file_exists($this->filename)) {
throw new UserInputException('languageFile');
}
-
+
// try to import
try {
// open xml document
$xml = new XML();
$xml->load($this->filename);
-
+
// import xml document
$this->language = LanguageEditor::importFromXML($xml, PACKAGE_ID);
}
echo "\xEF\xBB\xBF";
// header
- echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<language xmlns=\"http://www.woltlab.com\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.woltlab.com http://www.woltlab.com/XSD/maelstrom/language.xsd\" languagecode=\"".$this->languageCode."\" countrycode=\"".$this->countryCode."\">\n";
+ echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<language xmlns=\"http://www.woltlab.com\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.woltlab.com http://www.woltlab.com/XSD/maelstrom/language.xsd\" languagecode=\"".$this->languageCode."\" languagename=\"".$this->languageName."\" countrycode=\"".$this->countryCode."\">\n";
// get items
$items = array();