Skip to content

Commit

Permalink
Add some tr()'s to user visible text
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5984 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Oct 21, 2006
1 parent ace8b3f commit 263e6c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/composer/qgscomposer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ QgsComposer::QgsComposer( QgisApp *qgis): QMainWindow()
{
setupUi(this);
setupTheme();
setWindowTitle("QGIS - print composer");
setWindowTitle(tr("QGIS - print composer"));

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

mCompositionNameComboBox->insertItem( "Map 1" );
mCompositionNameComboBox->insertItem( tr("Map 1") );

mComposition = new QgsComposition( this, 1 );
mComposition->setActive ( true );
Expand Down Expand Up @@ -415,7 +415,7 @@ void QgsComposer::on_mActionPrint_activated(void)
// Overwrite translate
if ( mPrinter->orientation() == QPrinter::Portrait ) {
if (!f.open( QIODevice::ReadWrite )) {
throw QgsIOException(tr("Couldn't open " + f.name() + tr(" for read/write")));
throw QgsIOException(tr("Couldn't open ") + f.name() + tr(" for read/write"));
}
offset = 0;
found = false;
Expand Down Expand Up @@ -554,7 +554,7 @@ void QgsComposer::on_mActionExportAsImage_activated(void)
for ( ; myCounterInt < QImageWriter::supportedImageFormats().count(); myCounterInt++ )
{
QString myFormat=QString(QImageWriter::supportedImageFormats().at( myCounterInt ));
QString myFilter = myFormat + " format (*." + myFormat.lower() + " *." + myFormat.upper() + ")";
QString myFilter = myFormat + " " + tr("format") + " (*." + myFormat.lower() + " *." + myFormat.upper() + ")";
if ( myCounterInt > 0 ) myFilters += ";;";
myFilters += myFilter;
myFilterMap[myFilter] = myFormat;
Expand Down Expand Up @@ -670,7 +670,7 @@ void QgsComposer::on_mActionExportAsSVG_activated(void)
QFileInfo file(myLastUsedFile);

QFileDialog *myQFileDialog = new QFileDialog( this, tr("Choose a filename to save the map as"),
file.path(), "SVG Format (*.svg *SVG)" );
file.path(), tr("SVG Format") + " (*.svg *SVG)" );

myQFileDialog->selectFile( file.fileName() );
myQFileDialog->setMode(QFileDialog::AnyFile);
Expand Down
2 changes: 1 addition & 1 deletion src/composer/qgscomposerpicture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ QWidget *QgsComposerPicture::options ( void )

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

for ( int i = 0; i < formats.count(); i++ )
Expand Down
2 changes: 1 addition & 1 deletion src/composer/qgscomposervectorlegend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void QgsComposerVectorLegend::init ( void )
{
mSelected = false;
mNumCachedLayers = 0;
mTitle = "Legend";
mTitle = tr("Legend");
mMap = 0;
mNextLayerGroup = 1;
mFrame = true;
Expand Down

0 comments on commit 263e6c0

Please sign in to comment.