From da13ec66750c54784086622cd329edee954116f1 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 23 Mar 2014 17:58:00 +0100 Subject: [PATCH] Adds missing languagename when exporting language --- .../install/files/lib/acp/form/LanguageImportForm.class.php | 4 ++-- .../install/files/lib/data/language/LanguageEditor.class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.20.1