aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/View/Web.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-09-24 15:35:39 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-09-28 12:34:18 +0100
commitb39b1034cdf7036f62be25dbf1cd829e800ea018 (patch)
tree3c988a6392e62771c512ab0eecdf9fbb91558d9b /perllib/FixMyStreet/App/View/Web.pm
parent99610f11646c3b8530dfdb19e08b11650569b9f6 (diff)
Remove remaining hardcoded site name from strings.
Add a site_name template parameter available to all templates.
Diffstat (limited to 'perllib/FixMyStreet/App/View/Web.pm')
-rw-r--r--perllib/FixMyStreet/App/View/Web.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/View/Web.pm b/perllib/FixMyStreet/App/View/Web.pm
index da549ece8..9cc571efc 100644
--- a/perllib/FixMyStreet/App/View/Web.pm
+++ b/perllib/FixMyStreet/App/View/Web.pm
@@ -40,15 +40,15 @@ TT View for FixMyStreet::App.
=head2 loc
- [% loc('Some text to localize') %]
+ [% loc('Some text to localize', 'Optional comment for translator') %]
Passes the text to the localisation engine for translations.
=cut
sub loc {
- my ( $self, $c, @args ) = @_;
- return _(@args);
+ my ( $self, $c, $msgid ) = @_;
+ return _($msgid);
}
=head2 nget