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:
@@ -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() )
|
||||
|
||||
Reference in New Issue
Block a user