2023-06-01 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug that would cause 'failed to load translation file'
	warnings to be sent to the Apache error log.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-06-01 15:48:34 -04:00
parent ef6165184e
commit 210bb8bca7
59 changed files with 105 additions and 65 deletions

View File

@@ -82,7 +82,8 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
// Open the Database
//
rda=new RDApplication("RDAlsaConfig","rdalsaconfig",RDALSACONFIG_USAGE,this);
rda=new RDApplication("RDAlsaConfig","rdalsaconfig",RDALSACONFIG_USAGE,false,
this);
if(!rda->open(&err_msg,NULL,false)) {
QMessageBox::critical(this,"RDAlsaConfig - "+tr("Error"),err_msg);
exit(1);
@@ -362,7 +363,8 @@ Autogen::Autogen()
//
// Open the Database
//
rda=new RDApplication("RDAlsaConfig","rdalsaconfig",RDALSACONFIG_USAGE,this);
rda=new RDApplication("RDAlsaConfig","rdalsaconfig",RDALSACONFIG_USAGE,
false,this);
if(!rda->open(&err_msg,NULL,false)) {
fprintf(stderr,"rdalsaconfig: unable to open database [%s]\n",
(const char *)err_msg.toUtf8());

View File

@@ -42,7 +42,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdcheckcuts","rdcheckcuts",RDCHECKCUTS_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdcheckcuts",
"rdcheckcuts",RDCHECKCUTS_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdcheckcuts: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@@ -48,7 +48,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdclilogedit","rdclilogedit",RDCLILOGEDIT_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdclilogedit",
"rdclilogedit",RDCLILOGEDIT_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdclilogedit: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@@ -42,7 +42,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdconvert","rdconvert",RDCONVERT_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdconvert","rdconvert",
RDCONVERT_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdconvert: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@@ -43,7 +43,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rddelete","rddelete",RDDELETE_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rddelete","rddelete",
RDDELETE_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rddelete: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@@ -56,7 +56,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdexport","rdexport",RDEXPORT_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdexport","rdexport",
RDEXPORT_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdexport: %s\n",(const char *)err_msg.toUtf8());
exit(1);

View File

@@ -38,7 +38,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
// Open the Database
//
rda=new RDApplication("RDGpiMon","rdgpimon",RDGPIMON_USAGE,this);
rda=new RDApplication("RDGpiMon","rdgpimon",RDGPIMON_USAGE,true,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"RDGpiMon - "+tr("Error"),err_msg);
exit(1);

View File

@@ -108,7 +108,7 @@ MainObject::MainObject(QObject *parent)
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdimport","rdimport",
RDIMPORT_USAGE,this));
RDIMPORT_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdimport: %s\n",err_msg.toUtf8().constData());
ErrorExit(RDApplication::ExitNoDb);

View File

@@ -57,7 +57,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmaint","rdmaint",RDMAINT_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmaint","rdmaint",
RDMAINT_USAGE,false,this));
if(!rda->open(&err_msg,NULL,false)) {
fprintf(stderr,"rdmaint: %s\n",err_msg.toUtf8().constData());
rda->syslog(LOG_ERR,"%s",err_msg.toUtf8().constData());

View File

@@ -57,7 +57,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmarkerset","rdmarkerset",RDMARKERSET_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmarkerset",
"rdmarkerset",RDMARKERSET_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdmarkerset: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@@ -49,7 +49,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmetadata","rdmetadata",RDMETADATA_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmetadata",
"rdmetadata",RDMETADATA_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdmetadata: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@@ -67,7 +67,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdrender","rdrender",RDRENDER_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdrender","rdrender",
RDRENDER_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdrender: %s\n",(const char *)err_msg.toUtf8());
exit(1);