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

View File

@ -44,7 +44,8 @@
"pickALocationManually": "pick a location manually" "pickALocationManually": "pick a location manually"
}, },
"map": { "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": { "menu": {
"About": "Help", "About": "Help",