Skip to content

Commit 8e0c08b

Browse files
author
jef
committedApr 25, 2010
translation fixes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13378 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

4 files changed

+199
-116
lines changed

4 files changed

+199
-116
lines changed
 

‎i18n/qgis_de.ts

Lines changed: 181 additions & 98 deletions
Large diffs are not rendered by default.

‎src/gui/symbology-ng/qgsstylev2managerdialog.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ void QgsStyleV2ManagerDialog::populateTypes()
7878
}
7979

8080
cboItemType->clear();
81-
cboItemType->addItem( QString( "Marker symbol (%1)" ).arg( markerCount ), QVariant( QgsSymbolV2::Marker ) );
82-
cboItemType->addItem( QString( "Line symbol (%1)" ).arg( lineCount ), QVariant( QgsSymbolV2::Line ) );
83-
cboItemType->addItem( QString( "Fill symbol (%1)" ).arg( fillCount ), QVariant( QgsSymbolV2::Fill ) );
81+
cboItemType->addItem( tr( "Marker symbol (%1)" ).arg( markerCount ), QVariant( QgsSymbolV2::Marker ) );
82+
cboItemType->addItem( tr( "Line symbol (%1)" ).arg( lineCount ), QVariant( QgsSymbolV2::Line ) );
83+
cboItemType->addItem( tr( "Fill symbol (%1)" ).arg( fillCount ), QVariant( QgsSymbolV2::Fill ) );
8484

85-
cboItemType->addItem( QString( "Color ramp (%1)" ).arg( mStyle->colorRampCount() ), QVariant( 3 ) );
85+
cboItemType->addItem( tr( "Color ramp (%1)" ).arg( mStyle->colorRampCount() ), QVariant( 3 ) );
8686

8787
// update current index to previous selection
8888
cboItemType->setCurrentIndex( current );
@@ -207,8 +207,8 @@ bool QgsStyleV2ManagerDialog::addSymbol()
207207

208208
// get name
209209
bool ok;
210-
QString name = QInputDialog::getText( this, "Symbol name",
211-
"Please enter name for new symbol:", QLineEdit::Normal, "new symbol", &ok );
210+
QString name = QInputDialog::getText( this, tr( "Symbol name" ),
211+
tr( "Please enter name for new symbol:" ), QLineEdit::Normal, tr( "new symbol" ), &ok );
212212
if ( !ok || name.isEmpty() )
213213
{
214214
delete symbol;
@@ -225,15 +225,15 @@ bool QgsStyleV2ManagerDialog::addColorRamp()
225225
{
226226
// let the user choose the color ramp type
227227
QStringList rampTypes;
228-
rampTypes << "Gradient" << "Random" << "ColorBrewer";
228+
rampTypes << tr( "Gradient" ) << tr( "Random" ) << tr( "ColorBrewer" );
229229
bool ok;
230-
QString rampType = QInputDialog::getItem( this, "Color ramp type",
231-
"Please select color ramp type:", rampTypes, 0, false, &ok );
230+
QString rampType = QInputDialog::getItem( this, tr( "Color ramp type" ),
231+
tr( "Please select color ramp type:" ), rampTypes, 0, false, &ok );
232232
if ( !ok || rampType.isEmpty() )
233233
return false;
234234

235235
QgsVectorColorRampV2 *ramp = NULL;
236-
if ( rampType == "Gradient" )
236+
if ( rampType == tr( "Gradient" ) )
237237
{
238238
QgsVectorGradientColorRampV2* gradRamp = new QgsVectorGradientColorRampV2();
239239
QgsVectorGradientColorRampV2Dialog dlg( gradRamp, this );
@@ -244,7 +244,7 @@ bool QgsStyleV2ManagerDialog::addColorRamp()
244244
}
245245
ramp = gradRamp;
246246
}
247-
else if ( rampType == "Random" )
247+
else if ( rampType == tr( "Random" ) )
248248
{
249249
QgsVectorRandomColorRampV2* randRamp = new QgsVectorRandomColorRampV2();
250250
QgsVectorRandomColorRampV2Dialog dlg( randRamp, this );
@@ -255,7 +255,7 @@ bool QgsStyleV2ManagerDialog::addColorRamp()
255255
}
256256
ramp = randRamp;
257257
}
258-
else if ( rampType == "ColorBrewer" )
258+
else if ( rampType == tr( "ColorBrewer" ) )
259259
{
260260
QgsVectorColorBrewerColorRampV2* brewerRamp = new QgsVectorColorBrewerColorRampV2();
261261
QgsVectorColorBrewerColorRampV2Dialog dlg( brewerRamp, this );
@@ -272,8 +272,8 @@ bool QgsStyleV2ManagerDialog::addColorRamp()
272272
}
273273

274274
// get name
275-
QString name = QInputDialog::getText( this, "Color ramp name",
276-
"Please enter name for new color ramp:", QLineEdit::Normal, "new color ramp", &ok );
275+
QString name = QInputDialog::getText( this, tr( "Color ramp name" ),
276+
tr( "Please enter name for new color ramp:" ), QLineEdit::Normal, tr( "new color ramp" ), &ok );
277277
if ( !ok || name.isEmpty() )
278278
{
279279
if ( ramp )

‎src/gui/symbology-ng/qgssymbollevelsv2dialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ QgsSymbolLevelsV2Dialog::QgsSymbolLevelsV2Dialog( QgsSymbolV2List symbols, bool
3535
tableLevels->setColumnCount( maxLayers );
3636
for ( int i = 0; i < maxLayers; i++ )
3737
{
38-
QString name = QString( "Layer %1" ).arg( i );
38+
QString name = tr( "Layer %1" ).arg( i );
3939
tableLevels->setHorizontalHeaderItem( i, new QTableWidgetItem( name ) );
4040
}
4141

‎src/plugins/gps_importer/qgsgpsplugin.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ void QgsGPSPlugin::createGPX()
171171
if ( !ofs )
172172
{
173173
QMessageBox::warning( NULL, tr( "Could not create file" ),
174-
tr( "Unable to create a GPX file with the given name. " ) +
175-
tr( "Try again with another name or in another " ) +
176-
tr( "directory." ) );
174+
tr( "Unable to create a GPX file with the given name. "
175+
"Try again with an other name or in an other "
176+
"directory." ) );
177177
return;
178178
}
179179
ofs << "<gpx></gpx>" << std::endl;

0 commit comments

Comments
 (0)
Please sign in to comment.