Skip to content

Commit 539b076

Browse files
author
g_j_m
committed
Add some tr()'s to user visible text
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5984 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 047566e commit 539b076

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/composer/qgscomposer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ QgsComposer::QgsComposer( QgisApp *qgis): QMainWindow()
4646
{
4747
setupUi(this);
4848
setupTheme();
49-
setWindowTitle("QGIS - print composer");
49+
setWindowTitle(tr("QGIS - print composer"));
5050

5151
// Template save and load is not yet implemented, so disable those actions
5252
mActionOpenTemplate->setEnabled(false);
@@ -68,7 +68,7 @@ QgsComposer::QgsComposer( QgisApp *qgis): QMainWindow()
6868
mCompositionOptionsLayout = new QGridLayout( mCompositionOptionsFrame, 1, 1 );
6969
mItemOptionsLayout = new QGridLayout( mItemOptionsFrame, 1, 1 );
7070

71-
mCompositionNameComboBox->insertItem( "Map 1" );
71+
mCompositionNameComboBox->insertItem( tr("Map 1") );
7272

7373
mComposition = new QgsComposition( this, 1 );
7474
mComposition->setActive ( true );
@@ -415,7 +415,7 @@ void QgsComposer::on_mActionPrint_activated(void)
415415
// Overwrite translate
416416
if ( mPrinter->orientation() == QPrinter::Portrait ) {
417417
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"));
419419
}
420420
offset = 0;
421421
found = false;
@@ -554,7 +554,7 @@ void QgsComposer::on_mActionExportAsImage_activated(void)
554554
for ( ; myCounterInt < QImageWriter::supportedImageFormats().count(); myCounterInt++ )
555555
{
556556
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() + ")";
558558
if ( myCounterInt > 0 ) myFilters += ";;";
559559
myFilters += myFilter;
560560
myFilterMap[myFilter] = myFormat;
@@ -670,7 +670,7 @@ void QgsComposer::on_mActionExportAsSVG_activated(void)
670670
QFileInfo file(myLastUsedFile);
671671

672672
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)" );
674674

675675
myQFileDialog->selectFile( file.fileName() );
676676
myQFileDialog->setMode(QFileDialog::AnyFile);

src/composer/qgscomposerpicture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ QWidget *QgsComposerPicture::options ( void )
483483

484484
QString QgsComposerPicture::pictureDialog ( void )
485485
{
486-
QString filters = "Pictures ( *.svg *.SVG ";
486+
QString filters = tr("Pictures") + " ( *.svg *.SVG ";
487487
QList<QByteArray> formats = QImageWriter::supportedImageFormats();
488488

489489
for ( int i = 0; i < formats.count(); i++ )

src/composer/qgscomposervectorlegend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void QgsComposerVectorLegend::init ( void )
9595
{
9696
mSelected = false;
9797
mNumCachedLayers = 0;
98-
mTitle = "Legend";
98+
mTitle = tr("Legend");
9999
mMap = 0;
100100
mNextLayerGroup = 1;
101101
mFrame = true;

0 commit comments

Comments
 (0)