0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 16:44:39 +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; DesignerSettingManager manager;
QTranslator limeReportTranslator; QTranslator limeReportTranslator;
QTranslator qtTranslator; QTranslator qtBaseTranslator;
QTranslator qtDesignerTranslator;
QTranslator qtLinguistTranslator;
QString translationPath = QApplication::applicationDirPath(); QString translationPath = QApplication::applicationDirPath();
translationPath.append("/languages"); translationPath.append("/translations");
Qt::LayoutDirection layoutDirection = QLocale::system().textDirection(); Qt::LayoutDirection layoutDirection = QLocale::system().textDirection();
QString designerTranslation = QLocale(manager.getCurrentDefaultLanguage()).name(); QString designerTranslation = QLocale(manager.getCurrentDefaultLanguage()).name();
if (limeReportTranslator.load("limereport_"+designerTranslation, translationPath)){ if (limeReportTranslator.load("limereport_"+designerTranslation, translationPath)){
qtTranslator.load("qt_" + designerTranslation, translationPath); qtBaseTranslator.load("qtbase_" + designerTranslation, translationPath);
a.installTranslator(&qtTranslator); qtDesignerTranslator.load("designer_"+designerTranslation,translationPath);
a.installTranslator(&qtBaseTranslator);
a.installTranslator(&qtDesignerTranslator);
a.installTranslator(&limeReportTranslator); a.installTranslator(&limeReportTranslator);
Qt::LayoutDirection layoutDirection = QLocale(manager.getCurrentDefaultLanguage()).textDirection(); Qt::LayoutDirection layoutDirection = QLocale(manager.getCurrentDefaultLanguage()).textDirection();
a.setLayoutDirection(layoutDirection); a.setLayoutDirection(layoutDirection);
} }

View File

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

Binary file not shown.

View File

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