0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-23 16:22:58 +03:00

Merge pull request #324 from mlavik1/master

#323: Replace " " with "_" when saving translations.
This commit is contained in:
Alexander Arin 2021-04-15 23:33:11 +03:00 committed by GitHub
commit 6420f913e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);