New geolocation error

This commit is contained in:
vjrj 2018-02-27 19:32:43 +01:00
parent 0342bdf33f
commit 2bad9d4083
3 changed files with 5 additions and 2 deletions

View file

@ -37,6 +37,7 @@ class CenterInMyPosition extends React.Component {
// window.alert(cod);
if (cod === 1) Bert.alert(self.props.t('geo-not-perms-error'), 'danger');
else if (cod === 2) Bert.alert(self.props.t('geo-not-avail-error'), 'danger');
else if (cod === 3) Bert.alert(self.props.t('geo-not-timeout-error'), 'danger');
else Bert.alert(error.message, 'danger');
computation.stop();
}

View file

@ -227,5 +227,6 @@
"Escribe un lugar para centrar el mapa":
"Write a place to center the map",
"geo-not-perms-error": "Upppps: it seems we do not have permission to know your location",
"geo-not-avail-error": "Upppps: it seems your location is not available"
"geo-not-avail-error": "Upppps: it seems your location is not available",
"geo-not-timeout-error": "Upppps: Your device is taking too long to know your location"
}

View file

@ -314,5 +314,6 @@
"Escribe un lugar para centrar el mapa":
"Escribe un lugar para centrar el mapa",
"geo-not-perms-error": "Upppps: parece que no tenemos permiso para conocer tu ubicación",
"geo-not-avail-error": "Upppps: parece tu ubicación no está disponible"
"geo-not-avail-error": "Upppps: parece tu ubicación no está disponible",
"geo-not-timeout-error": "Upppps: tu dispositivo está tardando demasiado en conocer tu ubicación"
}