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:
committed by
Tobias Doerffel
parent
e959af4ec2
commit
340be43acd
@@ -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() )
|
||||
|
||||
Reference in New Issue
Block a user