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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -35,7 +35,7 @@ MainWidget::MainWidget(QWidget *parent)
// Open the database
//
rda=new RDApplication("meterstrip_test","meterstrip_test",METERSTRIP_TEST_USAGE,
this);
false,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"meterstrip_test - "+tr("Error"),err_msg);
exit(RDApplication::ExitNoDb);

View File

@@ -29,7 +29,8 @@ MainObject::MainObject(QObject *parent)
{
QString err_msg;
rda=new RDApplication("notification_test","notification_test",NOTIFICATION_TEST_USAGE,this);
rda=new RDApplication("notification_test","notification_test",
NOTIFICATION_TEST_USAGE,false,this);
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"notification_test: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@@ -41,7 +41,7 @@ MainObject::MainObject(QObject *parent)
rda=static_cast<RDApplication *>(new RDCoreApplication("timeengine_test",
"timeengine_test",
TIMEENGINE_TEST_USAGE,
this));
false,this));
if(!rda->open(&err_msg,&err_type,false)) {
fprintf(stderr,"timeengine_test: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

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

View File

@@ -42,8 +42,8 @@ MainWidget::MainWidget(QWidget *parent)
//
// Open the database
//
rda=new RDApplication("wavefactory_test","wavefactory_test",WAVEFACTORY_TEST_USAGE,
this);
rda=new RDApplication("wavefactory_test","wavefactory_test",
WAVEFACTORY_TEST_USAGE,false,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"wavefactory_test - "+tr("Error"),err_msg);
exit(RDApplication::ExitNoDb);

View File

@@ -42,7 +42,7 @@ MainWidget::MainWidget(QWidget *parent)
// Open the database
//
rda=new RDApplication("wavescene_test","wavescene_test",WAVESCENE_TEST_USAGE,
this);
false,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"wavescene_test - "+tr("Error"),err_msg);
exit(RDApplication::ExitNoDb);

View File

@@ -41,7 +41,7 @@ MainWidget::MainWidget(QWidget *parent)
// Open the database
//
rda=new RDApplication("wavewidget_test","wavewidget_test",WAVEWIDGET_TEST_USAGE,
this);
false,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"wavewidget_test - "+tr("Error"),err_msg);
exit(RDApplication::ExitNoDb);