From 0b99d7df77a7df0a6bca593a5bee4b4268a9f1c9 Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Thu, 3 Jan 2019 12:30:44 +0100 Subject: [PATCH] [fix] Fix missing i18N on profile position --- www/plugins/es/i18n/locale-en-GB.json | 1 + www/plugins/es/i18n/locale-en.json | 1 + www/plugins/es/i18n/locale-es-ES.json | 1 + www/plugins/es/i18n/locale-fr-FR.json | 1 + www/plugins/es/js/controllers/registry-controllers.js | 2 +- 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/www/plugins/es/i18n/locale-en-GB.json b/www/plugins/es/i18n/locale-en-GB.json index 8ebf90a9..8a8715ba 100644 --- a/www/plugins/es/i18n/locale-en-GB.json +++ b/www/plugins/es/i18n/locale-en-GB.json @@ -355,6 +355,7 @@ "DISTANCE_UNIT": "mi", "DISTANCE_OPTION": "{{value}} {{'LOCATION.DISTANCE_UNIT'|translate}}", "SEARCH_HELP": "City, Country", + "PROFILE_POSITION": "Profile position", "MODAL": { "TITLE": "Search address", "SEARCH_HELP": "City, Country", diff --git a/www/plugins/es/i18n/locale-en.json b/www/plugins/es/i18n/locale-en.json index 8ebf90a9..8a8715ba 100644 --- a/www/plugins/es/i18n/locale-en.json +++ b/www/plugins/es/i18n/locale-en.json @@ -355,6 +355,7 @@ "DISTANCE_UNIT": "mi", "DISTANCE_OPTION": "{{value}} {{'LOCATION.DISTANCE_UNIT'|translate}}", "SEARCH_HELP": "City, Country", + "PROFILE_POSITION": "Profile position", "MODAL": { "TITLE": "Search address", "SEARCH_HELP": "City, Country", diff --git a/www/plugins/es/i18n/locale-es-ES.json b/www/plugins/es/i18n/locale-es-ES.json index 58d8b4f9..49be7a99 100644 --- a/www/plugins/es/i18n/locale-es-ES.json +++ b/www/plugins/es/i18n/locale-es-ES.json @@ -402,6 +402,7 @@ "DISTANCE_UNIT": "km", "DISTANCE_OPTION": "{{value}} {{'LOCATION.DISTANCE_UNIT'|translate}}", "SEARCH_HELP": "Ciudad, PaÃs", + "PROFILE_POSITION": "Posición del perfil", "MODAL": { "TITLE": "Búsqueda de dirección", "SEARCH_HELP": "Ciudad, PaÃs", diff --git a/www/plugins/es/i18n/locale-fr-FR.json b/www/plugins/es/i18n/locale-fr-FR.json index 5e2ed5fd..40af4912 100644 --- a/www/plugins/es/i18n/locale-fr-FR.json +++ b/www/plugins/es/i18n/locale-fr-FR.json @@ -406,6 +406,7 @@ "DISTANCE_UNIT": "km", "DISTANCE_OPTION": "{{value}} {{'LOCATION.DISTANCE_UNIT'|translate}}", "SEARCH_HELP": "Code postal, Ville", + "PROFILE_POSITION": "Position du profil", "MODAL": { "TITLE": "Recherche de l'adresse", "SEARCH_HELP": "Ville, Code postal, Pays", diff --git a/www/plugins/es/js/controllers/registry-controllers.js b/www/plugins/es/js/controllers/registry-controllers.js index cd790cd4..b8e51d28 100644 --- a/www/plugins/es/js/controllers/registry-controllers.js +++ b/www/plugins/es/js/controllers/registry-controllers.js @@ -225,7 +225,7 @@ function ESRegistryLookupController($scope, $focus, $timeout, $filter, $controll }); } $scope.search.geoPoint = csWallet.data.profile.geoPoint; - $scope.search.location = csWallet.data.profile.city||(csWallet.data.profile.geoPoint ? 'profile position' : undefined); + $scope.search.location = csWallet.data.profile.city||(csWallet.data.profile.geoPoint ? $translate.instant('LOCATION.PROFILE_POSITION') : undefined); } } -- GitLab