aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Whiteland <dave@fury.ukcod.org.uk>2011-10-24 19:31:03 +0100
committerDave Whiteland <dave@mysociety.org>2012-03-23 13:44:16 +0000
commit18b4ba90db73d5fe26bfc14481132bb5b6ab211a (patch)
treeb4a5975e9a1acb90088924cdf946ec677d38e361
parent45a8adeb2b2698a7f412a0305c824b4a3a4a133c (diff)
split the clauses a little for the benefit of the translator
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index 4b8966aef..bbbd682ba 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -579,8 +579,11 @@ sub processed_summary_string {
$duration_clause = $problem->duration_string($c)
}
if ($problem->external_id) {
- my $external_body = $duration_clause? _("their") : $problem->external_body;
- $external_ref_clause = sprintf(_('%s ref:&nbsp;%s'), $external_body, $problem->external_id);
+ if ($duration_clause) {
+ $external_ref_clause = sprintf(_('their ref:&nbsp;%s'), $problem->external_id);
+ } else {
+ $external_ref_clause = sprintf(_('%s ref:&nbsp;%s'), $problem->external_body, $problem->external_id);
+ }
}
if ($duration_clause and $external_ref_clause) {
return "$duration_clause, $external_ref_clause"