Relation verbs weren't properly translated as they should.

This commit is contained in:
Thomas Keller 2011-11-01 01:15:23 +01:00
parent 623c562054
commit 91b189b75f
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -190,6 +190,7 @@
{if count($related_issues) > 0}
{foreach $related_issues as $verb => $rel_issues}
<p>
{assign $verb = __($verb)}
<strong>{blocktrans}This issue {$verb}{/blocktrans}</strong><br />
{foreach $rel_issues as $rel_issue}
<span class="label">