Translate the rotate button tooltip

This commit is contained in:
Lucas Verney 2018-09-14 15:27:03 +02:00
parent 9b5487499a
commit 0c27768e91
2 changed files with 4 additions and 2 deletions

View File

@ -248,7 +248,7 @@ export default {
// If heading is specified
if (this.headingInRadiansFromNorth !== null) {
const rotation = (this.isInAutorotateMap
? - this.map.getView().getRotation() - Math.PI / 2
? -this.map.getView().getRotation() - Math.PI / 2
: (
this.headingInRadiansFromNorth
+ this.map.getView().getRotation()
@ -365,6 +365,7 @@ export default {
rotateOptions: {
autoHide: false,
label: rotateLabel,
tipLabel: this.$t('map.toggleRotationMode'),
resetNorth: () => {
// Switch autorotate mode
this.hasUserAutorotateMap = !this.hasUserAutorotateMap;

View File

@ -44,7 +44,8 @@
"pickALocationManually": "pick a location manually"
},
"map": {
"attribution": "Map data \u00a9 <a href=\"http://openstreetmap.org\">OpenStreetMap</a> contributors"
"attribution": "Map data \u00a9 <a href=\"http://openstreetmap.org\">OpenStreetMap</a> contributors",
"toggleRotationMode": "Toggle rotation mode"
},
"menu": {
"About": "Help",