mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-23 16:22:58 +03:00
#323: Replace " " with "_" when saving translations.
This commit is contained in:
parent
520d223956
commit
4ca5119dd2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user