diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-04-20 13:12:41 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-04-20 13:21:17 +0100 |
commit | abc88f9a4843690d822f9147a0c6100aa2269182 (patch) | |
tree | 3c8cf53e164b34e3df4dc2d56c921021c47f66ba | |
parent | 6aabcc1f2b07dc5d4eb0f4d83ddad20814d14608 (diff) |
Make default front page form text non-GB specific.
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Default.pm | 2 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixMyStreet.pm | 5 | ||||
-rw-r--r-- | templates/web/default/around/around_index.html | 4 | ||||
-rw-r--r-- | templates/web/default/index.html | 4 | ||||
-rw-r--r-- | templates/web/emptyhomes/index.html | 4 | ||||
-rw-r--r-- | templates/web/fixmystreet/around/around_index.html | 4 | ||||
-rw-r--r-- | templates/web/fixmystreet/index.html | 4 |
7 files changed, 11 insertions, 16 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm index c45c36b0b..f4762904c 100644 --- a/perllib/FixMyStreet/Cobrand/Default.pm +++ b/perllib/FixMyStreet/Cobrand/Default.pm @@ -134,7 +134,7 @@ Parameter is QUERY =cut -sub enter_postcode_text { '' } +sub enter_postcode_text { _('Enter a nearby street name and area') } =head2 set_lang_and_domain diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm index 97b4c3c8b..4ead28196 100644 --- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm +++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm @@ -6,6 +6,11 @@ sub restriction { return {}; } +sub enter_postcode_text { + my ( $self ) = @_; + return _("Enter a nearby GB postcode, or street name and area"); +} + sub generate_problem_banner { my ( $self, $problem ) = @_; diff --git a/templates/web/default/around/around_index.html b/templates/web/default/around/around_index.html index 012354f4a..55ed38341 100644 --- a/templates/web/default/around/around_index.html +++ b/templates/web/default/around/around_index.html @@ -8,9 +8,7 @@ %] [% - question - = c.cobrand.enter_postcode_text() - || loc("Enter a nearby GB postcode, or street name and area"); + question = c.cobrand.enter_postcode_text(); %] <form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm"> diff --git a/templates/web/default/index.html b/templates/web/default/index.html index e5f98b0c5..ab8796688 100644 --- a/templates/web/default/index.html +++ b/templates/web/default/index.html @@ -22,9 +22,7 @@ [% TRY %][% INCLUDE 'front/news.html' %][% CATCH file %][% END %] [% - question - = c.cobrand.enter_postcode_text() - || loc("Enter a nearby GB postcode, or street name and area"); + question = c.cobrand.enter_postcode_text(); %] <form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm"> diff --git a/templates/web/emptyhomes/index.html b/templates/web/emptyhomes/index.html index bd7261f49..60bdee70c 100644 --- a/templates/web/emptyhomes/index.html +++ b/templates/web/emptyhomes/index.html @@ -38,9 +38,7 @@ The TV series launched a campaign for action and while this is running, our <a h </p> [% - question - = c.cobrand.enter_postcode_text() - || loc("Enter a nearby GB postcode, or street name and area"); + question = c.cobrand.enter_postcode_text(); %] <form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm"> diff --git a/templates/web/fixmystreet/around/around_index.html b/templates/web/fixmystreet/around/around_index.html index 331f34325..3b79a6e8a 100644 --- a/templates/web/fixmystreet/around/around_index.html +++ b/templates/web/fixmystreet/around/around_index.html @@ -8,9 +8,7 @@ %] [% - question - = c.cobrand.enter_postcode_text() - || loc("Enter a nearby GB postcode, or street name and area"); + question = c.cobrand.enter_postcode_text(); %] <form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm"> diff --git a/templates/web/fixmystreet/index.html b/templates/web/fixmystreet/index.html index 04b23ca7f..5603bdc39 100644 --- a/templates/web/fixmystreet/index.html +++ b/templates/web/fixmystreet/index.html @@ -30,9 +30,7 @@ Modernizr.load({ <h2>[% loc('(like graffiti, fly tipping, broken paving slabs, or street lighting)') %]</h2> [% - question - = c.cobrand.enter_postcode_text() - || loc("Enter a nearby GB postcode, or street name and area"); + question = c.cobrand.enter_postcode_text(); %] <form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm"> |