From 2bad9d4083b5c6d81f18e02ced72e559ef59a7f1 Mon Sep 17 00:00:00 2001 From: vjrj Date: Tue, 27 Feb 2018 19:32:43 +0100 Subject: [PATCH] New geolocation error --- imports/ui/components/CenterInMyPosition/CenterInMyPosition.js | 1 + public/locales/en/common.json | 3 ++- public/locales/es/common.json | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/imports/ui/components/CenterInMyPosition/CenterInMyPosition.js b/imports/ui/components/CenterInMyPosition/CenterInMyPosition.js index 2f037cb..cad75da 100644 --- a/imports/ui/components/CenterInMyPosition/CenterInMyPosition.js +++ b/imports/ui/components/CenterInMyPosition/CenterInMyPosition.js @@ -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(); } diff --git a/public/locales/en/common.json b/public/locales/en/common.json index d45b7ac..8e980ee 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -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" } diff --git a/public/locales/es/common.json b/public/locales/es/common.json index 5d3e5fa..5e6c074 100644 --- a/public/locales/es/common.json +++ b/public/locales/es/common.json @@ -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" }