grass_i18n.diff

added tr() for one forgotten string + i18n for projection selector - Redmine Admin, 2007-04-01 03:21 PM

Download (53.9 KB)

View differences:

src/plugins/grass/qgsgrassregion.cpp (working copy)
194 194
    QString mapset   = QgsGrass::getDefaultMapset();
195 195

  
196 196
    if ( gisdbase.isEmpty() || location.isEmpty() || mapset.isEmpty() ) {
197
	QMessageBox::warning( 0, "Warning", "GISDBASE, LOCATION_NAME or MAPSET is not set, "
198
		                 "cannot display current region." );
197
	QMessageBox::warning( 0, tr("Warning"), tr("GISDBASE, LOCATION_NAME or MAPSET is not set, "
198
		                 "cannot display current region." ) );
199 199
    }
200 200

  
201 201
    QgsGrass::setLocation ( gisdbase, location );
202 202
    char *err = G__get_window ( &mWindow, "", "WIND", (char *) mapset.latin1() );
203 203

  
204 204
    if ( err ) {
205
	QMessageBox::warning( 0, "Warning", "Cannot read current region: " + QString(err) );
205
	QMessageBox::warning( 0, tr("Warning"), tr("Cannot read current region: ") + QString(err) );
206 206
	return;
207 207
    }
208 208
	
......
461 461
    G__setenv( "MAPSET", (char *) QgsGrass::getDefaultMapset().latin1() );
462 462
    
463 463
    if ( G_put_window(&mWindow) == -1 ) {
464
	QMessageBox::warning( 0, "Warning", "Cannot write region" );
464
	QMessageBox::warning( 0, tr("Warning"), tr("Cannot write region") );
465 465
        return;
466 466
    }
467 467

  
src/plugins/grass/qgsgrassattributes.cpp (working copy)
163 163
    tb->setRowReadOnly ( 0, TRUE );
164 164
    tb->setRowReadOnly ( 1, TRUE );
165 165
    
166
    tb->horizontalHeader()->setLabel( 0, "Column" );
167
    tb->horizontalHeader()->setLabel( 1, "Value" );
168
    tb->horizontalHeader()->setLabel( 2, "Type" );  // Internal use
166
    tb->horizontalHeader()->setLabel( 0, tr("Column") );
167
    tb->horizontalHeader()->setLabel( 1, tr("Value") );
168
    tb->horizontalHeader()->setLabel( 2, tr("Type") );  // Internal use
169 169

  
170 170
    tb->setLeftMargin(0); // hide row labels
171 171

  
172
    tb->setText ( 0, 0, "Field" );
172
    tb->setText ( 0, 0, tr("Field") );
173 173
    tb->setText ( 1, 0, "Cat" );
174 174

  
175 175
    tabCats->addTab ( tb, label );
......
311 311

  
312 312
      if ( !error->isEmpty() ) {
313 313
	  QMessageBox::warning( 0, tr("Warning"), *error );
314
	  resultLabel->setText ( "ERROR" );
314
	  resultLabel->setText ( tr("ERROR") );
315 315
      } else {
316
	  resultLabel->setText ( "OK" );
316
	  resultLabel->setText ( tr("OK") );
317 317
      }
318 318

  
319 319
      delete error;
src/plugins/grass/qgsgrassplugin.cpp (working copy)
176 176
      tr("Edit Current Grass Region"), this);
177 177
  mEditAction = new QAction(QIcon(icon_grass_edit),
178 178
      tr("Edit Grass Vector layer"), this);
179
  mNewVectorAction = new QAction(QIcon(icon_new_vector_layer),"Create new Grass Vector", this);
179
  mNewVectorAction = new QAction(QIcon(icon_new_vector_layer),tr("Create new Grass Vector"), this);
180 180

  
181 181
  mAddVectorAction->setWhatsThis(tr("Adds a GRASS vector layer to the map canvas"));
182 182
  mAddRasterAction->setWhatsThis(tr("Adds a GRASS raster layer to the map canvas"));
......
441 441
void QgsGrassPlugin::edit()
442 442
{
443 443
  if ( QgsGrassEdit::isRunning() ) {
444
    QMessageBox::warning( 0, "Warning", "GRASS Edit is already running." );
444
    QMessageBox::warning( 0, tr("Warning"), tr("GRASS Edit is already running.") );
445 445
    return;
446 446
  }
447 447

  
......
483 483
#endif
484 484
  
485 485
    if ( QgsGrassEdit::isRunning() ) {
486
        QMessageBox::warning( 0, "Warning", "GRASS Edit is already running." );
486
        QMessageBox::warning( 0, tr("Warning"), tr("GRASS Edit is already running." ) );
487 487
        return;
488 488
    }
489 489

  
......
491 491
    QString name;
492 492

  
493 493
    QgsGrassElementDialog dialog;
494
    name = dialog.getItem ( "vector", "New vector name", 
495
                        "New vector name", "", "", &ok );
494
    name = dialog.getItem ( "vector", tr("New vector name"), 
495
                        tr("New vector name"), "", "", &ok );
496 496

  
497 497
    if ( !ok ) return;
498 498
    
......
507 507

  
508 508
    if ( QgsGrass::getError() == QgsGrass::FATAL ) 
509 509
    {
510
        QMessageBox::warning( 0, "Warning", "Cannot create new vector: "
510
        QMessageBox::warning( 0, tr("Warning"), tr("Cannot create new vector: ")
511 511
                      + QgsGrass::getErrorMessage() );
512 512
        return;
513 513
    }
......
529 529

  
530 530
    if ( !provider ) 
531 531
    {
532
        QMessageBox::warning( 0, "Warning", "New vector created "
533
                  "but cannot beopened by data provider." );
532
        QMessageBox::warning( 0, tr("Warning"), tr("New vector created "
533
                  "but cannot be opened by data provider.") );
534 534
        return;
535 535
    }
536 536

  
......
542 542
        ed->show();
543 543
        mCanvas->refresh();
544 544
    } else {
545
        QMessageBox::warning( 0, "Warning", "Cannot start editing." );
545
        QMessageBox::warning( 0, tr("Warning"), tr("Cannot start editing." ) );
546 546
        delete ed;
547 547
    }
548 548
/*
549 549
    if ( !(mProvider->startEdit()) ) {
550
        QMessageBox::warning( 0, "Warning", "Cannot open vector for update." );
550
        QMessageBox::warning( 0, tr("Warning"), tr("Cannot open vector for update.") );
551 551
        return;
552 552
    }
553 553
*/
......
578 578
  QString mapset   = QgsGrass::getDefaultMapset();
579 579

  
580 580
  if ( gisdbase.isEmpty() || location.isEmpty() || mapset.isEmpty() ) {
581
    QMessageBox::warning( 0, "Warning", "GISDBASE, LOCATION_NAME or MAPSET is not set, "
582
        "cannot display current region." );
581
    QMessageBox::warning( 0, tr("Warning"), tr("GISDBASE, LOCATION_NAME or MAPSET is not set, "
582
        "cannot display current region.") );
583 583
    return;
584 584
  }
585 585

  
......
589 589
  char *err = G__get_window ( &window, "", "WIND", (char *) mapset.latin1() );
590 590

  
591 591
  if ( err ) {
592
    QMessageBox::warning( 0, "Warning", "Cannot read current region: " + QString(err) );
592
    QMessageBox::warning( 0, tr("Warning"), tr("Cannot read current region: ") + QString(err) );
593 593
    return;
594 594
  }
595 595

  
......
694 694

  
695 695
    if ( !err.isNull() )
696 696
    {
697
        QMessageBox::warning( 0, "Warning", "Cannot open the mapset. " + err );
697
        QMessageBox::warning( 0, tr("Warning"), tr("Cannot open the mapset. ") + err );
698 698
        return;
699 699
    }
700 700
        
......
712 712

  
713 713
    if ( !err.isNull() )
714 714
    {
715
        QMessageBox::warning( 0, "Warning", "Cannot close mapset. " + err );
715
        QMessageBox::warning( 0, tr("Warning"), tr("Cannot close mapset. ") + err );
716 716
        return;
717 717
    }
718 718
        
......
768 768
    QString err = QgsGrass::closeMapset ();
769 769
    if ( !err.isNull() )
770 770
    {
771
	QMessageBox::warning( 0, "Warning", 
772
		 "Cannot close current mapset. " + err );
771
	QMessageBox::warning( 0, tr("Warning"), 
772
		 tr("Cannot close current mapset. ") + err );
773 773
	return;
774 774
    }
775 775
    mapsetChanged();
......
778 778

  
779 779
    if ( !err.isNull() )
780 780
    {
781
	QMessageBox::warning( 0, "Warning", "Cannot open GRASS mapset. " + err );
781
	QMessageBox::warning( 0, tr("Warning"), tr("Cannot open GRASS mapset. ") + err );
782 782
	return;
783 783
    }
784 784

  
src/plugins/grass/qgsgrassutils.cpp (working copy)
126 126
    mErrorLabel->setMinimumHeight ( mErrorLabel->height()+5 );
127 127

  
128 128
    mOkButton = new QPushButton ( );
129
    mCancelButton = new QPushButton ( "Cancel" );
129
    mCancelButton = new QPushButton ( tr("Cancel" ) );
130 130
     
131 131
    layout->insertLayout( -1, buttonLayout );
132 132
    buttonLayout->addWidget( mOkButton );
......
157 157
   QString text = mLineEdit->text().trimmed();
158 158

  
159 159
   mErrorLabel->setText ( "   " );
160
   mOkButton->setText ("Ok");
160
   mOkButton->setText ( tr("Ok" ) );
161 161
   mOkButton->setEnabled ( true );
162 162

  
163 163
   if ( text.length() == 0 )
164 164
   {
165
       mErrorLabel->setText ( "<font color='red'>Enter a name!</font>" );
165
       mErrorLabel->setText ( tr( "<font color='red'>Enter a name!</font>" ) );
166 166
       mOkButton->setEnabled ( false );
167 167
       return;
168 168
   }
......
173 173
   if ( !mSource.isNull() && text == mSource )
174 174
#endif
175 175
   {
176
       mErrorLabel->setText ( "<font color='red'>This is name of the source!</font>" );
176
       mErrorLabel->setText ( tr( "<font color='red'>This is name of the source!</font>" ) );
177 177
       mOkButton->setEnabled ( false );
178 178
       return;
179 179
   }
180 180
   if ( QgsGrassUtils::itemExists( mElement, text ) )
181 181
   {
182
       mErrorLabel->setText ( "<font color='red'>Exists!</font>" );
183
       mOkButton->setText ("Overwrite");
182
       mErrorLabel->setText ( tr( "<font color='red'>Exists!</font>" ) );
183
       mOkButton->setText ( tr("Overwrite") );
184 184
       return;
185 185
   }
186 186
}
src/plugins/grass/qgsgrassnewmapset.cpp (working copy)
101 101
    setHelpEnabled ( page(MAPSET), false );
102 102
    setHelpEnabled ( page(FINISH), false );
103 103

  
104
    setTitle ( page(DATABASE), "GRASS database" );
105
    setTitle ( page(LOCATION), "GRASS location" );
106
    setTitle ( page(PROJECTION), "Projection" );
107
    setTitle ( page(REGION), "Default GRASS Region" );
108
    setTitle ( page(MAPSET), "Mapset" );
109
    setTitle ( page(FINISH), "Create New Mapset" );
104
    setTitle ( page(DATABASE), tr("GRASS database") );
105
    setTitle ( page(LOCATION), tr("GRASS location") );
106
    setTitle ( page(PROJECTION), tr("Projection") );
107
    setTitle ( page(REGION), tr("Default GRASS Region") );
108
    setTitle ( page(MAPSET), tr("Mapset") );
109
    setTitle ( page(FINISH), tr("Create New Mapset") );
110 110

  
111 111
    setError ( mDatabaseErrorLabel, "" );
112 112
    setError ( mLocationErrorLabel, "" );
......
135 135
    // Create example tree structure
136 136
    mTreeListView->clear();
137 137
    mTreeListView->setSortColumn(-1); // No sorting
138
    mTreeListView->setColumnText( 0, "Tree" );
139
    mTreeListView->addColumn( "Comment" );
140
    Q3ListViewItem *dbi = new Q3ListViewItem( mTreeListView, "OurDatabase", "Database" );
138
    mTreeListView->setColumnText( 0, tr("Tree") );
139
    mTreeListView->addColumn( tr("Comment") );
140
    Q3ListViewItem *dbi = new Q3ListViewItem( mTreeListView, "OurDatabase", tr("Database") );
141 141
    dbi->setOpen(true);
142 142
    
143 143
    // First inserted is last in the view
144
    Q3ListViewItem *l = new Q3ListViewItem( dbi, "New Zealand", "Location 2" );
144
    Q3ListViewItem *l = new Q3ListViewItem( dbi, "New Zealand", tr("Location 2") );
145 145
    l->setOpen(true);
146
    Q3ListViewItem *m = new Q3ListViewItem( l, "Cimrman", "User's mapset");
146
    Q3ListViewItem *m = new Q3ListViewItem( l, "Cimrman", tr("User's mapset") );
147 147
    m->setOpen(true);
148
    m = new Q3ListViewItem( l, "PERMANENT", "System mapset" );
148
    m = new Q3ListViewItem( l, "PERMANENT", tr("System mapset") );
149 149
    m->setOpen(true);
150 150
    
151
    l = new Q3ListViewItem( dbi, "Mexico", "Location 1" );
151
    l = new Q3ListViewItem( dbi, "Mexico", tr("Location 1") );
152 152
    m->setOpen(true);
153
    m = new Q3ListViewItem( l, "Juan", "User's mapset");
153
    m = new Q3ListViewItem( l, "Juan", tr("User's mapset") );
154 154
    l->setOpen(true);
155
    m = new Q3ListViewItem( l, "Alejandra", "User's mapset");
155
    m = new Q3ListViewItem( l, "Alejandra", tr("User's mapset") );
156 156
    m->setOpen(true);
157
    m = new Q3ListViewItem( l, "PERMANENT", "System mapset" );
157
    m = new Q3ListViewItem( l, "PERMANENT", tr("System mapset") );
158 158
    m->setOpen(true);
159 159
    
160 160
    // PROJECTION
161 161

  
162 162
    // MAPSET
163 163
    mMapsetsListView->clear();
164
    mMapsetsListView->setColumnText( 0, "Mapset" );
165
    mMapsetsListView->addColumn( "Owner" );
164
    mMapsetsListView->setColumnText( 0, tr("Mapset") );
165
    mMapsetsListView->addColumn( tr("Owner") );
166 166

  
167 167
    // FINISH
168 168
    setFinishEnabled ( page(FINISH), true );
......
211 211

  
212 212
    if ( database.length() == 0 ) 
213 213
    {
214
        setError ( mDatabaseErrorLabel, "Enter path to GRASS database");
214
        setError ( mDatabaseErrorLabel, tr("Enter path to GRASS database") );
215 215
        return;
216 216
    }
217 217

  
......
219 219

  
220 220
    if ( !databaseInfo.exists() )
221 221
    {
222
	setError ( mDatabaseErrorLabel, "The directory doesn't exist!");
222
	setError ( mDatabaseErrorLabel, tr("The directory doesn't exist!") );
223 223
        return;
224 224
    }
225 225

  
......
248 248
    }
249 249
    else
250 250
    {
251
	setError ( mDatabaseErrorLabel, "No writable "
252
	    "locations, the database not writable!");
251
	setError ( mDatabaseErrorLabel, tr("No writable "
252
	    "locations, the database not writable!") );
253 253
    }
254 254
}
255 255

  
......
347 347
	if ( location.length() ==  0 )
348 348
	{
349 349
	    setNextEnabled ( page(LOCATION), false );
350
            setError ( mLocationErrorLabel, "Enter location name!");
350
            setError ( mLocationErrorLabel, tr("Enter location name!") );
351 351
	}
352 352
        else
353 353
        {
......
360 360
		if ( d[i] == location ) 
361 361
		{
362 362
		    setNextEnabled ( page(LOCATION), false );
363
                    setError ( mLocationErrorLabel, "The location exists!");
363
                    setError ( mLocationErrorLabel, tr("The location exists!") );
364 364
		    break;
365 365
		}
366 366
	    }
......
508 508

  
509 509
	if ( !mProjInfo || !mProjUnits )
510 510
	{
511
            setError ( mProjErrorLabel, "Selected projection is not supported by GRASS!");
511
            setError ( mProjErrorLabel, tr("Selected projection is not supported by GRASS!") );
512 512
	}
513 513
    } 
514 514
    else // Nothing selected
......
554 554
            newSrs.createFromSrsId ( mProjectionSelector->getCurrentSRSID() );
555 555
	    if (  ! newSrs.isValid() )
556 556
	    {
557
		QMessageBox::warning( 0, "Warning", 
558
		       "Cannot create projection." );
557
		QMessageBox::warning( 0, tr("Warning"), 
558
		       tr("Cannot create projection.") );
559 559
	    }
560 560
        }
561 561
    }
......
602 602
        }
603 603
        else
604 604
        {
605
	    QMessageBox::warning( 0, "Warning", "Cannot reproject "
606
                  "previously set region, default region set." );
605
	    QMessageBox::warning( 0, tr("Warning"), tr("Cannot reproject "
606
                  "previously set region, default region set." ) );
607 607

  
608 608
            setGrassRegionDefaults();
609 609
        }
......
738 738

  
739 739
    if ( n <= s ) 
740 740
    {
741
        setError ( mRegionErrorLabel, "North must be greater than south");
741
        setError ( mRegionErrorLabel, tr("North must be greater than south") );
742 742
	err = true;
743 743
    }	
744 744
    if ( e <= w && mCellHead.proj != PROJECTION_LL ) 
745 745
    {
746
        setError ( mRegionErrorLabel, "East must be greater than west");
746
        setError ( mRegionErrorLabel, tr("East must be greater than west") );
747 747
	err = true;
748 748
    }	
749 749

  
......
795 795
    QFile file ( path );
796 796

  
797 797
    if ( !file.exists() ) {
798
        QMessageBox::warning( 0, "Warning", 
799
                   "Regions file (" + path + ") not found." );
798
        QMessageBox::warning( 0, tr("Warning"), 
799
                   tr("Regions file (") + path + tr(") not found.") );
800 800
        return;
801 801
    }
802 802
    if ( ! file.open( QIODevice::ReadOnly ) ) {
803
        QMessageBox::warning( 0, "Warning", 
804
                   "Cannot open locations file (" + path +")" );
803
        QMessageBox::warning( 0, tr("Warning"), 
804
                   tr("Cannot open locations file (") + path +tr(")") );
805 805
        return;
806 806
    }
807 807

  
......
810 810
    int line, column;
811 811

  
812 812
    if ( !doc.setContent( &file,  &err, &line, &column ) ) {
813
        QString errmsg = "Cannot read locations file (" + path + "):\n" 
814
                         + err + "\nat line " + QString::number(line) 
815
                         + " column " + QString::number(column);
813
        QString errmsg = tr("Cannot read locations file (") + path + tr("):\n") 
814
                         + err + tr("\nat line ") + QString::number(line) 
815
                         + tr(" column ") + QString::number(column);
816 816
        std::cerr << errmsg.toLocal8Bit().data() << std::endl;
817
        QMessageBox::warning( 0, "Warning", errmsg );
817
        QMessageBox::warning( 0, tr("Warning"), errmsg );
818 818
        file.close();
819 819
        return;
820 820
    }
......
906 906

  
907 907
	if ( !source.isValid() ) 
908 908
	{
909
	    QMessageBox::warning( 0, "Warning", 
910
		       "Cannot create QgsSpatialRefSys" );
909
	    QMessageBox::warning( 0, tr("Warning"), 
910
		       tr("Cannot create QgsSpatialRefSys" ) );
911 911
	    return;
912 912
	}
913 913

  
......
916 916

  
917 917
	if ( !dest.isValid() ) 
918 918
	{
919
	    QMessageBox::warning( 0, "Warning", 
920
		       "Cannot create QgsSpatialRefSys" );
919
	    QMessageBox::warning( 0, tr("Warning"), 
920
		       tr("Cannot create QgsSpatialRefSys") );
921 921
	    return;
922 922
	}
923 923

  
......
946 946

  
947 947
        if ( !ok )
948 948
        {
949
	    QMessageBox::warning( 0, "Warning", 
950
		       "Cannot reproject selected region." );
949
	    QMessageBox::warning( 0, tr("Warning"), 
950
		      tr( "Cannot reproject selected region.") );
951 951
            return;
952 952
        }
953 953
    }
......
1035 1035

  
1036 1036
        if ( !ok )
1037 1037
        {
1038
	    QMessageBox::warning( 0, "Warning", "Cannot reproject region" );
1038
	    QMessageBox::warning( 0, tr("Warning"), tr("Cannot reproject region") );
1039 1039
            return;
1040 1040
        }
1041 1041
    }
......
1129 1129

  
1130 1130
	if ( !source.isValid() ) 
1131 1131
	{
1132
	    QMessageBox::warning( 0, "Warning", 
1133
		       "Cannot create QgsSpatialRefSys" );
1132
	    QMessageBox::warning( 0, tr("Warning"), 
1133
		       tr("Cannot create QgsSpatialRefSys") );
1134 1134
	    return;
1135 1135
	}
1136 1136

  
......
1138 1138

  
1139 1139
	if ( !dest.isValid() ) 
1140 1140
	{
1141
	    QMessageBox::warning( 0, "Warning", 
1142
		       "Cannot create QgsSpatialRefSys" );
1141
	    QMessageBox::warning( 0, tr("Warning"), 
1142
		       tr("Cannot create QgsSpatialRefSys") );
1143 1143
	    return;
1144 1144
	}
1145 1145

  
......
1266 1266
    // TODO?: Check spaces in the name
1267 1267
    if ( mapset.length() == 0 )
1268 1268
    {
1269
    	setError ( mMapsetErrorLabel, "Enter mapset name.");
1269
    	setError ( mMapsetErrorLabel, tr("Enter mapset name."));
1270 1270
        return;
1271 1271
    }
1272 1272

  
......
1283 1283

  
1284 1284
	    if ( d[i] == mapset ) 
1285 1285
	    {
1286
		setError ( mMapsetErrorLabel, "The mapset already exists");
1286
		setError ( mMapsetErrorLabel, tr("The mapset already exists") );
1287 1287
		exists = true;
1288 1288
		break;
1289 1289
	    }
......
1307 1307
    std::cerr << "QgsGrassNewMapset::setFinish()" << std::endl;
1308 1308
#endif
1309 1309

  
1310
    mDatabaseLabel->setText ( "Database: " + mDatabaseLineEdit->text() );
1310
    mDatabaseLabel->setText ( tr("Database: ") + mDatabaseLineEdit->text() );
1311 1311

  
1312 1312
    QString location;
1313 1313
    if ( mSelectLocationRadioButton->isChecked() )
......
1318 1318
    {
1319 1319
	location = mLocationLineEdit->text().stripWhiteSpace();
1320 1320
    }
1321
    mLocationLabel->setText ( "Location: " + location );
1321
    mLocationLabel->setText ( tr("Location: ") + location );
1322 1322

  
1323
    mMapsetLabel->setText ( "Mapset: " + mMapsetLineEdit->text() );
1323
    mMapsetLabel->setText ( tr("Mapset: ") + mMapsetLineEdit->text() );
1324 1324

  
1325 1325
    setFinishEnabled ( page(FINISH), true );
1326 1326
}
......
1351 1351

  
1352 1352
	if ( ret != 0 )
1353 1353
	{
1354
	    QMessageBox::warning (this, "Create location", 
1355
		         "Cannot create new location: " 
1354
	    QMessageBox::warning (this, tr("Create location"), 
1355
		         tr("Cannot create new location: ") 
1356 1356
			 + QgsGrass::getErrorMessage() );
1357 1357
	    
1358 1358
	    return;
......
1382 1382

  
1383 1383
	if ( !d.mkdir(mapset) )
1384 1384
	{
1385
	    QMessageBox::warning (this, "Create mapset", 
1386
		         "Cannot create new mapset dircetory" );
1385
	    QMessageBox::warning (this, tr("Create mapset"), 
1386
		         tr("Cannot create new mapset dircetory") );
1387 1387
	    
1388 1388
	    return;
1389 1389
	} 
......
1393 1393
        QFile in ( locationPath + "/PERMANENT/DEFAULT_WIND" );
1394 1394
        if ( !in.open( QIODevice::ReadOnly ) ) 
1395 1395
	{
1396
	    QMessageBox::warning (this, "Create mapset", "Cannot open DEFAULT_WIND" ); 
1396
	    QMessageBox::warning (this, tr("Create mapset"), tr("Cannot open DEFAULT_WIND") ); 
1397 1397
	    return;
1398 1398
	}
1399 1399
	    
1400 1400
        QFile out ( locationPath + "/" + mapset + "/WIND" );
1401 1401
        if ( !out.open( QIODevice::WriteOnly ) ) 
1402 1402
	{
1403
	    QMessageBox::warning (this, "Create mapset", "Cannot open WIND" ); 
1403
	    QMessageBox::warning (this, tr("Create mapset"), tr("Cannot open WIND") ); 
1404 1404
	    return;
1405 1405
	}
1406 1406
	QTextStream stream ( &out );
......
1421 1421

  
1422 1422
    if ( err.length() > 0 ) 
1423 1423
    {
1424
        QMessageBox::information ( this, "New mapset",
1425
	    "New mapset successfully created, but cannot be "
1426
            "opened: " + err );
1424
        QMessageBox::information ( this, tr("New mapset"),
1425
	    tr("New mapset successfully created, but cannot be "
1426
            "opened: ") + err );
1427 1427
    }
1428 1428
    else
1429 1429
    {
1430
        QMessageBox::information ( this, "New mapset",
1431
	    "New mapset successfully created and set "
1432
            "as current working mapset." );
1430
        QMessageBox::information ( this, tr("New mapset"),
1431
	    tr("New mapset successfully created and set "
1432
            "as current working mapset.") );
1433 1433
        
1434 1434
        mPlugin->mapsetChanged();
1435 1435
    }
src/plugins/grass/qgsgrassbrowser.cpp (working copy)
269 269
        {
270 270
            suggest = map;
271 271
        }
272
        QString newName = ed.getItem ( element, "New name",
273
                          "New name", suggest, source, &ok );
272
        QString newName = ed.getItem ( element, tr("New name"),
273
                          tr("New name"), suggest, source, &ok );
274 274

  
275 275
        if ( !ok ) return;
276 276
         
......
335 335

  
336 336
        QgsGrassElementDialog ed;
337 337
        bool ok;
338
        QString newName = ed.getItem ( element, "New name",
339
                          "New name", "", map, &ok );
338
        QString newName = ed.getItem ( element, tr("New name"),
339
                          tr("New name"), "", map, &ok );
340 340

  
341 341
        if ( !ok ) return;
342 342
         
src/plugins/grass/qgsgrassmodule.cpp (working copy)
212 212
    QString mpath = mPath + ".qgm";
213 213
    QFile qFile ( mpath );
214 214
    if ( !qFile.exists() ) {
215
	QMessageBox::warning( 0, "Warning", "The module file (" + mpath + ") not found." );
215
	QMessageBox::warning( 0, tr("Warning"), tr("The module file (") + mpath + tr(") not found.") );
216 216
	return;
217 217
    }
218 218
    if ( ! qFile.open( QIODevice::ReadOnly ) ) {
219
	QMessageBox::warning( 0, "Warning", "Cannot open module file (" + mpath + ")" );
219
	QMessageBox::warning( 0, tr("Warning"), tr("Cannot open module file (") + mpath + tr(")") );
220 220
	return;
221 221
    }
222 222
    QDomDocument qDoc ( "qgisgrassmodule" );
223 223
    QString err;
224 224
    int line, column;
225 225
    if ( !qDoc.setContent( &qFile,  &err, &line, &column ) ) {
226
	QString errmsg = "Cannot read module file (" + mpath + "):\n" + err + "\nat line "
226
	QString errmsg = tr("Cannot read module file (") + mpath + tr("):\n") + err + tr("\nat line ")
227 227
	                 + QString::number(line) + " column " + QString::number(column);
228 228
	std::cerr << errmsg.toLocal8Bit().data() << std::endl;
229
	QMessageBox::warning( 0, "Warning", errmsg );
229
	QMessageBox::warning( 0, tr("Warning"), errmsg );
230 230
	qFile.close();
231 231
	return;
232 232
    }
......
252 252
    else
253 253
    {
254 254
        std::cerr << "Module " << xName.ascii() << " not found" << std::endl;
255
	QMessageBox::warning( 0, "Warning", "Module " + xName + " not found" );
255
	QMessageBox::warning( 0, tr("Warning"), tr("Module ") + xName + tr(" not found") );
256 256
        return;
257 257
    }
258 258
#else
......
295 295
    }
296 296
    else
297 297
    {
298
      QMessageBox::warning( 0, "Warning", "Cannot find man page " + manPath );
298
      QMessageBox::warning( 0, tr("Warning"), tr("Cannot find man page ") + manPath );
299 299
    }
300 300
    
301 301
    connect ( &mProcess, SIGNAL(readyReadStandardOutput()), this, SLOT(readStdout()));
......
367 367

  
368 368
    if ( arguments.size() == 0 ) 
369 369
    {
370
	QMessageBox::warning( 0, "Warning", "Cannot find module " 
370
	QMessageBox::warning( 0, tr("Warning"), tr("Cannot find module ") 
371 371
                                  + mXName );
372 372
        return;
373 373
    }
......
385 385
         || (process.exitCode() != 0 && process.exitCode() != 255) )
386 386
    {
387 387
        std::cerr << "process.exitCode() = " <<  process.exitCode() << std::endl;
388
	QMessageBox::warning( 0, "Warning", "Cannot start module " + mXName + "<br>"
388
	QMessageBox::warning( 0, tr("Warning"), tr("Cannot start module ") + mXName + "<br>"
389 389
		  + cmd + " " + arguments.join(" ") + "<br>"
390 390
                  + QString(process.readAllStandardOutput()) + "<br>"
391 391
                  + QString(process.readAllStandardError()) );
......
398 398
    QString err;
399 399
    int line, column;
400 400
    if ( !gDoc.setContent( (QByteArray)gDescArray, &err, &line, &column ) ) {
401
	QString errmsg = "Cannot read module description (" + mXName + "):\n" + err + "\nat line "
402
	                 + QString::number(line) + " column " + QString::number(column);
401
	QString errmsg = tr("Cannot read module description (") + mXName + tr("):\n") + err + tr("\nat line ")
402
	                 + QString::number(line) + tr(" column ") + QString::number(column);
403 403
	std::cerr << errmsg.toLocal8Bit().data() << std::endl;
404 404
	std::cerr << QString(gDescArray).local8Bit().data() << std::endl;
405 405
	std::cerr << QString(errArray).local8Bit().data() << std::endl;
406
	QMessageBox::warning( 0, "Warning", errmsg );
406
	QMessageBox::warning( 0, tr("Warning"), errmsg );
407 407
	return;
408 408
    }
409 409
    QDomElement gDocElem = gDoc.documentElement();
......
423 423

  
424 424
	    QDomNode gnode = QgsGrassModule::nodeByKey ( gDocElem, key );
425 425
	    if ( gnode.isNull() ) {
426
		QMessageBox::warning( 0, "Warning", "Cannot find key " +  key );
426
		QMessageBox::warning( 0, tr("Warning"), tr("Cannot find key ") +  key );
427 427
		return;
428 428
	    }
429 429

  
......
562 562
	}
563 563
    }
564 564

  
565
    QMessageBox::warning( 0, "Warning", "Item with id " + id + " not found" );
565
    QMessageBox::warning( 0, tr("Warning"), tr("Item with id ") + id + tr(" not found" ) );
566 566
    return 0;
567 567
}
568 568

  
......
805 805
                    QgsGrass::getDefaultLocation(), 
806 806
                    QgsGrass::getDefaultMapset(), &currentWindow ) )
807 807
    {
808
        QMessageBox::warning( 0, "Warning", "Cannot get current region" );
808
        QMessageBox::warning( 0, tr("Warning"), tr("Cannot get current region") );
809 809
        return list;
810 810
    }
811 811

  
......
839 839
                QgsGrass::getDefaultLocation(), mapset, map,
840 840
                &window ) )
841 841
        {
842
	    QMessageBox::warning( 0, "Warning", "Cannot check region "
843
                                  "of map " + item->currentMap() );
842
	    QMessageBox::warning( 0, tr("Warning"), tr("Cannot check region "
843
                                  "of map ") + item->currentMap() );
844 844
            continue;
845 845
        }
846 846

  
......
865 865
                    QgsGrass::getDefaultLocation(), 
866 866
                    QgsGrass::getDefaultMapset(), window ) )
867 867
    {
868
        QMessageBox::warning( 0, "Warning", "Cannot get current region" );
868
        QMessageBox::warning( 0, tr("Warning"), tr("Cannot get current region" ) );
869 869
        return false;
870 870
    }
871 871

  
......
903 903
                QgsGrass::getDefaultLocation(), mapset, map,
904 904
                &mapWindow ) )
905 905
        {
906
	    QMessageBox::warning( 0, "Warning", "Cannot set region "
907
                                  "of map " + item->currentMap() );
906
	    QMessageBox::warning( 0, tr("Warning"), tr("Cannot set region "
907
                                  "of map ") + item->currentMap() );
908 908
            return false;
909 909
        }
910 910

  
......
1001 1001
    path.append ( ".qgm" );
1002 1002
    QFile qFile ( path );
1003 1003
    if ( !qFile.exists() ) {
1004
	return QString ( "Not available, decription not found (" + path + ")" );
1004
	return QString ( tr("Not available, decription not found (") + path + tr(")") );
1005 1005
    }
1006 1006
    if ( ! qFile.open( QIODevice::ReadOnly ) ) {
1007
	return QString ( "Not available, cannot open description (" + path + ")" ) ;
1007
	return QString ( tr("Not available, cannot open description (") + path + tr(")") ) ;
1008 1008
    }
1009 1009
    QDomDocument qDoc ( "qgisgrassmodule" );
1010 1010
    QString err;
1011 1011
    int line, column;
1012 1012
    if ( !qDoc.setContent( &qFile,  &err, &line, &column ) ) {
1013
	QString errmsg = "Cannot read module file (" + path + "):\n" + err + "\nat line "
1014
	                 + QString::number(line) + " column " + QString::number(column);
1013
	QString errmsg = tr("Cannot read module file (") + path + tr("):\n") + err + tr("\nat line ")
1014
	                 + QString::number(line) + tr(" column ") + QString::number(column);
1015 1015
	std::cerr << errmsg.toLocal8Bit().data() << std::endl;
1016
	QMessageBox::warning( 0, "Warning", errmsg );
1016
	QMessageBox::warning( 0, tr("Warning"), errmsg );
1017 1017
	qFile.close();
1018
	return QString ( "Not available, incorrect description (" + path + ")" );
1018
	return QString ( tr("Not available, incorrect description (") + path + tr(")") );
1019 1019
    }
1020 1020
    qFile.close();
1021 1021
    QDomElement qDocElem = qDoc.documentElement();
......
1167 1167
            {
1168 1168
                err.append ( readyErrors.at(i) + "<br>" );
1169 1169
            }
1170
            QMessageBox::warning ( 0, "Warning", err );
1170
            QMessageBox::warning ( 0, tr("Warning"), err );
1171 1171
            return;
1172 1172
        }
1173 1173

  
......
1178 1178
        {
1179 1179
	    if ( !mOptions->inputRegion ( &tempWindow, false ) )
1180 1180
            {
1181
		QMessageBox::warning ( 0, "Warning", "Cannot get input region" );
1181
		QMessageBox::warning ( 0, tr("Warning"), tr("Cannot get input region") );
1182 1182
		return;
1183 1183
            }
1184 1184
            resetRegion = true;
......
1190 1190
	    {
1191 1191
                if  ( QgsGrass::versionMajor() >= 6 && QgsGrass::versionMinor() >= 1 )
1192 1192
                {
1193
		    int ret = QMessageBox::question ( 0, "Warning", 
1194
				  "Input " + outsideRegion.join(",")
1195
				  + " outside current region!",  
1196
				"Use input region", "Continue", "Cancel" );
1193
		    int ret = QMessageBox::question ( 0, tr("Warning"), 
1194
				  tr("Input ") + outsideRegion.join(",")
1195
				  + tr(" outside current region!"),  
1196
				tr("Use input region"), tr("Continue"), tr("Cancel") );
1197 1197

  
1198 1198
		    if ( ret == 2 ) return;
1199 1199
		    if ( ret == 0 ) resetRegion = true;
1200 1200
                }
1201 1201
                else 
1202 1202
                {
1203
		    int ret = QMessageBox::question ( 0, "Warning", 
1204
				  "Input " + outsideRegion.join(",")
1205
				  + " outside current region!",  
1206
				  "Continue", "Cancel" );
1203
		    int ret = QMessageBox::question ( 0, tr("Warning"), 
1204
				  tr("Input ") + outsideRegion.join(",")
1205
				  + tr(" outside current region!"),  
1206
				  tr("Continue"), tr("Cancel") );
1207 1207

  
1208 1208
		    if ( ret == 1 ) return;
1209 1209
                }
......
1212 1212
                {
1213 1213
		    if ( !mOptions->inputRegion ( &tempWindow, true ) )
1214 1214
		    {
1215
			QMessageBox::warning ( 0, "Warning", 
1216
                                     "Cannot get input region" );
1215
			QMessageBox::warning ( 0, tr("Warning"), 
1216
                                     tr("Cannot get input region" ) );
1217 1217
			return;
1218 1218
		    }
1219 1219
                }
......
1224 1224
        QStringList outputExists = mOptions->checkOutput();
1225 1225
        if ( outputExists.size() > 0 )
1226 1226
        {
1227
            int ret = QMessageBox::question ( 0, "Warning", 
1228
                          "Output " + outputExists.join(",")
1229
                          + " exists! Overwrite?",  
1227
            int ret = QMessageBox::question ( 0, tr("Warning"), 
1228
                          tr("Output ") + outputExists.join(",")
1229
                          + tr(" exists! Overwrite?"),  
1230 1230
                          QMessageBox::Yes,  QMessageBox::No );
1231 1231

  
1232 1232
            if ( ret == QMessageBox::No ) return;
......
1314 1314

  
1315 1315
	if ( execArguments.size() == 0 ) 
1316 1316
	{
1317
	    QMessageBox::warning( 0, "Warning", "Cannot find module " 
1317
	    QMessageBox::warning( 0, tr("Warning"), tr("Cannot find module ") 
1318 1318
				      + mXName );
1319 1319
	    return;
1320 1320
	}
......
1386 1386
        mProcess.waitForStarted();
1387 1387
        if ( mProcess.state() != QProcess::Running )
1388 1388
        {
1389
            QMessageBox::warning( 0, "Warning", "Cannot start module: " 
1389
            QMessageBox::warning( 0, tr("Warning"), tr("Cannot start module: ") 
1390 1390
                                  + mProcess.errorString() );
1391 1391
	    return;
1392 1392
        }
......
1405 1405
    std::cerr << "exitCode = " << exitCode << std::endl;
1406 1406
    if ( exitStatus == QProcess::NormalExit ) {
1407 1407
	if ( exitCode == 0 ) {
1408
	    mOutputTextBrowser->append( "<B>Successfully finished</B>" );
1408
	    mOutputTextBrowser->append( tr("<B>Successfully finished</B>") );
1409 1409
	    mProgressBar->setProgress ( 100, 100 ); 
1410 1410
            mSuccess = true;
1411 1411
            mViewButton->setEnabled(true);
1412 1412
	    mOptions->thawOutput();
1413 1413
	} else {
1414
	    mOutputTextBrowser->append( "<B>Finished with error</B>" );
1414
	    mOutputTextBrowser->append( tr("<B>Finished with error</B>") );
1415 1415
	}
1416 1416
    } else {
1417
	mOutputTextBrowser->append( "<B>Module crashed or killed</B>" );
1417
	mOutputTextBrowser->append( tr("<B>Module crashed or killed</B>") );
1418 1418
    }
1419 1419
    mRunButton->setText( tr("Run") );
1420 1420
}
......
1953 1953
    { 
1954 1954
       if ( mLineEdits.at(0)->text().trimmed().length() == 0 )
1955 1955
       {
1956
           error.append ( title() + ":&nbsp;missing value" );
1956
           error.append ( title() + tr(":&nbsp;missing value") );
1957 1957
       }
1958 1958
    }
1959 1959
    return error;
......
2041 2041

  
2042 2042
	    if ( optNode.isNull() ) 
2043 2043
	    {
2044
		QMessageBox::warning( 0, "Warning", "Cannot find typeoption " +  opt );
2044
		QMessageBox::warning( 0, tr("Warning"), tr("Cannot find typeoption ") +  opt );
2045 2045
	    } 
2046 2046
	    else 
2047 2047
	    {
......
2050 2050
		QDomNode valuesNode = optNode.namedItem ( "values" );
2051 2051
		if ( valuesNode.isNull() ) 
2052 2052
		{
2053
		    QMessageBox::warning( 0, "Warning", "Cannot find values for typeoption " +  opt );
2053
		    QMessageBox::warning( 0, tr("Warning"), tr("Cannot find values for typeoption ") +  opt );
2054 2054
		}
2055 2055
		else
2056 2056
		{
......
2111 2111

  
2112 2112
	    if ( optNode.isNull() ) 
2113 2113
	    {
2114
		QMessageBox::warning( 0, "Warning", "Cannot find layeroption " +  opt );
2114
		QMessageBox::warning( 0, tr("Warning"), tr("Cannot find layeroption ") +  opt );
2115 2115
	    } 
2116 2116
	    else 
2117 2117
	    {
......
2128 2128
    } 
2129 2129
    else 
2130 2130
    {
2131
	QMessageBox::warning( 0, "Warning", "GRASS element " + element + " not supported" );
2131
	QMessageBox::warning( 0, tr("Warning"), tr("GRASS element ") + element + tr(" not supported") );
2132 2132
    }
2133 2133

  
2134 2134
    if ( qdesc.attribute("update") == "yes" ) {
......
2152 2152
        mRegionButton = new QPushButton( 
2153 2153
                    QIcon(iconPath+"grass_set_region.png"), "" );
2154 2154

  
2155
        mRegionButton->setToolTip ( "Use region of this map" );
2155
        mRegionButton->setToolTip ( tr("Use region of this map") );
2156 2156
        mRegionButton->setCheckable ( true );
2157 2157
        mRegionButton->setSizePolicy (QSizePolicy::Minimum, 
2158 2158
                                      QSizePolicy:: Preferred );
......
2480 2480
    std::cerr << "count = " << mLayerComboBox->count() << std::endl;
2481 2481
    if ( mLayerComboBox->count() == 0 )
2482 2482
    {
2483
       error.append ( title() + ":&nbsp;no input" );
2483
       error.append ( title() + tr(":&nbsp;no input") );
2484 2484
    }
2485 2485
    return error;
2486 2486
}
......
2576 2576

  
2577 2577
	if ( optNode.isNull() ) 
2578 2578
	{
2579
	    QMessageBox::warning( 0, "Warning", "Cannot find layeroption " +  opt );
2579
	    QMessageBox::warning( 0, tr("Warning"), tr("Cannot find layeroption ") +  opt );
2580 2580
	} 
2581 2581
	else 
2582 2582
	{
......
2698 2698
            //  -> layer -> PostGIS -> warning
2699 2699
	    if  ( mOgrLayers[current].length() > 0 )
2700 2700
	    {
2701
	         QMessageBox::warning( 0, "Warning", 
2702
                       "PostGIS driver in OGR does not support schemas!<br>"
2701
	         QMessageBox::warning( 0, tr("Warning"), 
2702
                       tr("PostGIS driver in OGR does not support schemas!<br>"
2703 2703
                       "Only the table name will be used.<br>"
2704 2704
                       "It can result in wrong input if more tables of the same name<br>"
2705
                       "are present in the database." );
2705
                       "are present in the database.") );
2706 2706
	    }
2707 2707
        }
2708 2708

  
......
2723 2723
    std::cerr << "count = " << mLayerComboBox->count() << std::endl;
2724 2724
    if ( mLayerComboBox->count() == 0 )
2725 2725
    {
2726
       error.append ( title() + ":&nbsp;no input" );
2726
       error.append ( title() + tr(":&nbsp;no input" ) );
2727 2727
    }
2728 2728
    return error;
2729 2729
}
......
2745 2745
    QString tit;
2746 2746
    if ( mDescription.isEmpty() ) 
2747 2747
    {
2748
	tit = "Attribute field";
2748
	tit = tr("Attribute field");
2749 2749
    } 
2750 2750
    else 
2751 2751
    {
......
2835 2835
    QString tit;
2836 2836
    if ( mDescription.isEmpty() ) 
2837 2837
    {
2838
	tit = "Attribute field";
2838
	tit = tr("Attribute field");
2839 2839
    } 
2840 2840
    else 
2841 2841
    {
......
2945 2945
    QString tit;
2946 2946
    if ( mDescription.isEmpty() ) 
2947 2947
    {
2948
	tit = "File";
2948
	tit = tr("File");
2949 2949
    } 
2950 2950
    else 
2951 2951
    {
......
3060 3060

  
3061 3061
    if ( path.length() == 0 )
3062 3062
    {
3063
        error.append ( title() + ":&nbsp;missing value" );
3063
        error.append ( title() + tr(":&nbsp;missing value") );
3064 3064
        return error;
3065 3065
    }
3066 3066

  
3067 3067
    QFileInfo fi(path);
3068 3068
    if ( !fi.dir().exists() )
3069 3069
    {
3070
        error.append ( title() + ":&nbsp;directory does not exist" );
3070
        error.append ( title() + tr(":&nbsp;directory does not exist") );
3071 3071
    }
3072 3072
    
3073 3073
    return error;
src/plugins/grass/qgsgrassmapcalc.cpp (working copy)
239 239
    // Add output object
240 240
    mOutput = new QgsGrassMapcalcObject( QgsGrassMapcalcObject::Output);
241 241
    mOutput->setId ( nextId() );
242
    mOutput->setValue ( "Output" );
242
    mOutput->setValue ( tr("Output") );
243 243
    mOutput->setCanvas(mCanvas);
244 244
    mOutput->setCenter ( (int)(mCanvas->width()-mOutput->width()), (int)(mCanvas->height()/2) ), 
245 245
    mCanvas->update();
......
1385 1385
	    }
1386 1386

  
1387 1387
	    case QgsGrassMapcalcObject::Output :
1388
		obj->setValue ( "Output" );
1388
		obj->setValue ( tr("Output") );
1389 1389
		mOutput = obj;
1390 1390
		break;
1391 1391

  
src/plugins/grass/qgsgrassmodel.cpp (working copy)
131 131
    switch ( mType ) 
132 132
    {
133 133
	case QgsGrassModel::Location:
134
	    return "Location: " + mLocation; 
134
	    return QObject::tr("Location: ","Metadata in GRASS Browser") + mLocation; 
135 135
	    break;
136 136
	case QgsGrassModel::Mapset:
137
	    return "Location: " + mLocation + "<br>Mapset: " + mMapset; 
137
	    return QObject::tr("Location: ","Metadata in GRASS Browser") + mLocation + QObject::tr("<br>Mapset: ","Metadata in GRASS Browser") + mMapset; 
138 138
	    break;
139 139
	case QgsGrassModel::Vectors:
140 140
	case QgsGrassModel::Rasters:
141
	    return "Location: " + mLocation + "<br>Mapset: " + mMapset; 
141
	    return QObject::tr("Location: ") + mLocation + QObject::tr("<br>Mapset: ") + mMapset; 
142 142
	    break;
143 143
	case QgsGrassModel::Raster:
144 144
	  {
145 145
	    QString str = tblStart;
146
	    str += htmlTableRow("<b>Raster</b>", "<b>" + mMap + "</b>" );
146
	    str += htmlTableRow(QObject::tr("<b>Raster</b>"), "<b>" + mMap + "</b>" );
147 147
	    
148 148
	    struct Cell_head head;
149 149
            int rasterType = -1;
......
152 152
	    if( G_get_cellhd( mMap.toLocal8Bit().data(), 
153 153
			      mMapset.toLocal8Bit().data(), &head) != 0 ) 
154 154
	    {
155
		str += "<tr><td colspan=2>Cannot open raster header</td></tr>";
155
		str += "<tr><td colspan=2>" + QObject::tr("Cannot open raster header") + "</td></tr>";
156 156
	    }
157 157
	    else
158 158
	    {
159
		str += htmlTableRow ( "Rows", QString::number(head.rows));
160
		str += htmlTableRow ( "Columns", QString::number(head.cols) );
161
		str += htmlTableRow ( "N-S resolution", QString::number(head.ns_res) );
162
		str += htmlTableRow ( "E-W resolution", QString::number(head.ew_res) );
163
		str += htmlTableRow ( "North", QString::number(head.north) );
164
		str += htmlTableRow ( "South", QString::number(head.south) );
165
		str += htmlTableRow ( "East", QString::number(head.east) );
166
		str += htmlTableRow ( "West", QString::number(head.west) );
159
		str += htmlTableRow ( QObject::tr("Rows"), QString::number(head.rows));
160
		str += htmlTableRow ( QObject::tr("Columns"), QString::number(head.cols) );
161
		str += htmlTableRow ( QObject::tr("N-S resolution"), QString::number(head.ns_res) );
162
		str += htmlTableRow ( QObject::tr("E-W resolution"), QString::number(head.ew_res) );
163
		str += htmlTableRow ( QObject::tr("North"), QString::number(head.north) );
164
		str += htmlTableRow ( QObject::tr("South"), QString::number(head.south) );
165
		str += htmlTableRow ( QObject::tr("East"), QString::number(head.east) );
166
		str += htmlTableRow ( QObject::tr("West"), QString::number(head.west) );
167 167
		
168 168
	        rasterType = G_raster_map_type( mMap.toLocal8Bit().data(),
169 169
		                                mMapset.toLocal8Bit().data() );
......
186 186
		{
187 187
		    format += "unknown";
188 188
		}
189
                str += htmlTableRow ( "Format", format );
189
                str += htmlTableRow ( QObject::tr("Format"), format );
190 190
	    }
191 191

  
192 192
            // Range of values
......
197 197
		double min, max;
198 198
		G_get_fp_range_min_max( &range, &min, &max );
199 199

  
200
		str += htmlTableRow ( "Minimum value", QString::number(min));
201
		str += htmlTableRow ( "Maximum value", QString::number(max));
200
		str += htmlTableRow ( QObject::tr("Minimum value"), QString::number(min));
201
		str += htmlTableRow ( QObject::tr("Maximum value"), QString::number(max));
202 202
	    }
203 203
	    
204 204
            // History
......
209 209
                if ( QString(hist.datsrc_1).length() > 0 
210 210
                     || QString(hist.datsrc_2).length() > 0 )
211 211
                {
212
                    str += htmlTableRow ( "Data source", QString(hist.datsrc_1) + " " 
212
                    str += htmlTableRow ( QObject::tr("Data source"), QString(hist.datsrc_1) + " " 
213 213
		                       + QString(hist.datsrc_2) );
214 214
                }
215 215
                if ( QString(hist.keywrd).length() > 0 ) 
216 216
                { 
217
		    str += htmlTableRow ( "Data description", QString(hist.keywrd) );
217
		    str += htmlTableRow ( QObject::tr("Data description"), QString(hist.keywrd) );
218 218
                }
219 219
                if ( hist.edlinecnt > 0 ) 
220 220
                {
......
223 223
		    {
224 224
			h += QString(hist.edhist[i]) + "<br>";
225 225
		    }
226
		    str += htmlTableRow ( "Comments", h);
226
		    str += htmlTableRow ( QObject::tr("Comments"), h);
227 227
                }
228 228
	    }
229 229

  
......
238 238
                {
239 239
		    if ( Cats.ncats > 0 )
240 240
		    {
241
			str += "<tr><td colspan=2>Categories</td></tr>";
241
			str += "<tr><td colspan=2>" + QObject::tr("Categories") + "</td></tr>";
242 242
			for ( int i = 0; i < Cats.ncats; i++) 
243 243
			{
244 244
			    str += htmlTableRow ( 
......
258 258
	case QgsGrassModel::Vector:
259 259
          {
260 260
	    QString str = tblStart;
261
	    str += htmlTableRow("<b>Vector</b>", "<b>" + mMap + "</b>" );
261
	    str += htmlTableRow(QObject::tr("<b>Vector</b>"), "<b>" + mMap + "</b>" );
262 262

  
263 263
	    QgsGrass::setLocation( mGisbase, mLocation );
264 264
	    
......
271 271
                int is3d = Vect_is_3d (&Map);
272 272

  
273 273
                // Number of elements
274
                str += htmlTableRow ( "Points", QString::number(Vect_get_num_primitives(&Map, GV_POINT)) );
275
                str += htmlTableRow ( "Lines", QString::number(Vect_get_num_primitives(&Map, GV_LINE)) );
276
                str += htmlTableRow ( "Boundaries", QString::number(Vect_get_num_primitives(&Map, GV_BOUNDARY)) );
277
                str += htmlTableRow ( "Centroids", QString::number(Vect_get_num_primitives(&Map, GV_CENTROID)) );
274
                str += htmlTableRow ( QObject::tr("Points"), QString::number(Vect_get_num_primitives(&Map, GV_POINT)) );
275
                str += htmlTableRow ( QObject::tr("Lines"), QString::number(Vect_get_num_primitives(&Map, GV_LINE)) );
276
                str += htmlTableRow ( QObject::tr("Boundaries"), QString::number(Vect_get_num_primitives(&Map, GV_BOUNDARY)) );
277
                str += htmlTableRow ( QObject::tr("Centroids"), QString::number(Vect_get_num_primitives(&Map, GV_CENTROID)) );
278 278
                if ( is3d ) 
279 279
                {
280
                    str += htmlTableRow ( "Faces", QString::number( Vect_get_num_primitives(&Map, GV_FACE) ) );
281
                    str += htmlTableRow ( "Kernels", QString::number( Vect_get_num_primitives(&Map, GV_KERNEL) ) );
280
                    str += htmlTableRow ( QObject::tr("Faces"), QString::number( Vect_get_num_primitives(&Map, GV_FACE) ) );
281
                    str += htmlTableRow ( QObject::tr("Kernels"), QString::number( Vect_get_num_primitives(&Map, GV_KERNEL) ) );
282 282
                }
283 283
                
284
                str += htmlTableRow ( "Areas", QString::number(Vect_get_num_areas(&Map)) );
285
                str += htmlTableRow ( "Islands", QString::number( Vect_get_num_islands(&Map) ) );
284
                str += htmlTableRow ( QObject::tr("Areas"), QString::number(Vect_get_num_areas(&Map)) );
285
                str += htmlTableRow ( QObject::tr("Islands"), QString::number( Vect_get_num_islands(&Map) ) );
286 286

  
287 287

  
288 288
                // Box and dimension
......
297 297
                int proj = window.proj;
298 298

  
299 299
                G_format_northing (box.N, buffer, proj);
300
		str += htmlTableRow ( "North", QString(buffer) );
300
		str += htmlTableRow ( QObject::tr("North"), QString(buffer) );
301 301
                G_format_northing (box.S, buffer, proj);
302
		str += htmlTableRow ( "South", QString(buffer) );
302
		str += htmlTableRow ( QObject::tr("South"), QString(buffer) );
303 303
                G_format_easting (box.E, buffer, proj );
304
		str += htmlTableRow ( "East", QString(buffer) );
304
		str += htmlTableRow ( QObject::tr("East"), QString(buffer) );
305 305
                G_format_easting (box.W, buffer, proj );
306
		str += htmlTableRow ( "West", QString(buffer) );
306
		str += htmlTableRow ( QObject::tr("West"), QString(buffer) );
307 307
                if ( is3d ) 
308 308
                {
309
		    str += htmlTableRow ( "Top", QString::number(box.T) );
310
		    str += htmlTableRow ( "Bottom", QString::number(box.B) );
309
		    str += htmlTableRow ( QObject::tr("Top"), QString::number(box.T) );
310
		    str += htmlTableRow ( QObject::tr("Bottom"), QString::number(box.B) );
311 311
                }
312 312

  
313
		str += htmlTableRow ( "3D", is3d ? "yes" : "no" );
313
		str += htmlTableRow ( "3D", is3d ? QObject::tr("yes") : QObject::tr("no") );
314 314

  
315 315
	        str += "</table>";
316 316

  
317 317
                // History
318 318
                Vect_hist_rewind ( &Map );
319 319
                char hbuffer[1001];
320
		str += "<p>History<br>";
320
		str += "<p>"+ QObject::tr("History<br>");
321 321
                QRegExp rx ( "^-+$" );
322 322
                while ( Vect_hist_read ( hbuffer, 1000, &Map ) != NULL ) {
323 323
                    QString row = QString(hbuffer);
......
344 344
	case QgsGrassModel::VectorLayer:
345 345
          {
346 346
	    QString str = tblStart;
347
	    str += htmlTableRow("<b>Vector</b>", "<b>" + mMap + "</b>" );
348
	    str += htmlTableRow("<b>Layer</b>", "<b>" + mLayer + "</b>" );
347
	    str += htmlTableRow(QObject::tr("<b>Vector</b>"), "<b>" + mMap + "</b>" );
348
	    str += htmlTableRow(QObject::tr("<b>Layer</b>"), "<b>" + mLayer + "</b>" );
349 349

  
350 350
	    QgsGrass::setLocation( mGisbase, mLocation );
351 351
	    
......
364 364
                    int type = QgsGrassProvider::grassLayerType(mLayer);
365 365
                    if (type != -1 )
366 366
                    {
367
	    		str += htmlTableRow("Features", 
367
	    		str += htmlTableRow( QObject::tr("Features"), 
368 368
                              QString::number(Vect_cidx_get_type_count(&Map, field, type)) );
369 369
                    }
370 370

  
......
373 373
                    // Database link
374 374
                    if ( fi ) 
375 375
                    {
376
	    		str += htmlTableRow("Driver", QString(fi->driver) );
377
	    		str += htmlTableRow("Database", QString(fi->database) );
378
	    		str += htmlTableRow("Table", QString(fi->table) );
379
	    		str += htmlTableRow("Key column", QString(fi->key) );
376
	    		str += htmlTableRow(QObject::tr("Driver"), QString(fi->driver) );
377
	    		str += htmlTableRow(QObject::tr("Database"), QString(fi->database) );
378
	    		str += htmlTableRow(QObject::tr("Table"), QString(fi->table) );
379
	    		str += htmlTableRow(QObject::tr("Key column"), QString(fi->key) );
380 380
                    }
381 381
                }
382 382
            }            
src/plugins/grass/qgsgrasstools.cpp (working copy)
102 102
    std::cerr << "QgsGrassTools()" << std::endl;
103 103
    #endif
104 104

  
105
   setWindowTitle ( "GRASS Tools" );
105
   setWindowTitle ( tr("GRASS Tools") );
106 106
//    setupUi(this);
107 107

  
108 108
    mQgisApp = qgisApp;
......
132 132
    connect( mModulesListView, SIGNAL(clicked(Q3ListViewItem *)), 
133 133
		         this, SLOT(moduleClicked( Q3ListViewItem *)) );
134 134

  
135
    QString title = "GRASS Tools: " + QgsGrass::getDefaultLocation()
135
    QString title = tr("GRASS Tools: ") + QgsGrass::getDefaultLocation()
136 136
                + "/" + QgsGrass::getDefaultMapset();
137 137
    setCaption(title);
138 138

  
......
219 219

  
220 220
         if ( !file.exists() ) 
221 221
         {
222
           QMessageBox::warning( 0, "Warning",
223
               "Cannot find MSYS (" + msysPath + ")" );
222
           QMessageBox::warning( 0, tr("Warning"),
223
               tr("Cannot find MSYS (") + msysPath + ")" );
224 224
         } 
225 225
         else
226 226
         {
......
231 231
           proc->waitForStarted();
232 232
           if ( proc->state() != QProcess::Running )
233 233
           {
234
             QMessageBox::warning( 0, "Warning",
235
                 "Cannot start MSYS (" + msysPath + ")" );
234
             QMessageBox::warning( 0, tr("Warning"),
235
                 tr("Cannot start MSYS (") + msysPath + ")" );
236 236
           }
237 237
         }
238 238
         return;
......
242 242
        sh = new QgsGrassShell(this, mTabWidget);
243 243
        m = dynamic_cast<QWidget *> ( sh );
244 244
    #else
245
	QMessageBox::warning( 0, "Warning", "GRASS Shell is not compiled." );
245
	QMessageBox::warning( 0, tr("Warning"), tr("GRASS Shell is not compiled.") );
246 246
    #endif // HAVE_OPENPTY
247 247

  
248 248
#endif // ! WIN32
......
291 291
    QFile file ( filePath );
292 292

  
293 293
    if ( !file.exists() ) {
294
	QMessageBox::warning( 0, "Warning", "The config file (" + filePath + ") not found." );
294
	QMessageBox::warning( 0, tr("Warning"), tr("The config file (") + filePath + tr(") not found.") );
295 295
	return false;
296 296
    }
297 297
    if ( ! file.open( QIODevice::ReadOnly ) ) {
298
	QMessageBox::warning( 0, "Warning", "Cannot open config file (" + filePath + ")" );
298
	QMessageBox::warning( 0, tr("Warning"), tr("Cannot open config file (") + filePath + tr(")") );
299 299
	return false;
300 300
    }
301 301
    
......
303 303
    QString err;
304 304
    int line, column;
305 305
    if ( !doc.setContent( &file,  &err, &line, &column ) ) {
306
	QString errmsg = "Cannot read config file (" + filePath + "):\n" + err + "\nat line "  
307
	                 + QString::number(line) + " column " + QString::number(column);
306
	QString errmsg = tr("Cannot read config file (") + filePath + "):\n" + err + tr("\nat line ")  
307
	                 + QString::number(line) + tr(" column ") + QString::number(column);
308 308
	std::cerr << errmsg.toLocal8Bit().data() << std::endl;
309
	QMessageBox::warning( 0, "Warning", errmsg );
309
	QMessageBox::warning( 0, tr("Warning"), errmsg );
310 310
	file.close();
311 311
	return false;
312 312
    }
......
386 386
    std::cerr << "QgsGrassTools::mapsetChanged()" << std::endl;
387 387
    #endif
388 388

  
389
    QString title = "GRASS Tools: " + QgsGrass::getDefaultLocation()
389
    QString title = tr("GRASS Tools: ") + QgsGrass::getDefaultLocation()
390 390
                + "/" + QgsGrass::getDefaultMapset();
391 391
    setCaption(title);
392 392

  
src/plugins/grass/qgsgrassshell.cpp (working copy)
67 67
    mSkipLines = 2;
68 68

  
69 69
#ifdef WIN32
70
    QMessageBox::warning( 0, "Warning", 
71
              "GRASS Shell is not supported on Windows." );
70
    QMessageBox::warning( 0, tr("Warning"), 
71
              tr("GRASS Shell is not supported on Windows.") );
72 72
    return;
73 73
#else 
74 74

  
......
87 87
    //mText->setFocusPolicy ( QWidget::NoFocus ); // To get key press directly
88 88

  
89 89
#ifndef HAVE_OPENPTY
90
    mText->append ( "GRASS shell is not supported" ); 
90
    mText->append ( tr("GRASS shell is not supported") ); 
91 91
    return;
92 92
#endif
93 93

  
......
114 114
    int ret =  openpty ( &mFdMaster, &fdSlave, NULL, NULL, NULL );
115 115
    if ( ret != 0 )
116 116
    {
117
	QMessageBox::warning( 0, "Warning", "Cannot open pseudo terminal" );
117
	QMessageBox::warning( 0, tr("Warning"), tr("Cannot open pseudo terminal") );
118 118
	return;
119 119
    }
120 120
    fchown( fdSlave, uid, (gid_t)-1);
......
144 144
#endif
145 145
    if ( pid == -1 )
146 146
    {
147
	QMessageBox::warning( 0, "Warning", "Cannot fork shell" );
147
	QMessageBox::warning( 0, tr("Warning"), tr("Cannot fork shell") );
148 148
	return;
149 149
    }
150 150

  
......
166 166
        int fd = open ( (char*) slaveName.ascii(), O_RDWR);
167 167
        if ( fd < 0 ) 
168 168
	{
169
	    QMessageBox::warning( 0, "Warning", "Cannot open slave file "
170
                                                "in child process" );
169
	    QMessageBox::warning( 0, tr("Warning"), tr("Cannot open slave file "
170
                                                "in child process") );
171 171
	    return;
172 172
	}
173 173

  
src/widgets/projectionselector/qgsprojectionselector.cpp (working copy)
492 492

  
493 493
  // User defined coordinate system node
494 494
  // Make in an italic font to distinguish them from real projections
495
  mUserProjList = new QTreeWidgetItem(lstCoordinateSystems,QStringList("User Defined Coordinate Systems"));
495
  mUserProjList = new QTreeWidgetItem(lstCoordinateSystems,QStringList(tr("User Defined Coordinate Systems")));
496 496

  
497 497
  QFont fontTemp = mUserProjList->font(0);
498 498
  fontTemp.setItalic(TRUE);
......
568 568
  // Make in an italic font to distinguish them from real projections
569 569
  //
570 570
  // Geographic coordinate system node
571
  mGeoList = new QTreeWidgetItem(lstCoordinateSystems,QStringList("Geographic Coordinate Systems"));
571
  mGeoList = new QTreeWidgetItem(lstCoordinateSystems,QStringList(tr("Geographic Coordinate Systems")));
572 572

  
573 573
  QFont fontTemp = mGeoList->font(0);
574 574
  fontTemp.setItalic(TRUE);
575 575
  mGeoList->setFont(0, fontTemp);
576 576

  
577 577
  // Projected coordinate system node
578
  mProjList = new QTreeWidgetItem(lstCoordinateSystems,QStringList("Projected Coordinate Systems"));
578
  mProjList = new QTreeWidgetItem(lstCoordinateSystems,QStringList(tr("Projected Coordinate Systems")));
579 579

  
580 580
  fontTemp = mProjList->font(0);
581 581
  fontTemp.setItalic(TRUE);