diff options
author | Dave Whiteland <dave@fury.ukcod.org.uk> | 2011-10-24 19:31:03 +0100 |
---|---|---|
committer | Dave Whiteland <dave@mysociety.org> | 2012-03-23 13:44:16 +0000 |
commit | 18b4ba90db73d5fe26bfc14481132bb5b6ab211a (patch) | |
tree | b4a5975e9a1acb90088924cdf946ec677d38e361 | |
parent | 45a8adeb2b2698a7f412a0305c824b4a3a4a133c (diff) |
split the clauses a little for the benefit of the translator
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 7 |
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: %s'), $external_body, $problem->external_id); + if ($duration_clause) { + $external_ref_clause = sprintf(_('their ref: %s'), $problem->external_id); + } else { + $external_ref_clause = sprintf(_('%s ref: %s'), $problem->external_body, $problem->external_id); + } } if ($duration_clause and $external_ref_clause) { return "$duration_clause, $external_ref_clause" |