diff --git a/etc/Translation/LameXP_DE.ts b/etc/Translation/LameXP_DE.ts
new file mode 100644
index 00000000..413c4886
--- /dev/null
+++ b/etc/Translation/LameXP_DE.ts
@@ -0,0 +1,748 @@
+
+
+
+
+ DropBox
+
+
+
+
+
+
+
+
+
+
+ LogViewDialog
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ MainWindow
+
+
+ LameXP - Audio Kodierer Oberfläche
+
+
+
+ Quell Dateien
+
+
+
+ Hinzufügen
+
+
+
+ Entfernen
+
+
+
+ Löschen
+
+
+
+ Details Anzeigen
+
+
+
+ Ziel Verzeichnis
+
+
+
+ Gehe zu Profil
+
+
+
+ Gehe zu Musik
+
+
+
+ Gehe zu Desktop
+
+
+
+ Neuer Ordner
+
+
+
+
+
+
+
+
+
+
+
+ Meta Daten
+
+
+
+ Meta Informationen
+
+
+
+ Bearbeiten
+
+
+
+
+
+
+
+ Zurücksetzen
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Kompression
+
+
+
+ Kodierer / Format
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Bitraten Steuerungsmethode
+
+
+
+ Qualitäts-basiert (VBR)
+
+
+
+ Mittlere Bitrate (ABR)
+
+
+
+ Konstante Bitrate (CBR)
+
+
+
+ Qualität / Bitrate
+
+
+
+ Minimum
+
+
+
+ Maximum
+
+
+
+ Erweiterte Optionen
+
+
+
+
+
+
+
+ Jetzt Kodieren!
+
+
+
+ Ãœber...
+
+
+
+ Programm Ende
+
+
+
+ Datei
+
+
+
+
+
+
+
+ Ansicht
+
+
+
+ Design
+
+
+
+ Extras
+
+
+
+ Konfiguration
+
+
+
+ Beenden
+
+
+
+ Datei(en) Öffnen...
+
+
+
+ Offizielle Web-Seite
+
+
+
+ Nach Updates Suchen
+
+
+
+ Verzeichnis Öffnen...
+
+
+
+ Alle Löschen
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Windows Klassisch
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Sprache
+
+
+
+
+
+
+
+ Sie können hier Audio-Dateien per Drag&Drop einfügen!
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ MetaInfo
+
+
+
+
+
+
+
+
+
+
+ Bearbeiten
+
+
+
+
+
+
+
+ ProcessingDialog
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SplashScreen
+
+
+
+
+
+
+ UpdateDialog
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WorkingBanner
+
+
+
+
+
+
+
+
+
+
diff --git a/etc/Translation/release.bat b/etc/Translation/release.bat
new file mode 100644
index 00000000..df69e5e6
--- /dev/null
+++ b/etc/Translation/release.bat
@@ -0,0 +1,11 @@
+@echo off
+REM ---------------------------
+set "QTVARS=E:\Qt\MSVC\4.7.1\bin\qtvars.bat"
+REM ---------------------------
+call "%QTVARS%"
+REM ---------------------------
+for %%f in (*.ts) do (
+ lrelease.exe %%f -qm ..\..\res\localization\%%~nf.qm
+)
+REM ---------------------------
+pause
diff --git a/etc/Translation/update.bat b/etc/Translation/update.bat
index 296d582f..8b5ffba8 100644
--- a/etc/Translation/update.bat
+++ b/etc/Translation/update.bat
@@ -19,7 +19,7 @@ for %%f in (..\..\src\*.cpp) do (
)
REM ---------------------------
for %%f in (*.ts) do (
- lupdate.exe @update.lst -ts %%f
+ lupdate.exe @update.lst -no-obsolete -ts %%f
)
REM ---------------------------
pause
diff --git a/gui/MainWindow.ui b/gui/MainWindow.ui
index 9d00b934..5cde6690 100644
--- a/gui/MainWindow.ui
+++ b/gui/MainWindow.ui
@@ -286,7 +286,7 @@
QFrame::Plain
- ($OUTDIR)
+ ($OUTDIR)
@@ -877,7 +877,7 @@
- (VALUE)
+ (VALUE)Qt::RichText
@@ -1459,7 +1459,7 @@
true
- English
+ English
@@ -1571,6 +1571,12 @@
+
+
+
+
+
+
diff --git a/res/Localization.qrc b/res/Localization.qrc
index fc2fb2d6..80bd0f3c 100644
--- a/res/Localization.qrc
+++ b/res/Localization.qrc
@@ -3,9 +3,11 @@
localization/LameXP_DE.qmlocalization/LameXP_DE.qm.txt
- localization/LameXP_FR.qm
- localization/LameXP_FR.qm.txt
- localization/LameXP_IT.qm
- localization/LameXP_IT.qm.txt
+
diff --git a/res/localization/LameXP_DE.qm b/res/localization/LameXP_DE.qm
index 4afdc657..741f4828 100644
Binary files a/res/localization/LameXP_DE.qm and b/res/localization/LameXP_DE.qm differ
diff --git a/res/localization/LameXP_DE.qm.txt b/res/localization/LameXP_DE.qm.txt
index 176e5370..857b14c9 100644
--- a/res/localization/LameXP_DE.qm.txt
+++ b/res/localization/LameXP_DE.qm.txt
@@ -1 +1 @@
-Deutsch
\ No newline at end of file
+Deutsch
\ No newline at end of file
diff --git a/src/Config.h b/src/Config.h
index f9d978ff..babdd3af 100644
--- a/src/Config.h
+++ b/src/Config.h
@@ -25,7 +25,7 @@
#define VER_LAMEXP_MAJOR 4
#define VER_LAMEXP_MINOR_HI 0
#define VER_LAMEXP_MINOR_LO 0
-#define VER_LAMEXP_BUILD 193
+#define VER_LAMEXP_BUILD 197
#define VER_LAMEXP_SUFFIX TechPreview
/*
diff --git a/src/Dialog_MainWindow.cpp b/src/Dialog_MainWindow.cpp
index 9edbd97e..8945ad23 100644
--- a/src/Dialog_MainWindow.cpp
+++ b/src/Dialog_MainWindow.cpp
@@ -82,16 +82,6 @@ private:
int m_index;
};
-//Helper class
-class Tag: public QObjectUserData
-{
-public:
- Tag(const QString &text) : m_text(text) {}
- QString text(void) { return m_text; }
-private:
- const QString m_text;
-};
-
////////////////////////////////////////////////////////////
// Constructor
////////////////////////////////////////////////////////////
@@ -100,7 +90,6 @@ MainWindow::MainWindow(FileListModel *fileListModel, AudioFileModel *metaInfo, S
:
QMainWindow(parent),
m_fileListModel(fileListModel),
- m_currentTranslator(new QTranslator),
m_metaData(metaInfo),
m_settings(settingsModel),
m_accepted(false),
@@ -113,12 +102,6 @@ MainWindow::MainWindow(FileListModel *fileListModel, AudioFileModel *metaInfo, S
//Register meta types
qRegisterMetaType("AudioFileModel");
- //Update window title
- if(lamexp_version_demo())
- {
- setWindowTitle(windowTitle().append(" [DEMO VERSION]"));
- }
-
//Enabled main buttons
connect(buttonAbout, SIGNAL(clicked()), this, SLOT(aboutButtonClicked()));
connect(buttonStart, SIGNAL(clicked()), this, SLOT(encodeButtonClicked()));
@@ -135,14 +118,13 @@ MainWindow::MainWindow(FileListModel *fileListModel, AudioFileModel *metaInfo, S
sourceFileView->setContextMenuPolicy(Qt::CustomContextMenu);
m_dropNoteLabel = new QLabel(sourceFileView);
m_dropNoteLabel->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
- m_dropNoteLabel->setText("» You can drop in audio files here! «");
SET_FONT_BOLD(m_dropNoteLabel, true);
SET_TEXT_COLOR(m_dropNoteLabel, Qt::darkGray);
m_sourceFilesContextMenu = new QMenu();
- QAction *showDetailsContextAction = m_sourceFilesContextMenu->addAction(QIcon(":/icons/zoom.png"), "Show Details");
- QAction *previewContextAction = m_sourceFilesContextMenu->addAction(QIcon(":/icons/sound.png"), "Open File in External Application");
- QAction *findFileContextAction = m_sourceFilesContextMenu->addAction(QIcon(":/icons/folder_go.png"), "Browse File Location");
- SET_FONT_BOLD(showDetailsContextAction, true);
+ m_showDetailsContextAction = m_sourceFilesContextMenu->addAction(QIcon(":/icons/zoom.png"), "N/A");
+ m_previewContextAction = m_sourceFilesContextMenu->addAction(QIcon(":/icons/sound.png"), "N/A");
+ m_findFileContextAction = m_sourceFilesContextMenu->addAction(QIcon(":/icons/folder_go.png"), "N/A");
+ SET_FONT_BOLD(m_showDetailsContextAction, true);
connect(buttonAddFiles, SIGNAL(clicked()), this, SLOT(addFilesButtonClicked()));
connect(buttonRemoveFile, SIGNAL(clicked()), this, SLOT(removeFileButtonClicked()));
connect(buttonClearFiles, SIGNAL(clicked()), this, SLOT(clearFilesButtonClicked()));
@@ -153,9 +135,9 @@ MainWindow::MainWindow(FileListModel *fileListModel, AudioFileModel *metaInfo, S
connect(m_fileListModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(sourceModelChanged()));
connect(m_fileListModel, SIGNAL(modelReset()), this, SLOT(sourceModelChanged()));
connect(sourceFileView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(sourceFilesContextMenu(QPoint)));
- connect(showDetailsContextAction, SIGNAL(triggered(bool)), this, SLOT(showDetailsButtonClicked()));
- connect(previewContextAction, SIGNAL(triggered(bool)), this, SLOT(previewContextActionTriggered()));
- connect(findFileContextAction, SIGNAL(triggered(bool)), this, SLOT(findFileContextActionTriggered()));
+ connect(m_showDetailsContextAction, SIGNAL(triggered(bool)), this, SLOT(showDetailsButtonClicked()));
+ connect(m_previewContextAction, SIGNAL(triggered(bool)), this, SLOT(previewContextActionTriggered()));
+ connect(m_findFileContextAction, SIGNAL(triggered(bool)), this, SLOT(findFileContextActionTriggered()));
//Setup "Output" tab
m_fileSystemModel = new QFileSystemModelEx();
@@ -185,9 +167,9 @@ MainWindow::MainWindow(FileListModel *fileListModel, AudioFileModel *metaInfo, S
connect(saveToSourceFolderCheckBox, SIGNAL(clicked()), this, SLOT(saveToSourceFolderChanged()));
connect(prependRelativePathCheckBox, SIGNAL(clicked()), this, SLOT(prependRelativePathChanged()));
m_outputFolderContextMenu = new QMenu();
- QAction *showFolderContextAction = m_outputFolderContextMenu->addAction(QIcon(":/icons/zoom.png"), "Browse Selected Folder");
+ m_showFolderContextAction = m_outputFolderContextMenu->addAction(QIcon(":/icons/zoom.png"), "N/A");
connect(outputFolderView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(outputFolderContextMenu(QPoint)));
- connect(showFolderContextAction, SIGNAL(triggered(bool)), this, SLOT(showFolderContextActionTriggered()));
+ connect(m_showFolderContextAction, SIGNAL(triggered(bool)), this, SLOT(showFolderContextActionTriggered()));
outputFolderLabel->installEventFilter(this);
//Setup "Meta Data" tab
@@ -268,19 +250,23 @@ MainWindow::MainWindow(FileListModel *fileListModel, AudioFileModel *metaInfo, S
//Populate the language menu
m_languageActionGroup = new QActionGroup(this);
m_languageActionGroup->addAction(actionLanguageEnglish);
- QStringList translations = QDir(":/localization").entryList(QStringList() << "*.qm", QDir::Files, QDir::Name);
- for(int i = 0; i < translations.count(); i++)
+ actionLanguageEnglish->setChecked(true);
+ connect(m_languageActionGroup, SIGNAL(triggered(QAction*)), this, SLOT(languageActionActivated(QAction*)));
+ QStringList translations = lamexp_query_translations();
+ while(translations.count() > 0)
{
QAction *currentLanguage = new QAction(this);
currentLanguage->setCheckable(true);
- currentLanguage->setText(QString::fromUtf8(reinterpret_cast(QResource(QString(":/localization/%1.txt").arg(translations.at(i))).data())));
- currentLanguage->setUserData(0, new Tag(translations.at(i)));
+ currentLanguage->setText(translations.takeFirst());
m_languageActionGroup->addAction(currentLanguage);
menuLanguage->addAction(currentLanguage);
+ if(currentLanguage->text().compare(m_settings->currentLanguage(), Qt::CaseInsensitive) == 0)
+ {
+ currentLanguage->setChecked(true);
+ languageActionActivated(currentLanguage);
+ }
}
- connect(m_languageActionGroup, SIGNAL(triggered(QAction*)), this, SLOT(languageActionActivated(QAction*)));
- actionLanguageEnglish->setChecked(true);
-
+
//Activate tools menu actions
actionDisableUpdateReminder->setChecked(!m_settings->autoUpdateEnabled());
actionDisableSounds->setChecked(!m_settings->soundsEnabled());
@@ -324,6 +310,9 @@ MainWindow::MainWindow(FileListModel *fileListModel, AudioFileModel *metaInfo, S
//Enable Drag & Drop
this->setAcceptDrops(true);
+
+ //Finally re-translate the UI
+ retranslateUi(this);
}
////////////////////////////////////////////////////////////
@@ -346,9 +335,6 @@ MainWindow::~MainWindow(void)
//Unset models
sourceFileView->setModel(NULL);
metaDataView->setModel(NULL);
-
- //Uninstall translator
- QApplication::removeTranslator(m_currentTranslator);
//Free memory
LAMEXP_DELETE(m_tabActionGroup);
@@ -364,13 +350,32 @@ MainWindow::~MainWindow(void)
LAMEXP_DELETE(m_encoderButtonGroup);
LAMEXP_DELETE(m_sourceFilesContextMenu);
LAMEXP_DELETE(m_dropBox);
- LAMEXP_DELETE(m_currentTranslator);
+
}
////////////////////////////////////////////////////////////
// PRIVATE FUNCTIONS
////////////////////////////////////////////////////////////
+/*
+ * Re-translate the UI
+ */
+void MainWindow::retranslateUi(QMainWindow *MainWindow)
+{
+ Ui::MainWindow::retranslateUi(MainWindow);
+
+ if(lamexp_version_demo())
+ {
+ setWindowTitle(QString("%1 [%2]").arg(windowTitle(), tr("DEMO VERSION")));
+ }
+
+ m_dropNoteLabel->setText(QString("» %1 «").arg(tr("You can drop in audio files here!")));
+ m_showDetailsContextAction->setText(tr("Show Details"));
+ m_previewContextAction->setText(tr("Open File in External Application"));
+ m_findFileContextAction->setText(tr("Browse File Location"));
+ m_showFolderContextAction->setText(tr("Browse Selected Folder"));
+}
+
/*
* Add file to source list
*/
@@ -387,15 +392,15 @@ void MainWindow::addFiles(const QStringList &files)
connect(analyzer, SIGNAL(fileSelected(QString)), m_banner, SLOT(setText(QString)), Qt::QueuedConnection);
connect(analyzer, SIGNAL(fileAnalyzed(AudioFileModel)), m_fileListModel, SLOT(addFile(AudioFileModel)), Qt::QueuedConnection);
- m_banner->show("Adding file(s), please wait...", analyzer);
+ m_banner->show(tr("Adding file(s), please wait..."), analyzer);
if(analyzer->filesDenied())
{
- QMessageBox::warning(this, "Access Denied", QString("%1 file(s) have been rejected, because read access was not granted! This usually means the file is locked by another process.").arg(analyzer->filesDenied()));
+ QMessageBox::warning(this, tr("Access Denied"), tr("%1 file(s) have been rejected, because read access was not granted! This usually means the file is locked by another process.").arg(analyzer->filesDenied()));
}
if(analyzer->filesRejected())
{
- QMessageBox::warning(this, "Files Rejected", QString("%1 file(s) have been rejected, because the file format could not be recognized! This usually means the file is damaged or the file format is not supported.").arg(analyzer->filesRejected()));
+ QMessageBox::warning(this, tr("Files Rejected"), tr("%1 file(s) have been rejected, because the file format could not be recognized! This usually means the file is damaged or the file format is not supported.").arg(analyzer->filesRejected()));
}
LAMEXP_DELETE(analyzer);
@@ -526,11 +531,9 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event)
}
break;
case QEvent::Enter:
- qDebug("QEvent::HoverEnter");
outputFolderLabel->setForegroundRole(QPalette::Link);
break;
case QEvent::Leave:
- qDebug("QEvent::HoverLeave");
outputFolderLabel->setForegroundRole(QPalette::WindowText);
break;
}
@@ -566,7 +569,7 @@ void MainWindow::windowShown(void)
m_settings->licenseAccepted(-1);
QApplication::processEvents();
PlaySound(MAKEINTRESOURCE(IDR_WAVE_WHAMMY), GetModuleHandle(NULL), SND_RESOURCE | SND_SYNC);
- QMessageBox::critical(this, "License Declined", "You have declined the license. Consequently the application will exit now!", "Goodbye!");
+ QMessageBox::critical(this, tr("License Declined"), tr("You have declined the license. Consequently the application will exit now!"), tr("Goodbye!"));
QProcess::startDetached(QString("%1/Uninstall.exe").arg(QApplication::applicationDirPath()), QStringList());
QApplication::quit();
return;
@@ -584,7 +587,7 @@ void MainWindow::windowShown(void)
{
qWarning("Binary has expired !!!");
PlaySound(MAKEINTRESOURCE(IDR_WAVE_WHAMMY), GetModuleHandle(NULL), SND_RESOURCE | SND_SYNC);
- if(QMessageBox::warning(this, "LameXP - Expired", QString("This demo (pre-release) version of LameXP has expired at %1.\nLameXP is free software and release versions won't expire.").arg(expireDate.toString(Qt::ISODate)), "Check for Updates", "Exit Program") == 0)
+ if(QMessageBox::warning(this, tr("LameXP - Expired"), tr("This demo (pre-release) version of LameXP has expired at %1.\nLameXP is free software and release versions won't expire.").arg(expireDate.toString(Qt::ISODate)), tr("Check for Updates"), tr("Exit Program")) == 0)
{
checkUpdatesActionActivated();
}
@@ -597,7 +600,7 @@ void MainWindow::windowShown(void)
if(QDate::currentDate() >= lamexp_version_date().addYears(1))
{
qWarning("Binary is more than a year old, time to update!");
- if(QMessageBox::warning(this, "Urgent Update", "Your version of LameXP is more than a year old. Time for an update!", "Check for Updates", "Exit Program") == 0)
+ if(QMessageBox::warning(this, tr("Urgent Update"), tr("Your version of LameXP is more than a year old. Time for an update!"), tr("Check for Updates"), tr("Exit Program")) == 0)
{
checkUpdatesActionActivated();
}
@@ -612,7 +615,7 @@ void MainWindow::windowShown(void)
QDate lastUpdateCheck = QDate::fromString(m_settings->autoUpdateLastCheck(), Qt::ISODate);
if(!lastUpdateCheck.isValid() || QDate::currentDate() >= lastUpdateCheck.addDays(14))
{
- if(QMessageBox::information(this, "Update Reminer", (lastUpdateCheck.isValid() ? "Your last update check was more than 14 days ago. Check for updates now?" : "Your did not check for LameXP updates yet. Check for updates now?"), "Check for Updates", "Postpone") == 0)
+ if(QMessageBox::information(this, tr("Update Reminer"), (lastUpdateCheck.isValid() ? tr("Your last update check was more than 14 days ago. Check for updates now?") : tr("Your did not check for LameXP updates yet. Check for updates now?")), tr("Check for Updates"), tr("Postpone")) == 0)
{
checkUpdatesActionActivated();
}
@@ -627,24 +630,24 @@ void MainWindow::windowShown(void)
if(lamexp_tool_version("neroAacEnc.exe") < lamexp_toolver_neroaac())
{
QString messageText;
- messageText += "LameXP detected that your version of the Nero AAC encoder is outdated! ";
- messageText += "The current version available is " + lamexp_version2string("?.?.?.?", lamexp_toolver_neroaac()) + " (or later), but you still have version " + lamexp_version2string("?.?.?.?", lamexp_tool_version("neroAacEnc.exe")) + " installed.
";
- messageText += "You can download the latest version of the Nero AAC encoder from the Nero website at: ";
+ messageText += tr("LameXP detected that your version of the Nero AAC encoder is outdated! ");
+ messageText += tr("The current version available is %1 (or later), but you still have version %2 installed.
").arg(lamexp_version2string("?.?.?.?", lamexp_toolver_neroaac()), lamexp_version2string("?.?.?.?", lamexp_tool_version("neroAacEnc.exe")));
+ messageText += tr("You can download the latest version of the Nero AAC encoder from the Nero website at: ");
messageText += "" + LINK(AboutDialog::neroAacUrl) + " ";
- QMessageBox::information(this, "AAC Encoder Outdated", messageText);
+ QMessageBox::information(this, tr("AAC Encoder Outdated"), messageText);
}
}
else
{
radioButtonEncoderAAC->setEnabled(false);
QString messageText;
- messageText += "The Nero AAC encoder could not be found. AAC encoding support will be disabled. ";
- messageText += "Please put 'neroAacEnc.exe', 'neroAacDec.exe' and 'neroAacTag.exe' into the LameXP directory!
";
- messageText += "Your LameXP directory is located here: ";
+ messageText += tr("The Nero AAC encoder could not be found. AAC encoding support will be disabled. ");
+ messageText += tr("Please put 'neroAacEnc.exe', 'neroAacDec.exe' and 'neroAacTag.exe' into the LameXP directory!
");
+ messageText += tr("Your LameXP directory is located here: ");
messageText += QString("%1
").arg(QDir::toNativeSeparators(QCoreApplication::applicationDirPath()));
- messageText += "You can download the Nero AAC encoder for free from the official Nero website at: ";
+ messageText += tr("You can download the Nero AAC encoder for free from the official Nero website at: ");
messageText += "" + LINK(AboutDialog::neroAacUrl) + " ";
- QMessageBox::information(this, "AAC Support Disabled", messageText);
+ QMessageBox::information(this, tr("AAC Support Disabled"), messageText);
}
}
@@ -654,9 +657,9 @@ void MainWindow::windowShown(void)
if(!lamexp_check_tool("wmawav.exe"))
{
QString messageText;
- messageText += "LameXP has detected that the WMA File Decoder component is not currently installed on your system. ";
- messageText += "You won't be able to process WMA files as input unless the WMA File Decoder component is installed!";
- QMessageBox::information(this, "WMA Decoder Missing", messageText);
+ messageText += tr("LameXP has detected that the WMA File Decoder component is not currently installed on your system. ");
+ messageText += tr("You won't be able to process WMA files as input unless the WMA File Decoder component is installed!");
+ QMessageBox::information(this, tr("WMA Decoder Missing"), messageText);
installWMADecoderActionTriggered(rand() % 2);
}
}
@@ -710,7 +713,7 @@ void MainWindow::encodeButtonClicked(void)
if(m_fileListModel->rowCount() < 1)
{
- QMessageBox::warning(this, "LameXP", "You must add at least one file to the list before proceeding!");
+ QMessageBox::warning(this, tr("LameXP"), tr("You must add at least one file to the list before proceeding!"));
tabWidget->setCurrentIndex(0);
return;
}
@@ -722,7 +725,7 @@ void MainWindow::encodeButtonClicked(void)
QStringList tempFolderParts = lamexp_temp_folder().split("/", QString::SkipEmptyParts, Qt::CaseInsensitive);
tempFolderParts.takeLast();
if(m_settings->soundsEnabled()) PlaySound(MAKEINTRESOURCE(IDR_WAVE_WHAMMY), GetModuleHandle(NULL), SND_RESOURCE | SND_SYNC);
- switch(QMessageBox::warning(this, "Low Diskspace Warning", QString("There are less than %1 GB of free diskspace available on your system's TEMP folder. It is highly recommend to free up more diskspace before proceeding with the encode!.
Your TEMP folder is located at: %3 ").arg(QString::number(minimumFreeDiskspaceMultiplier), tempFolderParts.join("\\")), "Abort Encoding Process", "Clean Disk Now", "Ignore"))
+ switch(QMessageBox::warning(this, tr("Low Diskspace Warning"), tr("There are less than %1 GB of free diskspace available on your system's TEMP folder. It is highly recommend to free up more diskspace before proceeding with the encode!
Your TEMP folder is located at:").append(" %3 ").arg(QString::number(minimumFreeDiskspaceMultiplier), tempFolderParts.join("\\")), tr("Abort Encoding Process"), tr("Clean Disk Now"), tr("Ignore")))
{
case 1:
QProcess::startDetached(QString("%1/cleanmgr.exe").arg(lamexp_known_folder(lamexp_folder_systemfolder)), QStringList() << "/D" << tempFolderParts.first());
@@ -730,7 +733,7 @@ void MainWindow::encodeButtonClicked(void)
return;
break;
default:
- QMessageBox::warning(this, "Low Diskspace", "You are proceeding with low diskspace. Problems might occur!");
+ QMessageBox::warning(this, tr("Low Diskspace"), tr("You are proceeding with low diskspace. Problems might occur!"));
break;
}
}
@@ -744,7 +747,7 @@ void MainWindow::encodeButtonClicked(void)
case SettingsModel::PCMEncoder:
break;
default:
- QMessageBox::warning(this, "LameXP", "Sorry, an unsupported encoder has been chosen!");
+ QMessageBox::warning(this, tr("LameXP"), tr("Sorry, an unsupported encoder has been chosen!"));
tabWidget->setCurrentIndex(3);
return;
}
@@ -754,7 +757,7 @@ void MainWindow::encodeButtonClicked(void)
QFile writeTest(QString("%1/~%2.txt").arg(m_settings->outputDir(), QUuid::createUuid().toString()));
if(!writeTest.open(QIODevice::ReadWrite))
{
- QMessageBox::warning(this, "LameXP", QString("Cannot write to the selected output directory. %1
Please choose a different directory!").arg(m_settings->outputDir()));
+ QMessageBox::warning(this, tr("LameXP"), tr("Cannot write to the selected output directory. %1
Drive is read-only or insufficient access rights!").arg(basePath.absoluteFilePath(newFolder)));
+ QMessageBox::warning(this, tr("Failed to create folder"), tr("The new folder could not be created: %1