=== modified file 'mixxx/src/defs_urls.h' --- mixxx/src/defs_urls.h 2011-05-01 05:05:13 +0000 +++ mixxx/src/defs_urls.h 2011-10-08 07:32:08 +0000 @@ -20,6 +20,7 @@ #define MIXXX_WEBSITE_URL "http://www.mixxx.org" #define MIXXX_SUPPORT_URL "http://www.mixxx.org/support.php" #define MIXXX_FEEDBACK_URL "https://spreadsheets.google.com/a/mixxx.org/spreadsheet/viewform?formkey=dDlJeS12czk3SWtkVkNRd3UtNURUUkE6MQ" +#define MIXXX_TRANSLATION_URL "https://translations.launchpad.net/mixxx/trunk/+pots/mixxx" #define MIXXX_PROMO_URL "http://promo.mixxx.org/" #endif === modified file 'mixxx/src/mixxx.cpp' --- mixxx/src/mixxx.cpp 2011-10-05 16:42:07 +0000 +++ mixxx/src/mixxx.cpp 2011-10-08 08:00:59 +0000 @@ -798,7 +798,8 @@ m_pHelpAboutApp = new QAction(tr("&About"), this); m_pHelpSupport = new QAction(tr("&Community Support"), this); m_pHelpFeedback = new QAction(tr("Send Us &Feedback"), this); - + m_pHelpTranslation = new QAction(tr("&Translate this application"), this); + #ifdef __VINYLCONTROL__ m_pOptionsVinylControl = new QAction(tr("Enable &Vinyl Control 1"), this); m_pOptionsVinylControl->setShortcut(tr("Ctrl+Y")); @@ -946,6 +947,10 @@ m_pHelpFeedback->setWhatsThis(tr("Support\n\nSend feedback to the Mixxx team.")); connect(m_pHelpFeedback, SIGNAL(triggered()), this, SLOT(slotHelpFeedback())); + m_pHelpTranslation->setStatusTip(tr("Help translate this application into your language.")); + m_pHelpTranslation->setWhatsThis(tr("Support\n\nHelp translate this application into your language.")); + connect(m_pHelpTranslation, SIGNAL(triggered()), this, SLOT(slotHelpTranslation())); + m_pHelpAboutApp->setStatusTip(tr("About the application")); m_pHelpAboutApp->setWhatsThis(tr("About\n\nAbout the application")); connect(m_pHelpAboutApp, SIGNAL(triggered()), this, SLOT(slotHelpAbout())); @@ -1008,6 +1013,7 @@ // menuBar entry helpMenu m_pHelpMenu->addAction(m_pHelpSupport); m_pHelpMenu->addAction(m_pHelpFeedback); + m_pHelpMenu->addAction(m_pHelpTranslation); m_pHelpMenu->addSeparator(); m_pHelpMenu->addAction(m_pHelpAboutApp); @@ -1367,8 +1373,7 @@ } -void MixxxApp::slotHelpSupport() -{ +void MixxxApp::slotHelpSupport() { QUrl qSupportURL; qSupportURL.setUrl(MIXXX_SUPPORT_URL); QDesktopServices::openUrl(qSupportURL); @@ -1380,6 +1385,12 @@ QDesktopServices::openUrl(qFeedbackUrl); } +void MixxxApp::slotHelpTranslation() { + QUrl qTranslationUrl; + qTranslationUrl.setUrl(MIXXX_TRANSLATION_URL); + QDesktopServices::openUrl(qTranslationUrl); +} + void MixxxApp::rebootMixxxView() { if (!m_pWidgetParent || !m_pView) === modified file 'mixxx/src/mixxx.h' --- mixxx/src/mixxx.h 2011-05-06 02:34:38 +0000 +++ mixxx/src/mixxx.h 2011-10-08 07:42:42 +0000 @@ -118,6 +118,8 @@ void slotHelpSupport(); // Visits a feedback form void slotHelpFeedback(); + // Visits translation interface on launchpad.net + void slotHelpTranslation(); /** Change of file to play */ //void slotChangePlay(int,int,int, const QPoint &); @@ -223,6 +225,7 @@ QAction *m_pHelpAboutApp; QAction *m_pHelpSupport; QAction *m_pHelpFeedback; + QAction *m_pHelpTranslation; #ifdef __SCRIPT__ QAction *macroStudio; #endif