@@ -46,7 +46,7 @@ QgsComposer::QgsComposer( QgisApp *qgis): QMainWindow()
46
46
{
47
47
setupUi (this );
48
48
setupTheme ();
49
- setWindowTitle (" QGIS - print composer" );
49
+ setWindowTitle (tr ( " QGIS - print composer" ) );
50
50
51
51
// Template save and load is not yet implemented, so disable those actions
52
52
mActionOpenTemplate ->setEnabled (false );
@@ -68,7 +68,7 @@ QgsComposer::QgsComposer( QgisApp *qgis): QMainWindow()
68
68
mCompositionOptionsLayout = new QGridLayout ( mCompositionOptionsFrame , 1 , 1 );
69
69
mItemOptionsLayout = new QGridLayout ( mItemOptionsFrame , 1 , 1 );
70
70
71
- mCompositionNameComboBox ->insertItem ( " Map 1" );
71
+ mCompositionNameComboBox ->insertItem ( tr ( " Map 1" ) );
72
72
73
73
mComposition = new QgsComposition ( this , 1 );
74
74
mComposition ->setActive ( true );
@@ -415,7 +415,7 @@ void QgsComposer::on_mActionPrint_activated(void)
415
415
// Overwrite translate
416
416
if ( mPrinter ->orientation () == QPrinter::Portrait ) {
417
417
if (!f.open ( QIODevice::ReadWrite )) {
418
- throw QgsIOException (tr (" Couldn't open " + f.name () + tr (" for read/write" ) ));
418
+ throw QgsIOException (tr (" Couldn't open " ) + f.name () + tr (" for read/write" ));
419
419
}
420
420
offset = 0 ;
421
421
found = false ;
@@ -554,7 +554,7 @@ void QgsComposer::on_mActionExportAsImage_activated(void)
554
554
for ( ; myCounterInt < QImageWriter::supportedImageFormats ().count (); myCounterInt++ )
555
555
{
556
556
QString myFormat=QString (QImageWriter::supportedImageFormats ().at ( myCounterInt ));
557
- QString myFilter = myFormat + " format (*." + myFormat.lower () + " *." + myFormat.upper () + " )" ;
557
+ QString myFilter = myFormat + " " + tr ( " format" ) + " (*." + myFormat.lower () + " *." + myFormat.upper () + " )" ;
558
558
if ( myCounterInt > 0 ) myFilters += " ;;" ;
559
559
myFilters += myFilter;
560
560
myFilterMap[myFilter] = myFormat;
@@ -670,7 +670,7 @@ void QgsComposer::on_mActionExportAsSVG_activated(void)
670
670
QFileInfo file (myLastUsedFile);
671
671
672
672
QFileDialog *myQFileDialog = new QFileDialog ( this , tr (" Choose a filename to save the map as" ),
673
- file.path (), " SVG Format (*.svg *SVG)" );
673
+ file.path (), tr ( " SVG Format" ) + " (*.svg *SVG)" );
674
674
675
675
myQFileDialog->selectFile ( file.fileName () );
676
676
myQFileDialog->setMode (QFileDialog::AnyFile);
0 commit comments