0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-09-23 08:29:07 +03:00

Translation has been changed

This commit is contained in:
Arin Alexander
2018-09-06 23:07:19 +03:00
parent ea2a38758d
commit b878cf95ae
3 changed files with 16 additions and 26 deletions

View File

@@ -232,14 +232,17 @@ void XMLWriter::saveTranslation(QString propertyName, QObject* item, QDomElement
languageNode.appendChild(pageNode);
foreach(ItemTranslation* item, page->itemsTranslation){
QDomElement itemNode = m_doc->createElement(item->itemName);
pageNode.appendChild(itemNode);
foreach(PropertyTranslation* property, item->propertyesTranslation){
QDomElement propertyNode = m_doc->createElement(property->propertyName);
propertyNode.setAttribute("Value",property->value);
propertyNode.setAttribute("SourceValue", property->sourceValue);
propertyNode.setAttribute("Checked", property->checked ? "Y":"N");
itemNode.appendChild(propertyNode);
if (property->sourceValue.compare(property->value) != 0){
QDomElement propertyNode = m_doc->createElement(property->propertyName);
propertyNode.setAttribute("Value",property->value);
propertyNode.setAttribute("SourceValue", property->sourceValue);
propertyNode.setAttribute("Checked", property->checked ? "Y":"N");
itemNode.appendChild(propertyNode);
}
}
if (!itemNode.childNodes().isEmpty())
pageNode.appendChild(itemNode);
}
}
}