Skip to content

Commit b72ddca

Browse files
committed
typo fixes, translation string updates and german translation update
1 parent 835f961 commit b72ddca

22 files changed

+2055
-1980
lines changed

doc/TRANSLATORS

+39-39
Large diffs are not rendered by default.

i18n/qgis_de.ts

+1,950-1,825
Large diffs are not rendered by default.

src/app/qgsrasterlayerproperties.cpp

+9-7
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ void QgsRasterLayerProperties::on_pbnDefaultValues_clicked()
948948
{
949949
if ( mRasterLayer->isNoDataValueValid() )
950950
{
951-
// I dont think that noDataValue should be added to transparency list
951+
// I don't think that noDataValue should be added to transparency list
952952
#if 0
953953
tableTransparency->insertRow( tableTransparency->rowCount() );
954954
setTransparencyCell( 0, 0, mRasterLayer->noDataValue() );
@@ -1313,7 +1313,7 @@ void QgsRasterLayerProperties::pixelSelected( const QgsPoint& canvasPoint )
13131313
if ( value == tr( "null (no data)" ) || // Very bad! TODO: improve identify
13141314
mRasterLayer->dataProvider()->isNoDataValue( bands.at( i ), value.toDouble() ) )
13151315
{
1316-
return; // Dont add nodata, transparent anyway
1316+
return; // Don't add nodata, transparent anyway
13171317
}
13181318
values.append( value.toDouble() );
13191319
}
@@ -1578,13 +1578,15 @@ void QgsRasterLayerProperties::updatePipeList()
15781578
texts << QString( "%1 ms" ).arg( interface->time() );
15791579
QTreeWidgetItem *item = new QTreeWidgetItem( texts );
15801580

1581+
#if 0
15811582
// Switching on/off would be possible but problematic - drawer is not pipe
1582-
// memer so we dont know required output format
1583-
// Checkobxes are very usefel however for QgsRasterPipe debugging.
1584-
//bool on = interface->on();
1585-
//item->setCheckState( 0, on ? Qt::Checked : Qt::Unchecked );
1583+
// memer so we don't know required output format
1584+
// Checkboxes are very useful however for QgsRasterPipe debugging.
1585+
bool on = interface->on();
1586+
item->setCheckState( 0, on ? Qt::Checked : Qt::Unchecked );
15861587

1587-
//Qt::ItemFlags flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled;
1588+
Qt::ItemFlags flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled;
1589+
#endif
15881590
Qt::ItemFlags flags = Qt::ItemIsEnabled;
15891591
item->setFlags( flags );
15901592

src/core/qgsrasterdataprovider.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ bool QgsRasterDataProvider::hasHistogram( int theBandNo,
767767
{
768768
QgsDebugMsg( QString( "theBandNo = %1 theBinCount = %2 theMinimum = %3 theMaximum = %4 theSampleSize = %5" ).arg( theBandNo ).arg( theBinCount ).arg( theMinimum ).arg( theMaximum ).arg( theSampleSize ) );
769769
// histogramDefaults() needs statistics if theMinimum or theMaximum is NaN ->
770-
// do other checks which dont need statistics before histogramDefaults()
770+
// do other checks which don't need statistics before histogramDefaults()
771771
if ( mHistograms.size() == 0 ) return false;
772772

773773
QgsRasterHistogram myHistogram;

src/core/qgsvectorlayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2440,7 +2440,7 @@ int QgsVectorLayer::splitFeatures( const QList<QgsPoint>& splitLine, bool topolo
24402440

24412441
if ( mDataProvider )
24422442
{
2443-
//use default value where possible (primary key issue), otherwise the value from the original (splitted) feature
2443+
//use default value where possible (primary key issue), otherwise the value from the original (split) feature
24442444
QgsAttributeMap newAttributes = select_it->attributeMap();
24452445
QVariant defaultValue;
24462446
foreach ( int j, newAttributes.keys() )

src/core/raster/qgsrasterfilewriter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ if ( error == NoDataConflict )
232232
destProvider->remove();
233233
delete destProvider;
234234

235-
// But we dont know which band -> wider all
235+
// But we don't know which band -> wider all
236236
for ( int i = 0; i < nBands; i++ )
237237
{
238238
double destNoDataValue;

src/core/raster/qgsrasterinterface.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void QgsRasterInterface::setStatsOn( bool on )
194194
double QgsRasterInterface::time( bool cumulative )
195195
{
196196
// We can calculate total time only, because we have to subtract time of previous
197-
// interface(s) and we dont know how to assign bands to each other
197+
// interface(s) and we don't know how to assign bands to each other
198198
double t = 0;
199199
for ( int i = 1; i < mTime.size(); i++ )
200200
{

src/core/raster/qgsrasterpipe.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ bool QgsRasterPipe::set( QgsRasterInterface* theInterface )
152152

153153
Role role = interfaceRole( theInterface );
154154

155-
// We dont know where to place unknown interface
155+
// We don't know where to place unknown interface
156156
if ( role == UnknownRole ) return false;
157157

158158
//if ( mInterfacesMap.value ( role ) )

src/core/symbology-ng/qgsstylev2.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class CORE_EXPORT QgsStyleV2
8484
* \param name is the name of the color ramp being added or updated
8585
* \param colorRamp is the Vector color ramp
8686
* \param update set to true when the style DB has to be updated, by default it is false
87-
* \return sucess status of the operation
87+
* \return success status of the operation
8888
*/
8989
bool addColorRamp( QString name, QgsVectorColorRampV2* colorRamp, bool update = false );
9090

@@ -110,7 +110,7 @@ class CORE_EXPORT QgsStyleV2
110110
* \param name is the name of the symbol being added or updated
111111
* \param symbol is the Vector symbol
112112
* \param update set to true when the style DB has to be updated, by default it is false
113-
* \return sucess status of the operation
113+
* \return success status of the operation
114114
*/
115115
bool addSymbol( QString name, QgsSymbolV2* symbol, bool update = false );
116116

@@ -162,7 +162,7 @@ class CORE_EXPORT QgsStyleV2
162162
* \param type is either SymbolEntity or ColorrampEntity
163163
* \param symbol is the name of the symbol or colorramp
164164
* \param tags is the list of tags that are to be removed as QStringList
165-
* \return returns the sucess state of the operation
165+
* \return returns the success state of the operation
166166
*/
167167
bool detagSymbol( StyleEntity type, QString symbol, QStringList tags );
168168

@@ -244,7 +244,7 @@ class CORE_EXPORT QgsStyleV2
244244
* \param symbol is the pointer to the new QgsSymbolV2 being saved
245245
* \param groupid is the id of the group to which the symbol belongs. Pass 0 if it doesn't belong to any group or not known.
246246
* \param tags is a list of tags that are associated with the symbol as a QStringList.
247-
* \return returns the sucess state of the save operation
247+
* \return returns the success state of the save operation
248248
*/
249249
bool saveSymbol( QString name, QgsSymbolV2* symbol, int groupid, QStringList tags );
250250

@@ -254,7 +254,7 @@ class CORE_EXPORT QgsStyleV2
254254
* \param ramp is the pointer to the new QgsVectorColorRampV2 being saved
255255
* \param groupid is the id of the group to which the Color Ramp belongs. Pass 0 if it doesn't belong to any group or not known.
256256
* \param tags is a list of tags that are associated with the color ramp as a QStringList.
257-
* \return returns the sucess state of the save operation
257+
* \return returns the success state of the save operation
258258
*/
259259
bool saveColorRamp( QString name, QgsVectorColorRampV2* ramp, int groupid, QStringList tags );
260260

src/gui/qgsrasterlayersaveasdialog.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ void QgsRasterLayerSaveAsDialog::updateResolutionStateMsg()
374374
default:
375375
break;
376376
}
377-
msg = tr( "Resolution" ) + " (" + tr( "current" ) + ": " + msg + ")";
377+
msg = tr( "Resolution (current: %1)" ).arg( msg );
378378
mResolutionGroupBox->setTitle( msg );
379379
}
380380

@@ -406,7 +406,7 @@ void QgsRasterLayerSaveAsDialog::updateExtentStateMsg()
406406
default:
407407
break;
408408
}
409-
msg = tr( "Extent" ) + " (" + tr( "current" ) + ": " + msg + ")";
409+
msg = tr( "Extent (current: %1)" ).arg( msg );
410410
mExtentGroupBox->setTitle( msg );
411411
}
412412

@@ -479,13 +479,13 @@ void QgsRasterLayerSaveAsDialog::updateCrsGroup()
479479
QgsDebugMsg( "Entered" );
480480

481481
mCrsComboBox->setItemText( mCrsComboBox->findData( OriginalCrs ),
482-
tr( "Layer" ) + " (" + mLayerCrs.description() + ", " + mLayerCrs.authid() + ")" );
482+
tr( "Layer (%1, %2)" ).arg( mLayerCrs.description() ).arg( mLayerCrs.authid() ) );
483483

484484
mCrsComboBox->setItemText( mCrsComboBox->findData( CurrentCrs ),
485-
tr( "Project" ) + " (" + mCurrentCrs.description() + ", " + mCurrentCrs.authid() + ")" );
485+
tr( "Project (%1, %2)" ).arg( mCurrentCrs.description() ).arg( mCurrentCrs.authid() ) );
486486

487487
mCrsComboBox->setItemText( mCrsComboBox->findData( UserCrs ),
488-
tr( "Selected" ) + " (" + mUserCrs.description() + ", " + mUserCrs.authid() + ")" );
488+
tr( "Selected (%1, %2)" ).arg( mUserCrs.description() ).arg( mUserCrs.authid() ) );
489489
}
490490

491491
QgsCoordinateReferenceSystem QgsRasterLayerSaveAsDialog::outputCrs()

src/gui/raster/qgsrasterhistogramwidget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ void QgsRasterHistogramWidget::histoAction( const QString actionName, bool actio
672672
return;
673673
}
674674
// Load actions
675-
// TODO - seperate calculations from rendererwidget so we can do them without
675+
// TODO - separate calculations from rendererwidget so we can do them without
676676
else if ( actionName.left( 5 ) == "Load " && mRendererWidget )
677677
{
678678
QVector<int> myBands;

src/gui/symbology-ng/qgslayerpropertieswidget.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ QgsLayerPropertiesWidget::QgsLayerPropertiesWidget( QgsSymbolLayerV2* layer, con
8686
mVectorLayer = vl;
8787

8888
setupUi( this );
89-
// initalize the sub-widgets
90-
// XXX Should this thing be here this way? Initalize all th widgets just for the sake of one layer?
89+
// initialize the sub-widgets
90+
// XXX Should this thing be here this way? Initialize all the widgets just for the sake of one layer?
9191
// TODO Make this on demand creation
9292
_initWidgetFunctions();
9393

src/gui/symbology-ng/qgssymbolv2selectordialog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class GUI_EXPORT QgsSymbolV2SelectorDialog : public QDialog, private Ui::QgsSymb
8282
//! Slot to update tree when a new symbol from style
8383
void symbolChanged();
8484
//! alters tree and sets proper widget when Layer Type is changed
85-
//! @note: The layer is recieved from the LayerPropertiesWidget
85+
//! @note: The layer is received from the LayerPropertiesWidget
8686
void changeLayer( QgsSymbolLayerV2* layer );
8787

8888

src/mapserver/qgsconfigparser.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class QgsConfigParser
118118
/**Appends service metadata to the capabilities document*/
119119
virtual void serviceCapabilities( QDomElement& parentElement, QDomDocument& doc ) const;
120120

121-
/**Returns service Adress (or empty string if not defined in the configuration*/
121+
/**Returns service address (or empty string if not defined in the configuration*/
122122
virtual QString serviceUrl() const { return QString(); }
123123

124124
QColor selectionColor() const { return mSelectionColor; }

src/providers/wcs/qgswcscapabilities.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ bool QgsWcsCapabilities::parseDescribeCoverageDom10( QByteArray const &xml, QgsW
771771
coverage->hasSize = true;
772772
}
773773
}
774-
// RectifiedGrid has also gml:origin which we dont need I think (attention however
774+
// RectifiedGrid has also gml:origin which we don't need I think (attention however
775775
// it should contain gml:Point but mapserver 6.0.3 / WCS 1.0.0 is using gml:pos instead)
776776
// RectifiedGrid also contains 2 gml:offsetVector which could be used to get resolution
777777
// but it should be sufficient to calc resolution from size

src/providers/wcs/qgswcsprovider.cpp

+30-24
Original file line numberDiff line numberDiff line change
@@ -1367,38 +1367,40 @@ QString QgsWcsProvider::coverageMetadata( QgsWcsCoverageSummary coverage )
13671367
metadata += htmlRow( tr( "Name (identifier)" ), coverage.identifier );
13681368
metadata += htmlRow( tr( "Title" ), coverage.title );
13691369
metadata += htmlRow( tr( "Abstract" ), coverage.abstract );
1370-
// We dont have size, nativeCrs, nativeBoundingBox etc. until describe coverage which would be heavy for all coverages
1371-
//metadata += htmlRow ( tr( "Fixed Width" ), QString::number( coverage.width ) );
1372-
//metadata += htmlRow ( tr( "Fixed Height" ), QString::number( coverage.height ) );
1373-
//metadata += htmlRow ( tr( "Native CRS" ), coverage.nativeCrs );
1374-
//metadata += htmlRow ( tr( "Native Bounding Box" ), coverage.nativeBoundingBox.toString() );
1370+
#if 0
1371+
// We don't have size, nativeCrs, nativeBoundingBox etc. until describe coverage which would be heavy for all coverages
1372+
metadata += htmlRow( tr( "Fixed Width" ), QString::number( coverage.width ) );
1373+
metadata += htmlRow( tr( "Fixed Height" ), QString::number( coverage.height ) );
1374+
metadata += htmlRow( tr( "Native CRS" ), coverage.nativeCrs );
1375+
metadata += htmlRow( tr( "Native Bounding Box" ), coverage.nativeBoundingBox.toString() );
1376+
#endif
13751377

13761378
metadata += htmlRow( tr( "WGS 84 Bounding Box" ), coverage.wgs84BoundingBox.toString() );
13771379

13781380
// Layer Coordinate Reference Systems
13791381
// TODO(?): supportedCrs and supportedFormat are not available in 1.0
13801382
// until coverage is described - it would be confusing to show it only if available
1381-
/*
1383+
#if 0
13821384
for ( int j = 0; j < qMin( coverage.supportedCrs.size(), 10 ); j++ )
13831385
{
1384-
metadata += htmlRow ( tr( "Available in CRS" ), coverage.supportedCrs.value(j) );
1386+
metadata += htmlRow( tr( "Available in CRS" ), coverage.supportedCrs.value( j ) );
13851387
}
13861388

13871389
if ( coverage.supportedCrs.size() > 10 )
13881390
{
1389-
metadata += htmlRow ( tr( "Available in CRS" ), tr( "(and %n more)", "crs", coverage.supportedCrs.size() - 10 ) );
1391+
metadata += htmlRow( tr( "Available in CRS" ), tr( "(and %n more)", "crs", coverage.supportedCrs.size() - 10 ) );
13901392
}
13911393

13921394
for ( int j = 0; j < qMin( coverage.supportedFormat.size(), 10 ); j++ )
13931395
{
1394-
metadata += htmlRow ( tr( "Available in format" ), coverage.supportedFormat.value(j) );
1396+
metadata += htmlRow( tr( "Available in format" ), coverage.supportedFormat.value( j ) );
13951397
}
13961398

13971399
if ( coverage.supportedFormat.size() > 10 )
13981400
{
1399-
metadata += htmlRow ( tr( "Available in format" ), tr( "(and %n more)", "crs", coverage.supportedFormat.size() - 10 ) );
1401+
metadata += htmlRow( tr( "Available in format" ), tr( "(and %n more)", "crs", coverage.supportedFormat.size() - 10 ) );
14001402
}
1401-
*/
1403+
#endif
14021404

14031405
// Close the nested table
14041406
metadata += "</table>";
@@ -1417,11 +1419,13 @@ QString QgsWcsProvider::metadata()
14171419
metadata += tr( "Coverages" );
14181420
metadata += "</a>";
14191421

1422+
#if 0
14201423
#if QT_VERSION >= 0x40500
14211424
// TODO
1422-
//metadata += "<a href=\"#cachestats\">";
1423-
//metadata += tr( "Cache Stats" );
1424-
//metadata += "</a> ";
1425+
metadata += "<a href=\"#cachestats\">";
1426+
metadata += tr( "Cache Stats" );
1427+
metadata += "</a> ";
1428+
#endif
14251429
#endif
14261430

14271431
metadata += "</td></tr>";
@@ -1446,17 +1450,19 @@ QString QgsWcsProvider::metadata()
14461450
metadata += htmlRow(( "WCS Version" ), mCapabilities.version() );
14471451
metadata += htmlRow( tr( "Title" ), mCapabilities.capabilities().title );
14481452
metadata += htmlRow( tr( "Abstract" ), mCapabilities.capabilities().abstract );
1453+
#if 0
14491454
// TODO: probably apply stylesheet in QgsWcsCapabilities and save as html
1450-
//metadata += htmlRow ( tr( "Keywords" ), mCapabilities.service.keywordList.join( "<br />" ) );
1451-
//metadata += htmlRow ( tr( "Online Resource" ), "-" );
1452-
//metadata += htmlRow ( tr( "Contact Person" ),
1453-
// mCapabilities.service.contactInformation.contactPersonPrimary.contactPerson
1454-
// + "<br />" + mCapabilities.service.contactInformation.contactPosition;
1455-
// + "<br />" + mCapabilities.service.contactInformation.contactPersonPrimary.contactOrganization );
1456-
//metadata += htmlRow ( tr( "Fees" ), mCapabilities.service.fees );
1457-
//metadata += htmlRow ( tr( "Access Constraints" ), mCapabilities.service.accessConstraints );
1458-
//metadata += htmlRow ( tr( "Image Formats" ), mCapabilities.capability.request.getMap.format.join( "<br />" ) );
1459-
//metadata += htmlRow ( tr( "GetCapabilitiesUrl" ), mBaseUrl );
1455+
metadata += htmlRow( tr( "Keywords" ), mCapabilities.service.keywordList.join( "<br />" ) );
1456+
metadata += htmlRow( tr( "Online Resource" ), "-" );
1457+
metadata += htmlRow( tr( "Contact Person" ),
1458+
mCapabilities.service.contactInformation.contactPersonPrimary.contactPerson
1459+
+ "<br />" + mCapabilities.service.contactInformation.contactPosition;
1460+
+ "<br />" + mCapabilities.service.contactInformation.contactPersonPrimary.contactOrganization );
1461+
metadata += htmlRow( tr( "Fees" ), mCapabilities.service.fees );
1462+
metadata += htmlRow( tr( "Access Constraints" ), mCapabilities.service.accessConstraints );
1463+
metadata += htmlRow( tr( "Image Formats" ), mCapabilities.capability.request.getMap.format.join( "<br />" ) );
1464+
metadata += htmlRow( tr( "GetCapabilitiesUrl" ), mBaseUrl );
1465+
#endif
14601466
metadata += htmlRow( tr( "Get Coverage Url" ), mCapabilities.getCoverageUrl() + ( mIgnoreGetCoverageUrl ? tr( "&nbsp;<font color=\"red\">(advertised but ignored)</font>" ) : "" ) );
14611467

14621468
// Close the nested table

src/ui/qgsprojectpropertiesbase.ui

+1-5
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,7 @@
194194
<item row="1" column="0">
195195
<widget class="QGroupBox" name="btnGrpMapUnits">
196196
<property name="toolTip">
197-
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
198-
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
199-
p, li { white-space: pre-wrap; }
200-
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
201-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Used when CRS transformation is turned off.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
197+
<string>Used when CRS transformation is turned off</string>
202198
</property>
203199
<property name="title">
204200
<string>Canvas units</string>

src/ui/qgsrasterformatsaveoptionswidgetbase.ui

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
<item>
187187
<widget class="QLineEdit" name="mOptionsLineEdit">
188188
<property name="toolTip">
189-
<string>Insert KEY=VALUE pairs seperated by spaces</string>
189+
<string>Insert KEY=VALUE pairs separated by spaces</string>
190190
</property>
191191
<property name="alignment">
192192
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>

0 commit comments

Comments
 (0)