0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-23 16:22:58 +03:00

Russian translation updated

This commit is contained in:
Arin Alexander 2019-01-26 23:45:20 +03:00
parent 37b3ea9fa4
commit 0d0ba64bac
4 changed files with 28 additions and 4 deletions

View File

@ -10,17 +10,24 @@ int main(int argc, char *argv[])
DesignerSettingManager manager;
QTranslator limeReportTranslator;
QTranslator qtTranslator;
QTranslator qtBaseTranslator;
QTranslator qtDesignerTranslator;
QTranslator qtLinguistTranslator;
QString translationPath = QApplication::applicationDirPath();
translationPath.append("/languages");
translationPath.append("/translations");
Qt::LayoutDirection layoutDirection = QLocale::system().textDirection();
QString designerTranslation = QLocale(manager.getCurrentDefaultLanguage()).name();
if (limeReportTranslator.load("limereport_"+designerTranslation, translationPath)){
qtTranslator.load("qt_" + designerTranslation, translationPath);
a.installTranslator(&qtTranslator);
qtBaseTranslator.load("qtbase_" + designerTranslation, translationPath);
qtDesignerTranslator.load("designer_"+designerTranslation,translationPath);
a.installTranslator(&qtBaseTranslator);
a.installTranslator(&qtDesignerTranslator);
a.installTranslator(&limeReportTranslator);
Qt::LayoutDirection layoutDirection = QLocale(manager.getCurrentDefaultLanguage()).textDirection();
a.setLayoutDirection(layoutDirection);
}

View File

@ -154,6 +154,7 @@ void QObjectPropertyModel::translatePropertyName()
tr("replaceCRwithBR");
tr("hideIfEmpty");
tr("hideEmptyItems");
tr("useExternalPainter");
}
void QObjectPropertyModel::clearObjectsList()

Binary file not shown.

View File

@ -384,6 +384,14 @@ p, li { white-space: pre-wrap; }
<source>Print if empty</source>
<translation>Печатать, если пустое</translation>
</message>
<message>
<source>Cut</source>
<translation>Вырезать</translation>
</message>
<message>
<source>Copy</source>
<translation>Копировать</translation>
</message>
</context>
<context>
<name>LimeReport::BaseDesignIntf</name>
@ -1086,6 +1094,10 @@ p, li { white-space: pre-wrap; }
</context>
<context>
<name>LimeReport::ImageItem</name>
<message>
<source>Ext.</source>
<translation>Внешний</translation>
</message>
<message>
<source>Image</source>
<translation>Изображение</translation>
@ -1864,6 +1876,10 @@ p, li { white-space: pre-wrap; }
<source>hideEmptyItems</source>
<translation>Скрывать пустые элементы</translation>
</message>
<message>
<source>useExternalPainter</source>
<translation>Использовать внешний отрисовщик</translation>
</message>
</context>
<context>
<name>LimeReport::RectMMPropItem</name>