diff options
author | Struan Donald <struan@exo.org.uk> | 2013-09-16 17:02:25 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-09-16 17:02:25 +0100 |
commit | 6ee7d197f163db2020e5a315a33afc1db4fe977e (patch) | |
tree | f68f236ea061aeb719dd76bc07a707682039af78 /src | |
parent | 77d77ebd3825f0da841bed378b96d5b08c56704d (diff) |
Remove hardcoded position result strings from offline page
Diffstat (limited to 'src')
-rw-r--r-- | src/js/strings.js | 2 | ||||
-rw-r--r-- | src/js/views/offline.js | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/js/strings.js b/src/js/strings.js index 905b2c3..1fada88 100644 --- a/src/js/strings.js +++ b/src/js/strings.js @@ -38,6 +38,8 @@ geolocation_failed: "Sorry, but we weren't able to establish your location accurately enough to show you a map. Please enter a location in the search box instead", geolocation_denied: 'Could not access location services. Please check permissions.', select_category: '-- Pick a category --', + offline_got_position: 'Got position.', + offline_failed_position: 'Could not get position.', required: 'required', invalid_email: 'Invalid email', invalid_report: 'Invalid report', diff --git a/src/js/views/offline.js b/src/js/views/offline.js index c90cd90..5f25223 100644 --- a/src/js/views/offline.js +++ b/src/js/views/offline.js @@ -59,7 +59,7 @@ this.finishedLocating(); this.locateCount = 21; - $('#locate_result').html('Could not get position'); + $('#locate_result').html(FMS.strings.offline_failed_position); }, gotLocation: function(info) { @@ -68,7 +68,7 @@ this.model.set('lat', info.coordinates.latitude); this.model.set('lon', info.coordinates.longitude); - $('#locate_result').html('Got position.'); + $('#locate_result').html(FMS.strings.offline_got_position); }, takePhoto: function() { |