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".
(cherry picked from commit beb92563f1)
This commit is contained in:
Paul Giblock
2009-10-08 12:01:25 -04:00
committed by Tobias Doerffel
parent e959af4ec2
commit 340be43acd
15 changed files with 96 additions and 20 deletions

View File

@@ -1071,7 +1071,13 @@ 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"
");;" +
tr("All Files") +
" (*.*)");
ofd.setFileMode( QFileDialog::ExistingFiles );
if( ofd.exec () == QDialog::Accepted && !ofd.selectedFiles().isEmpty() )