From 4ca5119dd28102034af081884ab362478d5b671f Mon Sep 17 00:00:00 2001 From: Matias Lavik Date: Thu, 15 Apr 2021 20:58:32 +0200 Subject: [PATCH] #323: Replace " " with "_" when saving translations. --- limereport/serializators/lrxmlwriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/limereport/serializators/lrxmlwriter.cpp b/limereport/serializators/lrxmlwriter.cpp index 84062da..af353f5 100644 --- a/limereport/serializators/lrxmlwriter.cpp +++ b/limereport/serializators/lrxmlwriter.cpp @@ -223,7 +223,7 @@ void XMLWriter::saveTranslation(QString propertyName, QObject* item, QDomElement translationsNode.setAttribute("Type","Translation"); Translations* translations = translationsContainer->translations(); foreach(QLocale::Language language, translations->keys()){ - QDomElement languageNode = m_doc->createElement(QLocale::languageToString(language)); + QDomElement languageNode = m_doc->createElement(QLocale::languageToString(language).replace(' ', '_')); languageNode.setAttribute("Value",QString::number(language)); translationsNode.appendChild(languageNode); ReportTranslation* curTranslation = translations->value(language);