From 91b189b75fcdb86127519399b4653470a7f730c1 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Tue, 1 Nov 2011 01:15:23 +0100 Subject: [PATCH] Relation verbs weren't properly translated as they should. --- src/IDF/Views/Issue.php | 3 +-- src/IDF/templates/idf/issues/view.html | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IDF/Views/Issue.php b/src/IDF/Views/Issue.php index 083bd62..10ecfff 100644 --- a/src/IDF/Views/Issue.php +++ b/src/IDF/Views/Issue.php @@ -993,9 +993,8 @@ class IDF_Views_Issue $r = $project->getRelationsFromConfig(); $auto['auto_relation_types'] = ''; foreach ($r as $rt) { - $esc = Pluf_esc($rt); $auto['auto_relation_types'] .= sprintf('{ name: "%s", to: "%s" }, ', - $esc, $esc); + Pluf_esc(__($rt)), Pluf_esc($rt)); } $auto['auto_relation_types'] = substr($auto['auto_relation_types'], 0, -2); return $auto; diff --git a/src/IDF/templates/idf/issues/view.html b/src/IDF/templates/idf/issues/view.html index 1e2f18f..452ffd7 100644 --- a/src/IDF/templates/idf/issues/view.html +++ b/src/IDF/templates/idf/issues/view.html @@ -190,6 +190,7 @@ {if count($related_issues) > 0} {foreach $related_issues as $verb => $rel_issues}

+{assign $verb = __($verb)} {blocktrans}This issue {$verb}{/blocktrans}
{foreach $rel_issues as $rel_issue}