@@ -509,10 +509,8 @@ void QgsComposer::on_mActionExportAsImage_activated( void )
509
509
if ( memuse > 200 ) // cca 4500 x 4500
510
510
{
511
511
int answer = QMessageBox::warning ( 0 , tr ( " Big image" ),
512
- tr ( " To create image " ) + QString::number ( width ) + " x "
513
- + QString::number ( height )
514
- + tr ( " requires circa " )
515
- + QString::number ( memuse ) + tr ( " MB of memory" ),
512
+ tr ( " To create image %1 x %2 requires circa %3 MB of memory" )
513
+ .arg ( width ).arg ( height ).arg ( memuse ),
516
514
QMessageBox::Ok, QMessageBox::Abort );
517
515
518
516
raise ();
@@ -539,7 +537,8 @@ void QgsComposer::on_mActionExportAsImage_activated( void )
539
537
for ( ; myCounterInt < QImageWriter::supportedImageFormats ().count (); myCounterInt++ )
540
538
{
541
539
QString myFormat = QString ( QImageWriter::supportedImageFormats ().at ( myCounterInt ) );
542
- QString myFilter = myFormat + " " + tr ( " format" ) + " (*." + myFormat.toLower () + " *." + myFormat.toUpper () + " )" ;
540
+ QString myFilter = tr ( " %1 format (*.%2 *.%3)" )
541
+ .arg ( myFormat ).arg ( myFormat.toLower () ).arg ( myFormat.toUpper () );
543
542
544
543
if ( myCounterInt > 0 ) myFilters += " ;;" ;
545
544
myFilters += myFilter;
@@ -638,22 +637,22 @@ void QgsComposer::on_mActionExportAsSVG_activated( void )
638
637
m->setCheckBoxVisible ( true );
639
638
m->setCheckBoxQSettingsLabel ( myQSettingsLabel );
640
639
m->setMessageAsHtml ( tr ( " <p>The SVG export function in Qgis has several "
641
- " problems due to bugs and deficiencies in the "
640
+ " problems due to bugs and deficiencies in the " )
642
641
#if QT_VERSION < 0x040300
643
- " Qt4 svg code. Of note, text does not "
644
- " appear in the SVG file and there are problems "
645
- " with the map bounding box clipping other items "
646
- " such as the legend or scale bar.</p>"
642
+ + tr ( " Qt4 svg code. Of note, text does not "
643
+ " appear in the SVG file and there are problems "
644
+ " with the map bounding box clipping other items "
645
+ " such as the legend or scale bar.</p>" )
647
646
#else
648
- " Qt4 svg code. In particular, there are problems "
649
- " with layers not being clipped to the map "
650
- " bounding box.</p>"
647
+ + tr ( " Qt4 svg code. In particular, there are problems "
648
+ " with layers not being clipped to the map "
649
+ " bounding box.</p>" )
651
650
#endif
652
- " If you require a vector-based output file from "
653
- " Qgis it is suggested that you try printing "
654
- " to PostScript if the SVG output is not "
655
- " satisfactory."
656
- " </p>" ) );
651
+ + tr ( " If you require a vector-based output file from "
652
+ " Qgis it is suggested that you try printing "
653
+ " to PostScript if the SVG output is not "
654
+ " satisfactory."
655
+ " </p>" ) );
657
656
m->exec ();
658
657
}
659
658
QString myLastUsedFile = myQSettings.value ( " /UI/lastSaveAsSvgFile" , " qgis.svg" ).toString ();
0 commit comments