aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/js/validation_strings.html
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-03-16 12:03:44 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-03-16 12:03:44 +0000
commitce6daecdf96955aab2f1d528d3fdc2f56213f400 (patch)
treed9dcd558705fa3434586b59e2924731ca4fe0617 /templates/web/default/js/validation_strings.html
parent81a861bfd36673d0bc2f09a4f56b7666bb247b3c (diff)
Put validation strings in external file (fixes #281), tidy to only have one common_header_tags file.
Diffstat (limited to 'templates/web/default/js/validation_strings.html')
-rw-r--r--templates/web/default/js/validation_strings.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/web/default/js/validation_strings.html b/templates/web/default/js/validation_strings.html
new file mode 100644
index 000000000..70a0ed41c
--- /dev/null
+++ b/templates/web/default/js/validation_strings.html
@@ -0,0 +1,18 @@
+ validation_strings = {
+ update: '[% loc('Please enter a message') %]',
+ title: '[% loc('Please enter a subject') %]',
+ detail: '[% loc('Please enter some details') %]',
+ name: {
+ required: '[% loc('Please enter your name') %]',
+ validName: '[% loc('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: '[% loc('Please choose a category') %]',
+ rznvy: {
+ required: '[% loc('Please enter your email') %]',
+ email: '[% loc('Please enter a valid email') %]'
+ },
+ email: {
+ required: '[% loc('Please enter your email') %]',
+ email: '[% loc('Please enter a valid email') %]'
+ }
+ };