mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-23 08:29:07 +03:00
Translation has been fixed
This commit is contained in:
@@ -82,14 +82,13 @@ void ReportTranslation::updatePageTranslation(PageDesignIntf* page)
|
||||
if (itemTranslation){
|
||||
foreach(QString propertyName, stringsForTranslation.keys()){
|
||||
PropertyTranslation* propertyTranslation = itemTranslation->findProperty(propertyName);
|
||||
bool translated = propertyTranslation->sourceValue != propertyTranslation->value;
|
||||
if (propertyTranslation->checked)
|
||||
propertyTranslation->sourceHasBeenChanged = propertyTranslation->sourceValue != stringsForTranslation.value(propertyName);
|
||||
if (propertyTranslation->sourceHasBeenChanged)
|
||||
propertyTranslation->checked = false;
|
||||
propertyTranslation->sourceValue = stringsForTranslation.value(propertyName);
|
||||
|
||||
if ( language() == QLocale::AnyLanguage )
|
||||
propertyTranslation->value = propertyTranslation->sourceValue;
|
||||
if (!translated) propertyTranslation->value = propertyTranslation->sourceValue;
|
||||
}
|
||||
} else {
|
||||
createItemTranslation(item, pageTranslation);
|
||||
|
Reference in New Issue
Block a user