Adds missing languagename when exporting language
authorMatthias Schmidt <gravatronics@live.com>
Sun, 23 Mar 2014 16:58:00 +0000 (17:58 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 23 Mar 2014 16:58:00 +0000 (17:58 +0100)
wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php
wcfsetup/install/files/lib/data/language/LanguageEditor.class.php

index 1dfde023e83c2ce9f1d52cd6fa00daf3652d213a..005db92892d31918862d955d878be340ea868814 100644 (file)
@@ -87,13 +87,13 @@ class LanguageImportForm extends AbstractForm {
                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);
                }
index dc133dc22fc028d500066b73d6ada23e88a9888f..817525a382d5d78c09b3dfad2265df0bfc463c3f 100644 (file)
@@ -115,7 +115,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje
                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();