From: Matthias Schmidt Date: Sun, 23 Mar 2014 16:58:00 +0000 (+0100) Subject: Adds missing languagename when exporting language X-Git-Tag: 2.0.5~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da13ec66750c54784086622cd329edee954116f1;p=GitHub%2FWoltLab%2FWCF.git Adds missing languagename when exporting language --- diff --git a/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php index 1dfde023e8..005db92892 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php @@ -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); } diff --git a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php index dc133dc22f..817525a382 100644 --- a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php @@ -115,7 +115,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje echo "\xEF\xBB\xBF"; // header - echo "\nlanguageCode."\" countrycode=\"".$this->countryCode."\">\n"; + echo "\nlanguageCode."\" languagename=\"".$this->languageName."\" countrycode=\"".$this->countryCode."\">\n"; // get items $items = array();