Proper File import extensions and translations

Previously, the extensions were stored in the translations, this i18n
more difficult, additionally, there was a preprocessor statement that
would cause the translated phrase to change! Hence, no translations if
you didn't have ZIP file support.  The text is now split into seperate
translations and I added "All Files".
This commit is contained in:
Paul Giblock
2009-10-08 12:01:25 -04:00
parent c504bc84d4
commit beb92563f1
15 changed files with 97 additions and 22 deletions

View File

@@ -1074,12 +1074,17 @@ void song::importProject()
{
QFileDialog ofd( NULL, tr( "Import file" ),
configManager::inst()->userProjectsDir(),
tr("MIDI sequences (*.mid *.midi *.rif *.riff);;FL Studio projects (*.flp"
tr("MIDI sequences") +
" (*.mid *.midi *.rmi);;" +
tr("FL Studio projects") +
" (*.flp"
#ifdef LMMS_HAVE_ZIP
" *.zip)") );
" *.zip);;" +
#else
")") );
");;" +
#endif
tr("All Files") +
" (*.*)");
ofd.setFileMode( QFileDialog::ExistingFiles );
if( ofd.exec () == QDialog::Accepted && !ofd.selectedFiles().isEmpty() )