added_some_i18n_stuff.diff

balazovic-mailbox-sk -, 2006-04-03 07:51 AM

Download (27.4 KB)

View differences:

src/plugins/grid_maker/plugin.cpp (working copy)
107 107
 */
108 108
void QgsGridMakerPlugin::initGui()
109 109
{
110
  QMenu *pluginMenu = qGisInterface->getPluginMenu("&Graticules");
111
  menuId = pluginMenu->insertItem(QIcon(icon),"&GraticuleMaker", this, SLOT(run()));
110
  QMenu *pluginMenu = qGisInterface->getPluginMenu(tr("&Graticules"));
111
  menuId = pluginMenu->insertItem(QIcon(icon),tr("&GraticuleMaker"), this, SLOT(run()));
112 112

  
113
  pluginMenu->setWhatsThis(menuId, "Creates a graticule (grid) and stores the result as a shapefile");
113
  pluginMenu->setWhatsThis(menuId, tr("Creates a graticule (grid) and stores the result as a shapefile"));
114 114

  
115 115
  // Create the action for tool
116 116
#if QT_VERSION < 0x040000
117
  myQActionPointer = new QAction("Graticule Creator", QIcon(icon), "&Wmi",0, this, "run");
117
  myQActionPointer = new QAction(tr("Graticule Creator"), QIcon(icon), "&Wmi",0, this, "run");
118 118
#else
119
  myQActionPointer = new QAction(QIcon(icon), "Graticule Creator", this);
119
  myQActionPointer = new QAction(QIcon(icon), tr("Graticule Creator"), this);
120 120
#endif
121
  myQActionPointer->setWhatsThis("Creates a graticule (grid) and stores the result as a shapefile");
121
  myQActionPointer->setWhatsThis(tr("Creates a graticule (grid) and stores the result as a shapefile"));
122 122
  // Connect the action to the run
123 123
  connect(myQActionPointer, SIGNAL(activated()), this, SLOT(run()));
124 124

  
......
158 158
void QgsGridMakerPlugin::unload()
159 159
{
160 160
  // remove the GUI
161
  qGisInterface->removePluginMenuItem("&Graticules",menuId);
161
  qGisInterface->removePluginMenuItem(tr("&Graticules"),menuId);
162 162
  qGisInterface->removeToolBarIcon(myQActionPointer);
163 163
  delete myQActionPointer;
164 164
}
src/plugins/grid_maker/plugingui.cpp (working copy)
50 50

  
51 51
  if (leOutputShapeFile->text().isEmpty())
52 52
  {
53
    QMessageBox::warning( 0, "QGIS - Grid Maker",
54
            QString("Please enter the file name before pressing OK!." ));
53
    QMessageBox::warning( 0, tr("QGIS - Grid Maker"),
54
            QString(tr("Please enter the file name before pressing OK!.") ));
55 55
    return;
56 56
  }
57 57

  
......
60 60
  double myLongitudeInterval =  leLongitudeInterval->text().toDouble(&myFlag);
61 61
  if (!myFlag)
62 62
  {
63
    QMessageBox::warning( 0, "QGIS - Grid Maker",
64
            QString("Longitude Interval is invalid - please correct and try again." ));
63
    QMessageBox::warning( 0, tr("QGIS - Grid Maker"),
64
            QString(tr("Longitude Interval is invalid - please correct and try again." )));
65 65
    return;
66 66
  }
67 67
  myFlag=false;//reset test flag
68 68
  double myLatitudeInterval =  leLatitudeInterval->text().toDouble(&myFlag);
69 69
  if (!myFlag)
70 70
  {
71
    QMessageBox::warning( 0, "QGIS - Grid Maker",
72
            QString("Latitude Interval is invalid - please correct and try again." ));
71
    QMessageBox::warning( 0, tr("QGIS - Grid Maker"),
72
            QString(tr("Latitude Interval is invalid - please correct and try again." )));
73 73
    return;
74 74
  }
75 75
  myFlag=false;//reset test flag
76 76
  double myLongitudeOrigin =  leOriginLongitude->text().toDouble(&myFlag);
77 77
  if (!myFlag)
78 78
  {
79
    QMessageBox::warning( 0, "QGIS - Grid Maker",
80
            QString("Longitude Origin is invalid - please correct and try again.." ));
79
    QMessageBox::warning( 0, tr("QGIS - Grid Maker"),
80
            QString(tr("Longitude Origin is invalid - please correct and try again.." )));
81 81
    return;
82 82
  }
83 83
  myFlag=false;//reset test flag
84 84
  double myLatitudeOrigin =  leOriginLatitude->text().toDouble(&myFlag);
85 85
  if (!myFlag)
86 86
  {
87
    QMessageBox::warning( 0, "QGIS - Grid Maker",
88
            QString("Latitude Origin is invalid - please correct and try again." ));
87
    QMessageBox::warning( 0, tr("QGIS - Grid Maker"),
88
            QString(tr("Latitude Origin is invalid - please correct and try again." )));
89 89
    return;
90 90
  }
91 91
  myFlag=false;//reset test flag
92 92
  double myEndPointLongitude = leEndPointLongitude->text().toDouble(&myFlag);
93 93
  if (!myFlag)
94 94
  {
95
    QMessageBox::warning( 0, "QGIS - Grid Maker",
96
            QString("End Point Longitude is invalid - please correct and try again." ));
95
    QMessageBox::warning( 0, tr("QGIS - Grid Maker"),
96
            QString(tr("End Point Longitude is invalid - please correct and try again." )));
97 97
    return;
98 98
  }
99 99
  myFlag=false;//reset test flag
100 100
  double myEndPointLatitude = leEndPointLatitude->text().toDouble(&myFlag);
101 101
  if (!myFlag)
102 102
  {
103
    QMessageBox::warning( 0, "QGIS - Grid Maker",
104
            QString("End Point Latitude is invalid - please correct and try again." ));
103
    QMessageBox::warning( 0, tr("QGIS - Grid Maker"),
104
            QString(tr("End Point Latitude is invalid - please correct and try again." )));
105 105
    return;
106 106
  }
107 107

  
......
161 161
  std::cout << " Gps File Importer Gui::pbnSelectOutputFile_clicked() " << std::endl;
162 162
  QString myOutputFileNameQString = QFileDialog::getSaveFileName(
163 163
          this,
164
          "Choose a filename to save under",
164
          tr("Choose a filename to save under"),
165 165
          ".",
166
          "ESRI Shapefile (*.shp)");
166
          tr("ESRI Shapefile (*.shp)"));
167 167

  
168 168
  if (myOutputFileNameQString.right(4) != ".shp")
169 169
    myOutputFileNameQString += ".shp";
src/plugins/delimited_text/qgsdelimitedtextplugin.cpp (working copy)
101 101
 */
102 102
void QgsDelimitedTextPlugin::initGui()
103 103
{
104
  QMenu *pluginMenu = qGisInterface->getPluginMenu("&Delimited text");
105
  menuId = pluginMenu->insertItem(QIcon(icon),"&Add Delimited Text Layer", this, SLOT(run()));
104
  QMenu *pluginMenu = qGisInterface->getPluginMenu(tr("&Delimited text"));
105
  menuId = pluginMenu->insertItem(QIcon(icon),tr("&Add Delimited Text Layer"), this, SLOT(run()));
106 106

  
107
  pluginMenu->setWhatsThis(menuId, "Add a delimited text file as a map layer. "
108
      "The file must have a header row containing the field names. "
109
      "X and Y fields are required and must contain coordinates in decimal units.");
107
  pluginMenu->setWhatsThis(menuId, tr("Add a delimited text file as a map layer. ")+
108
      tr("The file must have a header row containing the field names. ")+
109
      tr("X and Y fields are required and must contain coordinates in decimal units."));
110 110

  
111 111
  // Create the action for tool
112
  myQActionPointer = new QAction(QIcon(icon), "Add Delimited Text Layer", this);
112
  myQActionPointer = new QAction(QIcon(icon), tr("Add Delimited Text Layer"), this);
113 113

  
114
  myQActionPointer->setWhatsThis("Add a delimited text file as a map layer. "
115
      "The file must have a header row containing the field names. "
116
      "X and Y fields are required and must contain coordinates in decimal units.");
114
  myQActionPointer->setWhatsThis(tr("Add a delimited text file as a map layer. ")+
115
      tr("The file must have a header row containing the field names. ")+
116
      tr("X and Y fields are required and must contain coordinates in decimal units."));
117 117
  // Connect the action to the run
118 118
  connect(myQActionPointer, SIGNAL(activated()), this, SLOT(run()));
119 119
  // Add the icon to the toolbar
......
154 154
void QgsDelimitedTextPlugin::unload()
155 155
{
156 156
  // remove the GUI
157
  qGisInterface->removePluginMenuItem("&Delimited text",menuId);
157
  qGisInterface->removePluginMenuItem(tr("&Delimited text"),menuId);
158 158
  qGisInterface->removeToolBarIcon(myQActionPointer); 
159 159
  delete myQActionPointer;
160 160
}
src/plugins/geoprocessing/qgspggeoprocessing.cpp (working copy)
75 75
  QMenu *pluginMenu = qI->getPluginMenu(tr("&Geoprocessing"));
76 76
  menuId = pluginMenu->insertItem(QIcon(icon_buffer),tr("&Buffer Features"), this, SLOT(buffer()));
77 77

  
78
  pluginMenu->setWhatsThis(menuId, tr("Create a buffer for a PostgreSQL layer. "
79
      "A new layer is created in the database with the buffered features."));
78
  pluginMenu->setWhatsThis(menuId, tr("Create a buffer for a PostgreSQL layer. " +
79
      tr("A new layer is created in the database with the buffered features.")));
80 80

  
81 81
  // Create the action for tool
82 82
  bufferAction = new QAction(QIcon(icon_buffer), tr("Buffer features"), this);
83
  bufferAction->setWhatsThis(tr("Create a buffer for a PostgreSQL layer. "
84
      "A new layer is created in the database with the buffered features."));
83
  bufferAction->setWhatsThis(tr("Create a buffer for a PostgreSQL layer. " +
84
      tr("A new layer is created in the database with the buffered features.")));
85 85
  // Connect the action to the buffer slot
86 86
  connect(bufferAction, SIGNAL(activated()), this, SLOT(buffer()));
87 87

  
src/plugins/copyright_label/plugin.cpp (working copy)
79 79
 */
80 80
void QgsCopyrightLabelPlugin::initGui()
81 81
{
82
    QMenu *pluginMenu = qGisInterface->getPluginMenu("&Decorations");
83
    menuId = pluginMenu->insertItem(QIcon(icon),"&CopyrightLabel", this, SLOT(run()));
82
    QMenu *pluginMenu = qGisInterface->getPluginMenu(tr("&Decorations"));
83
    menuId = pluginMenu->insertItem(QIcon(icon),tr("&CopyrightLabel"), this, SLOT(run()));
84 84

  
85
    pluginMenu->setWhatsThis(menuId, "Creates a copyright label that is displayed on the map canvas.");
85
    pluginMenu->setWhatsThis(menuId, tr("Creates a copyright label that is displayed on the map canvas."));
86 86

  
87 87
    // Create the action for tool
88
    myQActionPointer = new QAction(QIcon(icon), "Copyright Label", this);
89
    myQActionPointer->setWhatsThis("Creates a copyright label that is displayed on the map canvas.");
88
    myQActionPointer = new QAction(QIcon(icon), tr("Copyright Label"), this);
89
    myQActionPointer->setWhatsThis(tr("Creates a copyright label that is displayed on the map canvas."));
90 90
    // Connect the action to the run
91 91
    connect(myQActionPointer, SIGNAL(activated()), this, SLOT(run()));
92 92
    // This calls the renderer everytime the cnavas has drawn itself
......
204 204
void QgsCopyrightLabelPlugin::unload()
205 205
{
206 206
    // remove the GUI
207
    qGisInterface->removePluginMenuItem("&Decorations",menuId); 
207
    qGisInterface->removePluginMenuItem(tr("&Decorations"),menuId); 
208 208
    qGisInterface->removeToolBarIcon(myQActionPointer);
209 209
    // remove the copyright from the canvas
210 210
    disconnect(qGisInterface->getMapCanvas(), SIGNAL(renderComplete(QPainter *)),
src/plugins/gps_importer/qgsgpsplugin.cpp (working copy)
103 103
 */
104 104
void QgsGPSPlugin::initGui()
105 105
{
106
  QMenu *pluginMenu = mQGisInterface->getPluginMenu("&Gps");
107
  mMenuIdGPS = pluginMenu->insertItem(QIcon(icon),"&Gps Tools", this, SLOT(run()));
108
  mMenuIdGPX = pluginMenu->insertItem(QIcon(icon),"&Create new GPX layer", this, SLOT(createGPX()));
106
  QMenu *pluginMenu = mQGisInterface->getPluginMenu(tr("&Gps"));
107
  mMenuIdGPS = pluginMenu->insertItem(QIcon(icon),tr("&Gps Tools"), this, SLOT(run()));
108
  mMenuIdGPX = pluginMenu->insertItem(QIcon(icon),tr("&Create new GPX layer"), this, SLOT(createGPX()));
109 109

  
110
  pluginMenu->setWhatsThis(mMenuIdGPX, "Creates a new GPX layer and displays it on the map canvas");
110
  pluginMenu->setWhatsThis(mMenuIdGPX, tr("Creates a new GPX layer and displays it on the map canvas"));
111 111

  
112 112
  // add an action to the toolbar
113
  mQActionPointer = new QAction(QIcon(icon), "Gps Tools", this);
113
  mQActionPointer = new QAction(QIcon(icon), tr("Gps Tools"), this);
114 114

  
115
  mQActionPointer->setWhatsThis( "Creates a new GPX layer and displays it on the map canvas");
115
  mQActionPointer->setWhatsThis(tr("Creates a new GPX layer and displays it on the map canvas"));
116 116
  connect(mQActionPointer, SIGNAL(activated()), this, SLOT(run()));
117 117
  mQGisInterface->addToolBarIcon(mQActionPointer);
118 118
}
......
167 167
void QgsGPSPlugin::createGPX() {
168 168
  QString fileName = 
169 169
    QFileDialog::getSaveFileName(mMainWindowPointer,
170
                 "Save new GPX file as...", "." , "GPS eXchange file (*.gpx)");
170
                 tr("Save new GPX file as..."), "." , tr("GPS eXchange file (*.gpx)"));
171 171
  if (!fileName.isEmpty()) {
172 172
    QFileInfo fileInfo(fileName);
173 173
    std::ofstream ofs((const char*)fileName);
174 174
    if (!ofs) {
175
      QMessageBox::warning(NULL, "Could not create file",
176
			   "Unable to create a GPX file with the given name. "
177
			   "Try again with another name or in another "
178
			   "directory.");
175
      QMessageBox::warning(NULL, tr("Could not create file"),
176
			   tr("Unable to create a GPX file with the given name. ")+
177
			   tr("Try again with another name or in another ")+
178
			   tr("directory."));
179 179
      return;
180 180
    }
181 181
    ofs<<"<gpx></gpx>"<<std::endl;
......
202 202
void QgsGPSPlugin::unload()
203 203
{
204 204
  // remove the GUI
205
  mQGisInterface->removePluginMenuItem("&Gps",mMenuIdGPS);
206
  mQGisInterface->removePluginMenuItem("&Gps",mMenuIdGPX);
205
  mQGisInterface->removePluginMenuItem(tr("&Gps"),mMenuIdGPS);
206
  mQGisInterface->removePluginMenuItem(tr("&Gps"),mMenuIdGPX);
207 207
  mQGisInterface->removeToolBarIcon(mQActionPointer);
208 208
  delete mQActionPointer;
209 209
}
......
214 214
  //check if input file is readable
215 215
  QFileInfo fileInfo(filename);
216 216
  if (!fileInfo.isReadable()) {
217
    QMessageBox::warning(NULL, "GPX Loader",
218
			 "Unable to read the selected file.\n"
219
			 "Please reselect a valid file." );
217
    QMessageBox::warning(NULL, tr("GPX Loader"),
218
			 tr("Unable to read the selected file.\n")+
219
			 tr("Please reselect a valid file.") );
220 220
    return;
221 221
  }
222 222
  
......
259 259
			       inputFilename, outputFilename);
260 260
  Q3Process babelProcess(babelArgs);
261 261
  if (!babelProcess.start()) {
262
    QMessageBox::warning(NULL, "Could not start process",
263
			 "Could not start GPSBabel!");
262
    QMessageBox::warning(NULL, tr("Could not start process"),
263
			 tr("Could not start GPSBabel!"));
264 264
    return;
265 265
  }
266 266
  
267 267
  // wait for gpsbabel to finish (or the user to cancel)
268
  Q3ProgressDialog progressDialog("Importing data...", "Cancel", 0,
268
  Q3ProgressDialog progressDialog(tr("Importing data..."), tr("Cancel"), 0,
269 269
				 NULL, 0, true);
270 270
  progressDialog.show();
271 271
  for (int i = 0; babelProcess.isRunning(); ++i) {
......
282 282
  // did we get any data?
283 283
  if (babelProcess.exitStatus() != 0) {
284 284
    QString babelError(babelProcess.readStderr());
285
    QString errorMsg(QString("Could not import data from %1!\n\n")
285
    QString errorMsg(QString(tr("Could not import data from %1!\n\n"))
286 286
		     .arg(inputFilename));
287 287
    errorMsg += babelError;
288
    QMessageBox::warning(NULL, "Error importing data", errorMsg);
288
    QMessageBox::warning(NULL, tr("Error importing data"), errorMsg);
289 289
    return;
290 290
  }
291 291
  
......
329 329
    mDevices[device]->importCommand(mBabelPath, typeArg, 
330 330
				    port, outputFilename);
331 331
  if (babelArgs.isEmpty()) {
332
    QMessageBox::warning(NULL, "Not supported",
333
			 QString("This device does not support downloading "
334
				 "of ") + features + ".");
332
    QMessageBox::warning(NULL, tr("Not supported"),
333
			 QString(tr("This device does not support downloading ") +
334
				 tr("of ")) + features + ".");
335 335
    return;
336 336
  }
337 337
  Q3Process babelProcess(babelArgs);
338 338
  if (!babelProcess.start()) {
339
    QMessageBox::warning(NULL, "Could not start process",
340
			 "Could not start GPSBabel!");
339
    QMessageBox::warning(NULL, tr("Could not start process"),
340
			 tr("Could not start GPSBabel!"));
341 341
    return;
342 342
  }
343 343
  
344 344
  // wait for gpsbabel to finish (or the user to cancel)
345
  Q3ProgressDialog progressDialog("Downloading data...", "Cancel", 0,
345
  Q3ProgressDialog progressDialog(tr("Downloading data..."), tr("Cancel"), 0,
346 346
				 NULL, 0, true);
347 347
  progressDialog.show();
348 348
  for (int i = 0; babelProcess.isRunning(); ++i) {
......
359 359
  // did we get any data?
360 360
  if (babelProcess.exitStatus() != 0) {
361 361
    QString babelError(babelProcess.readStderr());
362
    QString errorMsg("Could not download data from GPS!\n\n");
362
    QString errorMsg(tr("Could not download data from GPS!\n\n"));
363 363
    errorMsg += babelError;
364
    QMessageBox::warning(NULL, "Error downloading data", errorMsg);
364
    QMessageBox::warning(NULL, tr("Error downloading data"), errorMsg);
365 365
    return;
366 366
  }
367 367
  
......
414 414
    mDevices[device]->exportCommand(mBabelPath, typeArg, 
415 415
				       source.left(source.findRev('?')), port);
416 416
  if (babelArgs.isEmpty()) {
417
    QMessageBox::warning(NULL, "Not supported",
418
			 QString("This device does not support uploading of ")+
417
    QMessageBox::warning(NULL, tr("Not supported"),
418
			 QString(tr("This device does not support uploading of "))+
419 419
			 features + ".");
420 420
    return;
421 421
  }
422 422
  Q3Process babelProcess(babelArgs);
423 423
  if (!babelProcess.start()) {
424
    QMessageBox::warning(NULL, "Could not start process",
425
			 "Could not start GPSBabel!");
424
    QMessageBox::warning(NULL, tr("Could not start process"),
425
			 tr("Could not start GPSBabel!"));
426 426
    return;
427 427
  }
428 428
  
429 429
  // wait for gpsbabel to finish (or the user to cancel)
430
  Q3ProgressDialog progressDialog("Uploading data...", "Cancel", 0,
430
  Q3ProgressDialog progressDialog(tr("Uploading data..."), tr("Cancel"), 0,
431 431
				 NULL, 0, true);
432 432
  progressDialog.show();
433 433
  for (int i = 0; babelProcess.isRunning(); ++i) {
......
444 444
  // did we get an error?
445 445
  if (babelProcess.exitStatus() != 0) {
446 446
    QString babelError(babelProcess.readStderr());
447
    QString errorMsg("Error while uploading data to GPS!\n\n");
447
    QString errorMsg(tr("Error while uploading data to GPS!\n\n"));
448 448
    errorMsg += babelError;
449
    QMessageBox::warning(NULL, "Error uploading data", errorMsg);
449
    QMessageBox::warning(NULL, tr("Error uploading data"), errorMsg);
450 450
    return;
451 451
  }
452 452
  
src/plugins/gps_importer/qgsgpsplugingui.cpp (working copy)
131 131
{
132 132
  QString myFileNameQString = 
133 133
    QFileDialog::getSaveFileName(this, //parent dialog
134
				 "Choose a filename to save under",
134
				 tr("Choose a filename to save under"),
135 135
                 "." , //initial dir
136
				 "GPS eXchange format (*.gpx)");
136
				 tr("GPS eXchange format (*.gpx)"));
137 137
  leDLOutput->setText(myFileNameQString);
138 138
}
139 139

  
......
210 210
    dir = ".";
211 211
  QString myFileNameQString = QFileDialog::getOpenFileName(
212 212
          this, //parent dialog
213
          "Select GPX file", //caption
213
          tr("Select GPX file"), //caption
214 214
          dir, //initial dir
215 215
          myFilterString, //filters to select
216 216
          &myFileTypeQString); //the pointer to store selected filter
......
223 223
  QString myFileType;
224 224
  QString myFileName = QFileDialog::getOpenFileName(
225 225
          this, //parent dialog
226
          "Select file and format to import", //caption
226
          tr("Select file and format to import"), //caption
227 227
          ".", //initial dir
228 228
          mBabelFilter,
229 229
          &myFileType); //the pointer to store selected filter
......
251 251
void QgsGPSPluginGui::on_pbnIMPOutput_clicked() {
252 252
  QString myFileNameQString = 
253 253
    QFileDialog::getSaveFileName(this, //parent dialog
254
				 "Choose a filename to save under",
254
				 tr("Choose a filename to save under"),
255 255
                 ".", //initial dir
256
				 "GPS eXchange format (*.gpx)");
256
				 tr("GPS eXchange format (*.gpx)"));
257 257
  leIMPOutput->setText(myFileNameQString);
258 258
}
259 259

  
src/plugins/scale_bar/plugin.cpp (working copy)
95 95
 */
96 96
void QgsScaleBarPlugin::initGui()
97 97
{
98
  QMenu *pluginMenu = qGisInterface->getPluginMenu("&Decorations");
99
  menuId = pluginMenu->insertItem(QIcon(icon),"&ScaleBar", this, SLOT(run()));
98
  QMenu *pluginMenu = qGisInterface->getPluginMenu(tr("&Decorations"));
99
  menuId = pluginMenu->insertItem(QIcon(icon),tr("&ScaleBar"), this, SLOT(run()));
100 100

  
101
  pluginMenu->setWhatsThis(menuId, "Creates a scale bar that is displayed on the map canvas");
101
  pluginMenu->setWhatsThis(menuId, tr("Creates a scale bar that is displayed on the map canvas"));
102 102

  
103 103
  // Create the action for tool
104 104
#if QT_VERSION < 0x040000
105
  myQActionPointer = new QAction("Scale Bar", QIcon(icon), "&Wmi",0, this, "run");
105
  myQActionPointer = new QAction(tr("Scale Bar"), QIcon(icon), "&Wmi",0, this, "run");
106 106
#else
107
  myQActionPointer = new QAction(QIcon(icon), "Scale Bar", this);
107
  myQActionPointer = new QAction(QIcon(icon), tr("Scale Bar"), this);
108 108
#endif
109
  myQActionPointer->setWhatsThis("Creates a scale bar that is displayed on the map canvas");
109
  myQActionPointer->setWhatsThis(tr("Creates a scale bar that is displayed on the map canvas"));
110 110
  // Connect the action to the run
111 111
  connect(myQActionPointer, SIGNAL(activated()), this, SLOT(run()));
112 112
  //render the scale bar each time the map is rendered
......
517 517
void QgsScaleBarPlugin::unload()
518 518
{
519 519
  // remove the GUI
520
  qGisInterface->removePluginMenuItem("&Decorations",menuId);
520
  qGisInterface->removePluginMenuItem(tr("&Decorations"),menuId);
521 521
  qGisInterface->removeToolBarIcon(myQActionPointer);
522 522

  
523 523
  // remove the northarrow from the canvas
src/plugins/georeferencer/plugin.cpp (working copy)
108 108
void QgsGeorefPlugin::initGui()
109 109
{
110 110
  // Create the action for tool
111
  mQActionPointer = new QAction(QIcon(":/icon.png"), "&Georeferencer", this);
111
  mQActionPointer = new QAction(QIcon(":/icon.png"), tr("&Georeferencer"), this);
112 112

  
113 113
  // Connect the action to the run
114 114
  connect(mQActionPointer, SIGNAL(activated()), this, SLOT(run()));
115 115
  
116 116
  // add to the plugin menu
117
  QMenu *pluginMenu = mQGisIface->getPluginMenu("&Georeferencer");
117
  QMenu *pluginMenu = mQGisIface->getPluginMenu(tr("&Georeferencer"));
118 118
  pluginMenu->addAction(mQActionPointer);
119 119

  
120 120
  // Add to the toolbar
......
139 139
{
140 140
  // TODO: make it work in Qt4 way
141 141
  // remove the GUI
142
  mQGisIface->removePluginMenuItem("&Georeferencer",mMenuId);
142
  mQGisIface->removePluginMenuItem(tr("&Georeferencer"),mMenuId);
143 143
  mQGisIface->removeToolBarIcon(mQActionPointer);
144 144
  delete mQActionPointer;
145 145
}
src/plugins/georeferencer/plugingui.cpp (working copy)
56 56
    dir = ".";
57 57
  QString filename = 
58 58
    QFileDialog::getOpenFileName(this,
59
				 "Choose a raster file",
59
				 tr("Choose a raster file"),
60 60
                 dir,
61
				 "Raster files (*.*)");
61
				 tr("Raster files (*.*)"));
62 62
  leSelectRaster->setText(filename);
63 63
}
64 64

  
......
67 67
  
68 68
  // do we think that this is a valid raster?
69 69
  if (!QgsRasterLayer::isValidRasterFileName(leSelectRaster->text())) {
70
    QMessageBox::critical(this, "Error", 
71
			  "The selected file is not a valid raster file.");
70
    QMessageBox::critical(this, tr("Error"), 
71
			  tr("The selected file is not a valid raster file."));
72 72
    return;
73 73
  }
74 74
  
......
94 94
  // check if there already is a world file
95 95
  if (!worldfile.isEmpty()) {
96 96
    if (QFile::exists(worldfile)) {
97
      QMessageBox::critical(this, "Error",
98
			    "The selected file already seems to have a "
99
			    "world file! If you want to replace it with a "
100
			    "new world file, remove the old one first.");
97
      QMessageBox::critical(this, tr("Error"),
98
			    tr("The selected file already seems to have a ")+
99
			    tr("world file! If you want to replace it with a ")+
100
			    tr("new world file, remove the old one first."));
101 101
      return;
102 102
    }
103 103
  }
src/gui/qgisapp.cpp (working copy)
217 217
{
218 218

  
219 219
  setupUi(this);
220
  mSplash->showMessage("Reading settings", Qt::AlignHCenter | Qt::AlignBottom);
220
  mSplash->showMessage(tr("Reading settings"), Qt::AlignHCenter | Qt::AlignBottom);
221 221
  qApp->processEvents();
222 222
  readSettings();
223
  mSplash->showMessage("Setting up the GUI", Qt::AlignHCenter | Qt::AlignBottom);
223
  mSplash->showMessage(tr("Setting up the GUI"), Qt::AlignHCenter | Qt::AlignBottom);
224 224
  qApp->processEvents();
225 225
  createActions();
226 226
  createActionGroups();
......
236 236
  
237 237
  fileNew(); // prepare empty project
238 238

  
239
  mSplash->showMessage("Checking database", Qt::AlignHCenter | Qt::AlignBottom);
239
  mSplash->showMessage(tr("Checking database"), Qt::AlignHCenter | Qt::AlignBottom);
240 240
  qApp->processEvents();
241 241
  createDB();    
242 242

  
......
273 273
  std::cout << "Plugins and providers are installed in " << plib.toLocal8Bit().data() << std::endl;
274 274
#endif
275 275
  // load any plugins that were running in the last session
276
  mSplash->showMessage("Restoring loaded plugins", Qt::AlignHCenter | Qt::AlignBottom);
276
  mSplash->showMessage(tr("Restoring loaded plugins"), Qt::AlignHCenter | Qt::AlignBottom);
277 277
  qApp->processEvents();
278 278
  restoreSessionPlugins(plib);
279 279

  
......
293 293
  // Map composer
294 294
  mComposer = new QgsComposer(this);
295 295

  
296
  mSplash->showMessage("Initializing file filters", Qt::AlignHCenter | Qt::AlignBottom);
296
  mSplash->showMessage(tr("Initializing file filters"), Qt::AlignHCenter | Qt::AlignBottom);
297 297
  qApp->processEvents();
298 298
  // now build vector file filter
299 299
  buildSupportedVectorFileFilter_( mVectorFileFilter );
......
318 318
  // Please make sure this is the last thing the ctor does so that we can ensure teh 
319 319
  // widgets are all initialised before trying to restore their state.
320 320
  //
321
  mSplash->showMessage("Restoring window state", Qt::AlignHCenter | Qt::AlignBottom);
321
  mSplash->showMessage(tr("Restoring window state"), Qt::AlignHCenter | Qt::AlignBottom);
322 322
  qApp->processEvents();
323 323
  restoreWindowState();
324 324

  
325
  mSplash->showMessage("QGIS Ready!", Qt::AlignHCenter | Qt::AlignBottom);
325
  mSplash->showMessage(tr("QGIS Ready!"), Qt::AlignHCenter | Qt::AlignBottom);
326 326
  qApp->processEvents();
327 327
} // QgisApp ctor
328 328

  
......
672 672
  mFileMenu = menuBar()->addMenu(tr("&File"));
673 673
  mFileMenu->addAction(mActionFileNew);
674 674
  mFileMenu->addAction(mActionFileOpen);
675
  mRecentProjectsMenu = mFileMenu->addMenu("&Open Recent Projects");
675
  mRecentProjectsMenu = mFileMenu->addMenu(tr("&Open Recent Projects"));
676 676
  // Connect once for the entire submenu.
677 677
  connect(mRecentProjectsMenu, SIGNAL(triggered(QAction *)),
678 678
          this, SLOT(openProject(QAction *)));
......
1453 1453

  
1454 1454
  if (!driverRegistrar)
1455 1455
  {
1456
    QMessageBox::warning(0,"OGR Driver Manager","unable to get OGRDriverManager");
1456
    QMessageBox::warning(0,tr("OGR Driver Manager"),tr("unable to get OGRDriverManager"));
1457 1457
    return;                 // XXX good place to throw exception if we
1458 1458
  }                           // XXX decide to do exceptions
1459 1459

  
......
5158 5158
  }
5159 5159
  else
5160 5160
  {
5161
    QMessageBox::critical(this,"Layer is not valid",
5162
        "The layer is not a valid layer and can not be added to the map");
5161
    QMessageBox::critical(this,tr("Layer is not valid"),
5162
        tr("The layer is not a valid layer and can not be added to the map"));
5163 5163
  }
5164 5164

  
5165 5165
  qApp->processEvents();