From f671c3a3471b2d28615525ab53d76e71d65c5269 Mon Sep 17 00:00:00 2001
From: Arin Alexander <arin_a@bk.ru>
Date: Wed, 28 Jun 2017 18:40:55 +0300
Subject: [PATCH] Object properties translation has been updated

---
 limereport/lrpagedesignintf.cpp               |   4 +-
 limereport/lrpagedesignintf.h                 |   2 +-
 .../objectinspector/lrobjectitemmodel.cpp     |  42 ++++++
 translations/limereport_ru.ts                 | 120 +++++++++++++-----
 4 files changed, 135 insertions(+), 33 deletions(-)

diff --git a/limereport/lrpagedesignintf.cpp b/limereport/lrpagedesignintf.cpp
index 0928856..2a3a068 100644
--- a/limereport/lrpagedesignintf.cpp
+++ b/limereport/lrpagedesignintf.cpp
@@ -125,7 +125,7 @@ void PageDesignIntf::updatePageRect()
         m_pageItem->setRightMargin(5);
         m_pageItem->setObjectName("ReportPage1");
         connect(m_pageItem.data(), SIGNAL(itemSelected(LimeReport::BaseDesignIntf *)), this, SIGNAL(itemSelected(LimeReport::BaseDesignIntf *)));
-        connect(m_pageItem.data(), SIGNAL(geometryChanged(QObject *, QRectF, QRectF)), this, SLOT(slotPageGeomertyChanged(QObject *, QRectF, QRectF)));
+        connect(m_pageItem.data(), SIGNAL(geometryChanged(QObject *, QRectF, QRectF)), this, SLOT(slotPageGeometryChanged(QObject *, QRectF, QRectF)));
         connect(m_pageItem.data(), SIGNAL(objectLoaded(QObject *)), this, SLOT(slotPageItemLoaded(QObject *)));
     }
     this->setSceneRect(-Const::SCENE_MARGIN, -Const::SCENE_MARGIN,
@@ -777,7 +777,7 @@ QStringList PageDesignIntf::possibleParentItems()
     return itemsList;
 }
 
-void PageDesignIntf::slotPageGeomertyChanged(QObject *, QRectF /*newGeometry*/, QRectF)
+void PageDesignIntf::slotPageGeometryChanged(QObject *, QRectF /*newGeometry*/, QRectF)
 {
     if (!m_isLoading){
         pageItem()->relocateBands();
diff --git a/limereport/lrpagedesignintf.h b/limereport/lrpagedesignintf.h
index 5ddfdc0..d2ff996 100644
--- a/limereport/lrpagedesignintf.h
+++ b/limereport/lrpagedesignintf.h
@@ -252,7 +252,7 @@ namespace LimeReport {
             void setTextAlign(const Qt::Alignment& alignment);
             void setBorders(const BaseDesignIntf::BorderLines& border);
         private slots:
-            void slotPageGeomertyChanged(QObject*, QRectF, QRectF );
+            void slotPageGeometryChanged(QObject*, QRectF, QRectF );
             void slotItemPropertyChanged(QString propertyName, const QVariant &oldValue, const QVariant &newValue);
             void slotItemPropertyObjectNameChanged(const QString& oldName, const QString& newName);
             void bandDeleted(QObject* band);
diff --git a/limereport/objectinspector/lrobjectitemmodel.cpp b/limereport/objectinspector/lrobjectitemmodel.cpp
index c79480a..260b584 100644
--- a/limereport/objectinspector/lrobjectitemmodel.cpp
+++ b/limereport/objectinspector/lrobjectitemmodel.cpp
@@ -83,6 +83,48 @@ void QObjectPropertyModel::translatePropertyName()
     tr("shape");
     tr("shapeBrush");
     tr("shapeBrushColor");
+    tr("gridStep");
+    tr("fullPage");
+    tr("oldPrintMode");
+    tr("borderColor");
+    tr("resetPageNumber");
+    tr("alternateBackgroundColor");
+    tr("backgroundBrushStyle");
+    tr("columnCount");
+    tr("startFromNewPage");
+    tr("startNewPage");
+    tr("adaptFontToSize");
+    tr("allowHTML");
+    tr("allowHTMLInFields");
+    tr("backgroundBrushStyle");
+    tr("followTo");
+    tr("format");
+    tr("lineSpacing");
+    tr("textIndent");
+    tr("textLayoutDirection");
+    tr("underlineLineSize");
+    tr("underlines");
+    tr("valueType");
+    tr("securityLevel");
+    tr("testValue");
+    tr("whitespace");
+    tr("resourcePath");
+    tr("scale");
+    tr("cornerRadius");
+    tr("shapeColor");
+    tr("layoutType");
+    tr("barcodeType");
+    tr("barcodeWidth");
+    tr("foregroundColor");
+    tr("inputMode");
+    tr("pdf417CodeWords");
+    tr("autoSize");
+    tr("center");
+    tr("field");
+    tr("image");
+    tr("keepAspectRatio");
+    tr("columnsCount");
+
 }
 
 void QObjectPropertyModel::clearObjectsList()
diff --git a/translations/limereport_ru.ts b/translations/limereport_ru.ts
index 52c623d..ccc5d63 100644
--- a/translations/limereport_ru.ts
+++ b/translations/limereport_ru.ts
@@ -524,11 +524,19 @@ p, li { white-space: pre-wrap; }
     </message>
     <message>
         <source>connection with name &quot;%1&quot; already exists!</source>
-        <translation>соединение &quot;%1&quot; уже существует!</translation>
+        <translation type="vanished">соединение &quot;%1&quot; уже существует!</translation>
     </message>
     <message>
         <source>datasource with name &quot;%1&quot; already exists!</source>
-        <translation>источник данных &quot;%1&quot; уже существует!</translation>
+        <translation type="vanished">источник данных &quot;%1&quot; уже существует!</translation>
+    </message>
+    <message>
+        <source>Connection with name &quot;%1&quot; already exists!</source>
+        <translation>Соединение &quot;%1&quot; уже существует!</translation>
+    </message>
+    <message>
+        <source>Datasource with name &quot;%1&quot; already exists!</source>
+        <translation>Источник данных с именем: &quot;%1&quot; уже существует!</translation>
     </message>
 </context>
 <context>
@@ -928,43 +936,43 @@ p, li { white-space: pre-wrap; }
     </message>
     <message>
         <source>fullPage</source>
-        <translation type="vanished">Страница целиком</translation>
+        <translation>Страница целиком</translation>
     </message>
     <message>
         <source>gridStep</source>
-        <translation type="vanished">Шаг сетки</translation>
+        <translation>Шаг сетки</translation>
     </message>
     <message>
         <source>oldPrintMode</source>
-        <translation type="vanished">Старый режим печати</translation>
+        <translation>Старый режим печати</translation>
     </message>
     <message>
         <source>resourcePath</source>
-        <translation type="vanished">Путь к ресурсам</translation>
+        <translation>Путь к ресурсам</translation>
     </message>
     <message>
         <source>autoSize</source>
-        <translation type="vanished">Автоматический размер</translation>
+        <translation>Автоматический размер</translation>
     </message>
     <message>
         <source>center</source>
-        <translation type="vanished">Центрировать</translation>
+        <translation>Центрировать</translation>
     </message>
     <message>
         <source>field</source>
-        <translation type="vanished">Поле</translation>
+        <translation>Поле</translation>
     </message>
     <message>
         <source>image</source>
-        <translation type="vanished">Изображение</translation>
+        <translation>Изображение</translation>
     </message>
     <message>
         <source>keepAspectRatio</source>
-        <translation type="vanished">Сохранять соотношение сторон</translation>
+        <translation>Сохранять соотношение сторон</translation>
     </message>
     <message>
         <source>scale</source>
-        <translation type="vanished">Масштабировать</translation>
+        <translation>Масштабировать</translation>
     </message>
     <message>
         <source>leftMargin</source>
@@ -1064,43 +1072,43 @@ p, li { white-space: pre-wrap; }
     </message>
     <message>
         <source>textIndent</source>
-        <translation type="vanished">Отступ текста</translation>
+        <translation>Отступ текста</translation>
     </message>
     <message>
         <source>textLayoutDirection</source>
-        <translation type="vanished">Направление текста</translation>
+        <translation>Направление текста</translation>
     </message>
     <message>
         <source>lineSpacing</source>
-        <translation type="vanished">Межстрочный интервал</translation>
+        <translation>Межстрочный интервал</translation>
     </message>
     <message>
         <source>underlines</source>
-        <translation type="vanished">Подчеркивание</translation>
+        <translation>Подчеркивание</translation>
     </message>
     <message>
         <source>underlineLineSize</source>
-        <translation type="vanished">Толщина подчеркивания</translation>
+        <translation>Толщина подчеркивания</translation>
     </message>
     <message>
         <source>format</source>
-        <translation type="vanished">Формат</translation>
+        <translation>Формат</translation>
     </message>
     <message>
         <source>valueType</source>
-        <translation type="vanished">Тип значения</translation>
+        <translation>Тип значения</translation>
     </message>
     <message>
         <source>adaptFontToSize</source>
-        <translation type="vanished">Шрифт по размеру</translation>
+        <translation>Шрифт по размеру</translation>
     </message>
     <message>
         <source>followTo</source>
-        <translation type="vanished">Следует за</translation>
+        <translation>Следует за</translation>
     </message>
     <message>
         <source>backgroundBrushStyle</source>
-        <translation type="vanished">Стиль заполнения фона</translation>
+        <translation>Стиль заполнения фона</translation>
     </message>
     <message>
         <source>autoHeight</source>
@@ -1112,11 +1120,11 @@ p, li { white-space: pre-wrap; }
     </message>
     <message>
         <source>alternateBackgroundColor</source>
-        <translation type="vanished">Альтернативный цвет фона</translation>
+        <translation>Альтернативный цвет фона</translation>
     </message>
     <message>
         <source>columnsCount</source>
-        <translation type="vanished">Количество столбцов</translation>
+        <translation>Количество столбцов</translation>
     </message>
     <message>
         <source>columnsFillDirection</source>
@@ -1212,11 +1220,11 @@ p, li { white-space: pre-wrap; }
     </message>
     <message>
         <source>allowHTML</source>
-        <translation type="vanished">Разрешить HTML</translation>
+        <translation>Разрешить HTML</translation>
     </message>
     <message>
         <source>allowHTMLInFields</source>
-        <translation type="vanished">Разрешить HTML в полях</translation>
+        <translation>Разрешить HTML в полях</translation>
     </message>
     <message>
         <source>printAlways</source>
@@ -1224,24 +1232,76 @@ p, li { white-space: pre-wrap; }
     </message>
     <message>
         <source>borderColor</source>
-        <translation type="vanished">Цвет границ</translation>
+        <translation>Цвет границ</translation>
     </message>
     <message>
         <source>startNewPage</source>
-        <translation type="vanished">Начинать новую страницу</translation>
+        <translation>Начинать новую страницу</translation>
     </message>
     <message>
         <source>startFromNewPage</source>
-        <translation type="vanished">Начинать с новой страницы</translation>
+        <translation>Начинать с новой страницы</translation>
     </message>
     <message>
         <source>resetPageNumber</source>
-        <translation type="vanished">Обнулять номер страницы</translation>
+        <translation>Обнулять номер страницы</translation>
     </message>
     <message>
         <source>columnCount</source>
         <translation>Количество колонок</translation>
     </message>
+    <message>
+        <source>alternateBackgroundMode</source>
+        <translation type="obsolete">Альтернативный цвет фона</translation>
+    </message>
+    <message>
+        <source>textIdent</source>
+        <translation type="obsolete">Параграф</translation>
+    </message>
+    <message>
+        <source>securityLevel</source>
+        <translation type="unfinished">Уровень безопасности</translation>
+    </message>
+    <message>
+        <source>testValue</source>
+        <translation>Тестовое значение</translation>
+    </message>
+    <message>
+        <source>whitespace</source>
+        <translation type="unfinished">Отступ</translation>
+    </message>
+    <message>
+        <source>cornerRadius</source>
+        <translation type="unfinished">Радиус закругления</translation>
+    </message>
+    <message>
+        <source>shapeColor</source>
+        <translation>Цвет фигуры</translation>
+    </message>
+    <message>
+        <source>layoutType</source>
+        <translation>Тип группировки</translation>
+    </message>
+    <message>
+        <source>barcodeType</source>
+        <translation>Тип штрихкода</translation>
+    </message>
+    <message>
+        <source>barcodeWidth</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>foregroundColor</source>
+        <translation>Цвет переднего плана</translation>
+    </message>
+    <message>
+        <source>inputMode</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>pdf417CodeWords</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>LimeReport::RectMMPropItem</name>