mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-30 17:20:32 +01:00
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:
@@ -26,13 +26,14 @@
|
||||
|
||||
RDTranslator *rdt=NULL;
|
||||
|
||||
RDTranslator::RDTranslator(const QString &cmdname,QObject *parent)
|
||||
RDTranslator::RDTranslator(const QString &cmdname,bool use_translations,
|
||||
QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
d_command_name=cmdname;
|
||||
|
||||
QString loc=RDApplication::locale().left(2)+".qm";
|
||||
if(loc.left(2)!="en") { // There are no English translations
|
||||
if(use_translations&&(loc.left(2)!="en")) { // There are no English translations
|
||||
LoadTranslation("qt_"+loc,"/usr/share/qt5/translations");
|
||||
LoadTranslation("librd_"+loc,"/usr/share/rivendell");
|
||||
LoadTranslation("rdhpi_"+loc,"/usr/share/rivendell");
|
||||
|
||||
Reference in New Issue
Block a user