Skip to content

Commit e23e7d1

Browse files
author
jef
committedJan 26, 2009
reapply translation string changes lost with r10006
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10021 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent dd131b7 commit e23e7d1

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed
 

‎src/app/composer/qgscomposer.cpp

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,8 @@ void QgsComposer::on_mActionExportAsImage_activated( void )
509509
if ( memuse > 200 ) // cca 4500 x 4500
510510
{
511511
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 ),
516514
QMessageBox::Ok, QMessageBox::Abort );
517515

518516
raise();
@@ -539,7 +537,8 @@ void QgsComposer::on_mActionExportAsImage_activated( void )
539537
for ( ; myCounterInt < QImageWriter::supportedImageFormats().count(); myCounterInt++ )
540538
{
541539
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() );
543542

544543
if ( myCounterInt > 0 ) myFilters += ";;";
545544
myFilters += myFilter;
@@ -638,22 +637,22 @@ void QgsComposer::on_mActionExportAsSVG_activated( void )
638637
m->setCheckBoxVisible( true );
639638
m->setCheckBoxQSettingsLabel( myQSettingsLabel );
640639
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 " )
642641
#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>" )
647646
#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>" )
651650
#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>" ) );
657656
m->exec();
658657
}
659658
QString myLastUsedFile = myQSettings.value( "/UI/lastSaveAsSvgFile", "qgis.svg" ).toString();

0 commit comments

Comments
 (0)