0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-01 11:31:10 +03:00

Translation has been updated

This commit is contained in:
Arin Alexander
2017-08-05 01:38:19 +03:00
parent 881089fd2f
commit 8c5a9fcd91
21 changed files with 575 additions and 38 deletions

View File

@@ -230,12 +230,14 @@ void XMLWriter::saveTranslation(QString propertyName, QObject* item, QDomElement
foreach(PageTranslation* page, curTranslation->pagesTranslation()){
QDomElement pageNode = m_doc->createElement(page->pageName);
languageNode.appendChild(pageNode);
foreach(ItemTranslation item, page->itemsTranslation){
QDomElement itemNode = m_doc->createElement(item.itemName);
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);
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);
}
}