mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-30 17:20:32 +01:00
2022-09-29 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the i18n system that would throw warnings when attempting to load the (non-existent) English translation. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -31,10 +31,12 @@ RDTranslator::RDTranslator(const QString &cmdname,QObject *parent)
|
||||
d_command_name=cmdname;
|
||||
|
||||
QString loc=RDApplication::locale().left(2)+".qm";
|
||||
LoadTranslation("qt_"+loc,"/usr/share/qt5/translations");
|
||||
LoadTranslation("librd_"+loc,"/usr/share/rivendell");
|
||||
LoadTranslation("rdhpi_"+loc,"/usr/share/rivendell");
|
||||
LoadTranslation(d_command_name+"_"+loc,"/usr/share/rivendell");
|
||||
if(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");
|
||||
LoadTranslation(d_command_name+"_"+loc,"/usr/share/rivendell");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user