diff options
author | Struan Donald <struan@exo.org.uk> | 2013-07-12 09:47:56 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-07-12 11:00:11 +0100 |
commit | 25e3a0c94551b0faac3f16e0598e6f4bdffcf7d8 (patch) | |
tree | f78f68ba8ed39e5b5004e41435aac3e9bbe9c044 /src/js/strings.js | |
parent | 4c2206c97250b7f72eb04d13ae886a7fb4f4086a (diff) |
instead of using js to inject the correct cordova js file in to
index.html restructure things so that the common files are a level down
and the platofrm specific ones are directly placed in the relevant
project. This both makes for less fuss and also avoids the error with
Android < v3 instantiating cordova twice.
Note that the iOS common assets are included by a build script rather
than a symlink as symlinking doesn't seem to agree with Xcode
Diffstat (limited to 'src/js/strings.js')
-rw-r--r-- | src/js/strings.js | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/js/strings.js b/src/js/strings.js new file mode 100644 index 0000000..3eb5dbe --- /dev/null +++ b/src/js/strings.js @@ -0,0 +1,47 @@ +(function (FMS, _) { + _.extend( FMS, { + validationStrings: { + update: 'Please enter a message', + title: 'Please enter a subject', + detail: 'Please enter some details', + name: { + required: 'Please enter your name', + validName: 'Please enter your full name, councils need this information - if you do not wish your name to be shown on the site, untick the box below' + }, + category: 'Please choose a category', + rznvy: { + required: 'Please enter your email', + email: 'Please enter a valid email' + }, + email: { + required: 'Please enter your email', + email: 'Please enter a valid email' + }, + password: 'Please enter a password' + }, + strings: { + login_error: 'There was a problem logging you in. Please try later', + logout_error: 'There was a problem logging you out. Please try later', + login_details_error: 'There was a problem logging you in. Please check your email and password', + password_problem: 'There was a problem with your email/password combination. If you have forgotten your password, or do not have one, you can set one by returning to the email screen and selecting the set password option', + location_error: 'Location error', + location_problem: 'There was a problem looking up your location', + multiple_locations: 'More than one location matched that name. Select one below or try entering street name and area, or a postcode.', + sync_error: 'An error was encountered when submitting your report: ', + unknown_sync_error: 'There was a problem submitting your report. Please try again later.', + report_send_error: 'There was a problem submitting your report. Please try again', + missing_location: 'Please enter a location', + location_check_failed: 'Could not check your location', + locate_dismissed: 'Please search for a street name and area, or postcode.', + geolocation_failed: 'Could not determine your location, please search for a street name and area, or postcode instead.', + geolocation_denied: 'Could not access location services. Please check permissions.', + select_category: '-- Pick a categoy --', + required: 'required', + invalid_email: 'Invalid email', + invalid_report: 'Invalid report', + photo_failed: 'There was a problem taking your photo', + no_connection: 'No network connection available for submitting your report. Please try again later', + more_details: 'More details' + } + }); +})(FMS, _); |