@@ -67,16 +67,16 @@ QString QgsMapserverExport::baseName()
67
67
// Choose the map file to create
68
68
void QgsMapserverExport::on_btnChooseFile_clicked ()
69
69
{
70
- mapFile = QFileDialog::getSaveFileName (this , " Name for the map file" ,
71
- " ." , " MapServer map files (*.map);;All files(*.*)" );
70
+ mapFile = QFileDialog::getSaveFileName (this , tr ( " Name for the map file" ) ,
71
+ " ." , tr ( " MapServer map files (*.map);;All files(*.*)" , " Filter list for selecting files from a dialog box " ) );
72
72
txtMapFilePath->setText (mapFile);
73
73
74
74
}
75
75
// Chooose the project file to process
76
76
void QgsMapserverExport::on_btnChooseProjectFile_clicked ()
77
77
{
78
- qgisProjectFile = QFileDialog::getOpenFileName (this , " Choose the QGIS project file" ,
79
- " ." , " QGIS Project Files (*.qgs);;All files (*.*)" );
78
+ qgisProjectFile = QFileDialog::getOpenFileName (this , tr ( " Choose the QGIS project file" ) ,
79
+ " ." , tr ( " QGIS Project Files (*.qgs);;All files (*.*)" , " Filter list for selecting files from a dialog box " ) );
80
80
txtQgisFilePath->setText (qgisProjectFile);
81
81
82
82
}
@@ -187,8 +187,9 @@ bool QgsMapserverExport::write()
187
187
// Check for file and prompt for overwrite if it exists
188
188
if (QFile::exists (txtMapFilePath->text ()))
189
189
{
190
- okToSave = QMessageBox::warning (0 , " Overwrite File?" , txtMapFilePath->text () +
191
- " exists. \n Do you want to overwrite it?" , " Yes" , " No" );
190
+ okToSave = QMessageBox::warning (0 , tr (" Overwrite File?" ), txtMapFilePath->text () +
191
+ tr (" exists. \n Do you want to overwrite it?" ,
192
+ " a filename is prepended to this text, and appears in a dialog box" ), tr (" Yes" ), tr (" No" ));
192
193
}
193
194
if (okToSave == 0 )
194
195
{
0 commit comments