<translation type="unfinished"></translation>
</message>
<message>
- <source><b>LameXP DropBox</b><br><nobr>You can add files to LameXP via Drag&amp;Drop here!</nobr><br><nobr>(Right-click to close the DropBox)</nobr></source>
+ <source>LameXP DropBox</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <source>You can add files to LameXP via Drag&amp;Drop here!</source>
+ <translation type="unfinished">Sie könner hier Dateien per Drag&amp;Drop hinzufügen!</translation>
+ </message>
+ <message>
+ <source>(Right-click to close the DropBox)</source>
+ <translation type="unfinished">(Rechts-klicken um die DropBox zu schließen)</translation>
+ </message>
</context>
<context>
<name>LogViewDialog</name>
</message>
<message>
<source>You can drop in audio files here!</source>
- <translation type="unfinished">Sie können hier Audio-Dateien per Drag&Drop einfügen!</translation>
+ <translation type="unfinished">Sie können hier Audio-Dateien hinein ziehen!</translation>
</message>
<message>
<source>Open File in External Application</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source><nobr>LameXP detected that your version of the Nero AAC encoder is outdated!<br></source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>The current version available is %1 (or later), but you still have version %2 installed.<br><br></source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>You can download the latest version of the Nero AAC encoder from the Nero website at:<br></source>
- <translation type="unfinished"></translation>
- </message>
- <message>
<source>AAC Encoder Outdated</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source><nobr>The Nero AAC encoder could not be found. AAC encoding support will be disabled.<br></source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Please put 'neroAacEnc.exe', 'neroAacDec.exe' and 'neroAacTag.exe' into the LameXP directory!<br><br></source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Your LameXP directory is located here:<br></source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>You can download the Nero AAC encoder for free from the official Nero website at:<br></source>
- <translation type="unfinished"></translation>
- </message>
- <message>
<source>AAC Support Disabled</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source><nobr>LameXP has detected that the WMA File Decoder component is not currently installed on your system.<br></source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>You won't be able to process WMA files as input unless the WMA File Decoder component is installed!</nobr></source>
- <translation type="unfinished"></translation>
- </message>
- <message>
<source>WMA Decoder Missing</source>
<translation type="unfinished"></translation>
</message>
<translation type="unfinished"></translation>
</message>
<message>
- <source><nobr>There are less than %1 GB of free diskspace available on your system's TEMP folder.</nobr><br><nobr>It is highly recommend to free up more diskspace before proceeding with the encode!</nobr><br><br>Your TEMP folder is located at:</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
<source>Abort Encoding Process</source>
<translation type="unfinished"></translation>
</message>
<translation type="unfinished"></translation>
</message>
<message>
- <source>Cannot write to the selected output directory.<br><nobr>%1</nobr><br><br>Please choose a different directory!</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
<source>Add file(s)</source>
<translation type="unfinished"></translation>
</message>
<translation type="unfinished"></translation>
</message>
<message>
- <source>The new folder could not be created:<br><nobr>%1</nobr><br><br>Drive is read-only or insufficient access rights!</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
<source>Already running</source>
<translation type="unfinished"></translation>
</message>
<translation type="unfinished"></translation>
</message>
<message>
- <source>The update reminder has been disabled.<br>Please remember to check for updates at regular intervals!</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
<source>The update reminder has been re-enabled.</source>
<translation type="unfinished"></translation>
</message>
<translation type="unfinished"></translation>
</message>
<message>
- <source><nobr>%1 file(s) have been rejected, because read access was not granted!<br>This usually means the file is locked by another process.</nobr></source>
+ <source>Files Rejected</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source>Files Rejected</source>
+ <source>LameXP detected that your version of the Nero AAC encoder is outdated!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>The current version available is %1 (or later), but you still have version %2 installed.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>You can download the latest version of the Nero AAC encoder from the Nero website at:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>The Nero AAC encoder could not be found. AAC encoding support will be disabled.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Please put 'neroAacEnc.exe', 'neroAacDec.exe' and 'neroAacTag.exe' into the LameXP directory!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Your LameXP directory is located here:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>You can download the Nero AAC encoder for free from the official Nero website at:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>LameXP has detected that the WMA File Decoder component is not currently installed on your system.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>You won't be able to process WMA files as input unless the WMA File Decoder component is installed!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Cannot write to the selected output directory.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Please choose a different directory!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>The new folder could not be created:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Drive is read-only or insufficient access rights!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>There are less than %1 GB of free diskspace available on your system's TEMP folder.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>It is highly recommend to free up more diskspace before proceeding with the encode!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Your TEMP folder is located at:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 file(s) have been rejected, because read access was not granted!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>This usually means the file is locked by another process.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 file(s) have been rejected, because the file format could not be recognized!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>This usually means the file is damaged or the file format is not supported.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>The update reminder has been disabled.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source><nobr>%1 file(s) have been rejected, because the file format could not be recognized!<br>This usually means the file is damaged or the file format is not supported.</nobr></source>
+ <source>Please remember to check for updates at regular intervals!</source>
<translation type="unfinished"></translation>
</message>
</context>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QLabel" name="dropBoxLabel">
- <property name="toolTip">
- <string><b>LameXP DropBox</b><br><nobr>You can add files to LameXP via Drag&amp;Drop here!</nobr><br><nobr>(Right-click to close the DropBox)</nobr></string>
- </property>
<property name="lineWidth">
<number>0</number>
</property>
<include location="../res/Images.qrc"/>
<include location="../res/Images.qrc"/>
<include location="../res/Images.qrc"/>
+ <include location="../res/Images.qrc"/>
</resources>
<connections/>
</ui>
#define VER_LAMEXP_MAJOR 4
#define VER_LAMEXP_MINOR_HI 0
#define VER_LAMEXP_MINOR_LO 0
-#define VER_LAMEXP_BUILD 200
+#define VER_LAMEXP_BUILD 201
#define VER_LAMEXP_SUFFIX TechPreview
/*
//Make transparent
setWindowOpacity(0.8);
+
+ //Translate UI
+ retranslateUi(this);
}
////////////////////////////////////////////////////////////
// PUBLIC SLOTS
////////////////////////////////////////////////////////////
+void DropBox::doRetranslate(void)
+{
+ retranslateUi(this);
+}
+
void DropBox::modelChanged(void)
{
if(m_model)
// EVENTS
////////////////////////////////////////////////////////////
+/*
+ * Re-translate the UI
+ */
+void DropBox::changeEvent(QEvent *e)
+{
+ if(e->type() == QEvent::LanguageChange)
+ {
+ Ui::DropBox::retranslateUi(this);
+ dropBoxLabel->setToolTip(QString("<b>%1</b><br><nobr>%2</nobr><br><nobr>%3</nobr>").arg(tr("LameXP DropBox"), tr("You can add files to LameXP via Drag&Drop here!"), tr("(Right-click to close the DropBox)")));
+ }
+}
+
+
void DropBox::showEvent(QShowEvent *event)
{
QRect screenGeometry = QApplication::desktop()->availableGeometry();
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
+ void changeEvent(QEvent *e);
public slots:
void modelChanged(void);
+ void doRetranslate(void);
void showToolTip(void);
};
connect(m_fileListModel, SIGNAL(modelReset()), m_dropBox, SLOT(modelChanged()));
connect(m_fileListModel, SIGNAL(rowsInserted(QModelIndex,int,int)), m_dropBox, SLOT(modelChanged()));
connect(m_fileListModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), m_dropBox, SLOT(modelChanged()));
-
+
//Create message handler thread
m_messageHandler = new MessageHandlerThread();
m_delayedFileList = new QStringList();
connect(m_delayedFileTimer, SIGNAL(timeout()), this, SLOT(handleDelayedFiles()));
m_messageHandler->start();
- //Enable Drag & Drop
- this->setAcceptDrops(true);
-
- //Load translation & re-translate
+ //Load translation & re-translate UI
QList<QAction*> languageActions = m_languageActionGroup->actions();
while(!languageActions.isEmpty())
{
languageActionActivated(currentLanguage);
}
}
+ if(m_languageActionGroup->checkedAction() == NULL)
+ {
+ qWarning("No langauge is currently selected, going to select FIRST one!");
+ m_languageActionGroup->actions().first()->setChecked(true);
+ languageActionActivated(m_languageActionGroup->actions().first());
+ }
+
+ //Enable Drag & Drop
+ this->setAcceptDrops(true);
}
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
/*
- * 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
*/
void MainWindow::addFiles(const QStringList &files)
if(analyzer->filesDenied())
{
- QMessageBox::warning(this, tr("Access Denied"), tr("<nobr>%1 file(s) have been rejected, because read access was not granted!<br>This usually means the file is locked by another process.</nobr>").arg(analyzer->filesDenied()));
+ QMessageBox::warning(this, tr("Access Denied"), QString("<nobr>%1<br>%2</nobr>").arg(tr("%1 file(s) have been rejected, because read access was not granted!").arg(analyzer->filesDenied()), tr("This usually means the file is locked by another process.")));
}
if(analyzer->filesRejected())
{
- QMessageBox::warning(this, tr("Files Rejected"), tr("<nobr>%1 file(s) have been rejected, because the file format could not be recognized!<br>This usually means the file is damaged or the file format is not supported.</nobr>").arg(analyzer->filesRejected()));
+ QMessageBox::warning(this, tr("Files Rejected"), QString("<nobr>%1<br>%2</nobr>").arg(tr("%1 file(s) have been rejected, because the file format could not be recognized!").arg(analyzer->filesRejected()), tr("This usually means the file is damaged or the file format is not supported.")));
}
LAMEXP_DELETE(analyzer);
}
/*
+ * Re-translate the UI
+ */
+void MainWindow::changeEvent(QEvent *e)
+{
+ if(e->type() == QEvent::LanguageChange)
+ {
+ Ui::MainWindow::retranslateUi(this);
+
+ 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"));
+ }
+}
+
+/*
* File dragged over window
*/
void MainWindow::dragEnterEvent(QDragEnterEvent *event)
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, tr("Low Diskspace Warning"), tr("<nobr>There are less than %1 GB of free diskspace available on your system's TEMP folder.</nobr><br><nobr>It is highly recommend to free up more diskspace before proceeding with the encode!</nobr><br><br>Your TEMP folder is located at:").append("<br><nobr><i><a href=\"file:///%3\">%3</a></i></nobr><br>").arg(QString::number(minimumFreeDiskspaceMultiplier), tempFolderParts.join("\\")), tr("Abort Encoding Process"), tr("Clean Disk Now"), tr("Ignore")))
+ switch(QMessageBox::warning(this, tr("Low Diskspace Warning"), QString("<nobr>%1</nobr><br><nobr>%2</nobr><br><br>%3").arg(tr("There are less than %1 GB of free diskspace available on your system's TEMP folder.").arg(QString::number(minimumFreeDiskspaceMultiplier)), tr("It is highly recommend to free up more diskspace before proceeding with the encode!"), tr("Your TEMP folder is located at:")).append("<br><nobr><i><a href=\"file:///%3\">%3</a></i></nobr><br>").arg(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());
QFile writeTest(QString("%1/~%2.txt").arg(m_settings->outputDir(), QUuid::createUuid().toString()));
if(!writeTest.open(QIODevice::ReadWrite))
{
- QMessageBox::warning(this, tr("LameXP"), tr("Cannot write to the selected output directory.<br><nobr>%1</nobr><br><br>Please choose a different directory!").arg(m_settings->outputDir()));
+ QMessageBox::warning(this, tr("LameXP"), QString("%1<br><nobr>%2</nobr><br><br>%3").arg(tr("Cannot write to the selected output directory."), m_settings->outputDir(), tr("Please choose a different directory!")));
tabWidget->setCurrentIndex(1);
return;
}
{
m_settings->currentLanguage(langId);
}
-
- retranslateUi(this);
}
/*
}
else
{
- QMessageBox::warning(this, tr("Failed to create folder"), tr("The new folder could not be created:<br><nobr>%1</nobr><br><br>Drive is read-only or insufficient access rights!").arg(basePath.absoluteFilePath(newFolder)));
+ QMessageBox::warning(this, tr("Failed to create folder"), QString("%1<br><nobr>%2</nobr><br><br>%3").arg(tr("The new folder could not be created:"), basePath.absoluteFilePath(newFolder), tr("Drive is read-only or insufficient access rights!")));
}
}
break;
{
if(QMessageBox::Yes == QMessageBox::question(this, tr("Disable Update Reminder"), tr("Do you really want to disable the update reminder?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No))
{
- QMessageBox::information(this, tr("Update Reminder"), tr("The update reminder has been disabled.<br>Please remember to check for updates at regular intervals!"));
+ QMessageBox::information(this, tr("Update Reminder"), QString("%1<br>%2").arg(tr("The update reminder has been disabled."), tr("Please remember to check for updates at regular intervals!")));
m_settings->autoUpdateEnabled(false);
}
else
void closeEvent(QCloseEvent *event);
void resizeEvent(QResizeEvent *event);
bool eventFilter(QObject *obj, QEvent *event);
- void retranslateUi(QMainWindow *MainWindow);
+ void changeEvent(QEvent *e);
private:
void addFiles(const QStringList &files);