Skip to content

Commit

Permalink
Fix i18n string collection
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 2, 2017
1 parent 23ba53c commit df9cfad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/directives/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -795,14 +795,15 @@ ngeo.RuleController = class {
if (feature) {

const type = this.ngeoFeatureHelper_.getType(feature);
const gettextCatalog = this.gettextCatalog_;

if (type == ngeo.GeometryType.CIRCLE ||
type == ngeo.GeometryType.LINE_STRING ||
type == ngeo.GeometryType.POLYGON ||
type == ngeo.GeometryType.RECTANGLE) {
actions.push({
cls: 'fa fa-arrows',
label: this.gettextCatalog_.getString('Move'),
label: gettextCatalog.getString('Move'),
name: ngeo.RuleController.MenuActionType.MOVE
});
}
Expand All @@ -811,7 +812,7 @@ ngeo.RuleController = class {
type == ngeo.GeometryType.RECTANGLE) {
actions.push({
cls: 'fa fa-rotate-right',
label: this.gettextCatalog_.getString('Rotate'),
label: gettextCatalog.getString('Rotate'),
name: ngeo.RuleController.MenuActionType.ROTATE
});
}
Expand Down

0 comments on commit df9cfad

Please sign in to comment.