diff --git a/src/libtomahawk/ActionCollection.cpp b/src/libtomahawk/ActionCollection.cpp index 79ea8aca9..31e0ce1d0 100644 --- a/src/libtomahawk/ActionCollection.cpp +++ b/src/libtomahawk/ActionCollection.cpp @@ -145,6 +145,7 @@ ActionCollection::initActions() m_actionCollection[ "whatsnew_0_8" ]->setMenuRole( QAction::ApplicationSpecificRole ); m_actionCollection[ "reportBug" ] = new QAction( tr( "Report a Bug" ) , this ); m_actionCollection[ "getSupport" ] = new QAction( tr( "Get Support" ) , this ); + m_actionCollection[ "helpTranslate" ] = new QAction( tr( "Help Us Translate" ) , this ); } @@ -183,6 +184,7 @@ ActionCollection::createMenuBar( QWidget *parent ) helpMenu->addAction( m_actionCollection[ "legalInfo" ] ); helpMenu->addAction( m_actionCollection["getSupport"] ); helpMenu->addAction( m_actionCollection["reportBug"] ); + helpMenu->addAction( m_actionCollection["helpTranslate"] ); helpMenu->addSeparator(); QMenu* whatsNew = helpMenu->addMenu( ImageRegistry::instance()->icon( RESPATH "images/whatsnew.svg" ), tr( "What's new in ..." ) ); whatsNew->setFont( TomahawkUtils::systemFont() ); @@ -277,6 +279,7 @@ ActionCollection::createCompactMenu( QWidget *parent ) compactMenu->addSeparator(); compactMenu->addAction( m_actionCollection["getSupport"] ); compactMenu->addAction( m_actionCollection["reportBug"] ); + compactMenu->addAction( m_actionCollection["helpTranslate"] ); compactMenu->addSeparator(); compactMenu->addAction( m_actionCollection[ "quit" ] ); diff --git a/src/tomahawk/TomahawkWindow.cpp b/src/tomahawk/TomahawkWindow.cpp index 71ae09cd3..fa74ddd07 100644 --- a/src/tomahawk/TomahawkWindow.cpp +++ b/src/tomahawk/TomahawkWindow.cpp @@ -656,6 +656,7 @@ TomahawkWindow::setupSignals() connect( ac->getAction( "legalInfo" ), SIGNAL( triggered() ), SLOT( legalInfo() ) ); connect( ac->getAction( "reportBug" ), SIGNAL( triggered() ), SLOT( reportBug() ) ); connect( ac->getAction( "getSupport" ), SIGNAL( triggered() ), SLOT( getSupport() ) ); + connect( ac->getAction( "helpTranslate" ), SIGNAL( triggered() ), SLOT( helpTranslate() ) ); connect( ac->getAction( "openLogfile" ), SIGNAL( triggered() ), SLOT( openLogfile() ) ); connect( ac->getAction( "updateCollection" ), SIGNAL( triggered() ), SLOT( updateCollectionManually() ) ); connect( ac->getAction( "rescanCollection" ), SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) ); @@ -1032,6 +1033,12 @@ TomahawkWindow::reportBug() QDesktopServices::openUrl( QUrl( "https://bugs.tomahawk-player.org" ) ); } +void +TomahawkWindow::helpTranslate() +{ + QDesktopServices::openUrl( QUrl( "https://www.transifex.com/projects/p/tomahawk/" ) ); +} + void TomahawkWindow::openLogfile() { diff --git a/src/tomahawk/TomahawkWindow.h b/src/tomahawk/TomahawkWindow.h index 006a7f663..c98a6057d 100644 --- a/src/tomahawk/TomahawkWindow.h +++ b/src/tomahawk/TomahawkWindow.h @@ -102,6 +102,7 @@ public slots: void showDiagnosticsDialog(); void legalInfo(); void getSupport(); + void helpTranslate(); void reportBug(); void openLogfile(); void updateCollectionManually();