mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-26 05:18:11 +03:00
Finish 1.4.55
This commit is contained in:
commit
21e4d98484
@ -62,7 +62,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
|
|||||||
|
|
||||||
LIMEREPORT_VERSION_MAJOR = 1
|
LIMEREPORT_VERSION_MAJOR = 1
|
||||||
LIMEREPORT_VERSION_MINOR = 4
|
LIMEREPORT_VERSION_MINOR = 4
|
||||||
LIMEREPORT_VERSION_RELEASE = 54
|
LIMEREPORT_VERSION_RELEASE = 55
|
||||||
|
|
||||||
LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"'
|
LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"'
|
||||||
DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\"
|
DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\"
|
||||||
|
@ -1,9 +1,21 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <LimeReport>
|
#include <LimeReport>
|
||||||
|
#include <QTranslator>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
|
|
||||||
|
QTranslator limeReportTranslator;
|
||||||
|
QString translationPath = QApplication::applicationDirPath();
|
||||||
|
translationPath.append("/languages");
|
||||||
|
limeReportTranslator.load("limereport_"+QLocale::system().name(),translationPath);
|
||||||
|
a.installTranslator(&limeReportTranslator);
|
||||||
|
|
||||||
|
QTranslator qtTranslator;
|
||||||
|
qtTranslator.load("qt_" + QLocale::system().name(),translationPath);
|
||||||
|
a.installTranslator(&qtTranslator);
|
||||||
|
|
||||||
LimeReport::ReportEngine report;
|
LimeReport::ReportEngine report;
|
||||||
if (a.arguments().count()>1){
|
if (a.arguments().count()>1){
|
||||||
report.loadFromFile(a.arguments().at(1));
|
report.loadFromFile(a.arguments().at(1));
|
||||||
|
@ -80,7 +80,7 @@ contains(CONFIG,zint){
|
|||||||
####Automatically build required translation files (*.qm)
|
####Automatically build required translation files (*.qm)
|
||||||
|
|
||||||
contains(CONFIG,build_translations){
|
contains(CONFIG,build_translations){
|
||||||
LANGUAGES = ru es_ES ar
|
LANGUAGES = ru es_ES ar fr
|
||||||
|
|
||||||
defineReplace(prependAll) {
|
defineReplace(prependAll) {
|
||||||
for(a,$$1):result += $$2$${a}$$3
|
for(a,$$1):result += $$2$${a}$$3
|
||||||
|
2890
translations/limereport_fr.ts
Normal file
2890
translations/limereport_fr.ts
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user