Skip to content
Permalink
Browse files
Add some tr()'s to user visible text
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5984 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Oct 21, 2006
1 parent 047566e commit 539b07673d3d24f0fd4b612b593086702a266dd6
Showing with 7 additions and 7 deletions.
  1. +5 −5 src/composer/qgscomposer.cpp
  2. +1 −1 src/composer/qgscomposerpicture.cpp
  3. +1 −1 src/composer/qgscomposervectorlegend.cpp
@@ -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);
@@ -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 );
@@ -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;
@@ -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;
@@ -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);
@@ -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++ )
@@ -95,7 +95,7 @@ void QgsComposerVectorLegend::init ( void )
{
mSelected = false;
mNumCachedLayers = 0;
mTitle = "Legend";
mTitle = tr("Legend");
mMap = 0;
mNextLayerGroup = 1;
mFrame = true;

0 comments on commit 539b076

Please sign in to comment.