For lib/*.pm, template variable breakout.
Collaboration template labels need to be rethought fix t/i18n/label.t to not always check on the name of a variable as an i18n entry, since the description may hold the actual variable description.
This commit is contained in:
parent
00293b3388
commit
4c39c6759b
9 changed files with 1973 additions and 1108 deletions
|
|
@ -204,16 +204,14 @@ sub getHelpLabels {
|
|||
entry=>$entry,
|
||||
tag=>'variables',
|
||||
namespace=>$namespace,
|
||||
label=>$variable->{name},
|
||||
};
|
||||
if ($variable->{description}) {
|
||||
$one->{label} = $variable->{description},
|
||||
}
|
||||
else {
|
||||
$one->{label} = $variable->{name},
|
||||
}
|
||||
push @helpLabels, $one;
|
||||
push @helpLabels, {
|
||||
topic=>$topic,
|
||||
entry=>$entry,
|
||||
tag=>'variables',
|
||||
namespace=>$namespace,
|
||||
label=>$variable->{description},
|
||||
} if $variable->{description};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue