Skip to content

Commit

Permalink
Translate redlining layer title
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jul 26, 2024
1 parent 5c2b7a5 commit 1c59153
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/Redlining.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Redlining extends React.Component {
if (vectorLayers.length >= 1) {
this.props.changeRedliningState({layer: vectorLayers[0].id, layerTitle: vectorLayers[0].title});
} else if (this.props.redlining.layer !== 'redlining') {
this.props.changeRedliningState({layer: 'redlining', layerTitle: 'Redlining'});
this.props.changeRedliningState({layer: 'redlining', layerTitle: LocaleUtils.tr('redlining.layertitle')});
}
}
}
Expand Down Expand Up @@ -152,7 +152,7 @@ class Redlining extends React.Component {
let vectorLayers = this.props.layers.filter(layer => layer.type === "vector" && layer.role === LayerRole.USERLAYER && !layer.readonly);
// Ensure list always contains at least a "Redlining" layer
if (vectorLayers.length === 0) {
vectorLayers = [{id: 'redlining', title: 'Redlining'}, ...vectorLayers];
vectorLayers = [{id: 'redlining', title: LocaleUtils.tr('redlining.layertitle')}, ...vectorLayers];
}
const haveLayer = this.props.layers.find(l => l.id === this.props.redlining.layer) !== undefined;

Expand Down
4 changes: 2 additions & 2 deletions reducers/redlining.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const defaultState = {
fillColor: [255, 255, 255, 1],
text: ""
},
layer: 'redlining',
layerTitle: 'Redlining',
layer: null,
layerTitle: null,
selectedFeature: null,
drawMultiple: true,
measurements: false,
Expand Down

0 comments on commit 1c59153

Please sign in to comment.