From 0006966c0f307ec7dff51130ce26bbe3c7061418 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 21 Jul 2018 14:38:08 +0000 Subject: changed translation api git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8196 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/sndfile/decodersndfilefactory.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/plugins/Input/sndfile/decodersndfilefactory.cpp') diff --git a/src/plugins/Input/sndfile/decodersndfilefactory.cpp b/src/plugins/Input/sndfile/decodersndfilefactory.cpp index 1d4e6d382..ef733357d 100644 --- a/src/plugins/Input/sndfile/decodersndfilefactory.cpp +++ b/src/plugins/Input/sndfile/decodersndfilefactory.cpp @@ -19,7 +19,6 @@ ***************************************************************************/ #include -#include #include #include #ifdef Q_OS_WIN @@ -84,6 +83,7 @@ const DecoderProperties DecoderSndFileFactory::properties() const { DecoderProperties properties; properties.name = tr("Sndfile Plugin"); + properties.translation = QLatin1String(":/sndfile_plugin_"); properties.filters << "*.wav" << "*.au" << "*.snd" << "*.aif" << "*.aiff" << "*.8svx"; properties.filters << "*.sph" << "*.sf" << "*.voc" << "*.w64"; properties.description = tr("PCM Files"); @@ -187,18 +187,10 @@ void DecoderSndFileFactory::showSettings(QWidget *) void DecoderSndFileFactory::showAbout(QWidget *parent) { - char version [128] ; + char version [128] = { 0 }; sf_command (NULL, SFC_GET_LIB_VERSION, version, sizeof (version)) ; QMessageBox::about (parent, tr("About Sndfile Audio Plugin"), tr("Qmmp Sndfile Audio Plugin")+"\n"+ tr("Compiled against")+" "+QString(version)+"\n" + tr("Written by: Ilya Kotov ")); } - -QTranslator *DecoderSndFileFactory::createTranslator(QObject *parent) -{ - QTranslator *translator = new QTranslator(parent); - QString locale = Qmmp::systemLanguageID(); - translator->load(QString(":/sndfile_plugin_") + locale); - return translator; -} -- cgit v1.2.3-13-gbd6f