aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mytton <self@hecticjeff.net>2013-09-26 12:13:07 +0100
committerChris Mytton <self@hecticjeff.net>2013-09-26 12:13:10 +0100
commitbcfdf1fb100384159e31b474d9d38f0059a0d464 (patch)
tree52d63e09b83069264b851e287093353c61027cff
parent0e80ec65575f21352b3ac8bb774cc50da94d226a (diff)
Make character limit translation string more generic
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index 4fa442608..d3ae416fc 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -390,11 +390,11 @@ sub check_for_errors {
if ( $self->bodies_str && $self->detail ) {
if ( $self->bodies_str eq '2482' && length($self->detail) > 2000 ) {
- $errors{detail} = _('Reports are limited to 2000 characters in length. Please shorten your report');
+ $errors{detail} = sprintf( _('Reports are limited to %s characters in length. Please shorten your report'), 2000 );
}
if ( $self->bodies_str eq '2237' && length($self->detail) > 1700 ) {
- $errors{detail} = _('Reports are limited to 1700 characters in length. Please shorten your report');
+ $errors{detail} = sprintf( _('Reports are limited to %s characters in length. Please shorten your report'), 1700 );
}
}