Moved the Wiki Help link into i18n so it can be pointed to other sites for

other lanugages.
This commit is contained in:
JT Smith 2008-02-25 20:20:25 +00:00
parent 409f78bb86
commit 4646561299
3 changed files with 7 additions and 29 deletions

View file

@ -1,4 +1,6 @@
7.5.4
- Moved the Wiki Help link into i18n so it can be pointed to other sites for
other lanugages.
7.5.3
- prevent HTML and Macro injection in usernames

View file

@ -362,7 +362,7 @@ sub www_viewHelp {
WebGUI::Macro::process($session,\$body);
return $ac->render(wikiHelpLink($session).$body, $i18n->get(93, 'WebGUI').': '.$i18n->get($help->{title}));
return $ac->render($i18n->get("external help", "WebGUI").$body, $i18n->get(93, 'WebGUI').': '.$i18n->get($help->{title}));
}
#-------------------------------------------------------------------
@ -434,26 +434,7 @@ sub www_viewHelpIndex {
}
$output .= '</td></tr></table>';
my $ac = WebGUI::AdminConsole->new($session,"help");
return $ac->render(wikiHelpLink($session).$output, join ': ',$i18n->get(93), $i18n->get('help index'));
}
#-------------------------------------------------------------------
=head2 wikiHelpLink ( $session )
Utility method that returns link to the WebGUI Community Wiki with i18n'ed text.
=cut
sub wikiHelpLink {
my $session = shift;
return $session->privilege->insufficient() unless canView($session);
my $i18n = WebGUI::International->new($session);
return sprintf q!<p>%s <a href="%s">%s</a></p>!,
$i18n->get('wiki help label leadin'),
'http://www.webgui.org/community-wiki',
$i18n->get('wiki help target'),
;
return $ac->render($i18n->get("external help", "WebGUI").$output, join ': ',$i18n->get(93), $i18n->get('help index'));
}
1;

View file

@ -3886,14 +3886,9 @@ LongTruncOk=1</p>
lastUpdated => 0,
},
'wiki help label leadin' => {
message => q{For more help, visit the},
lastUpdated => 1185162265,
},
'wiki help target' => {
message => q{WebGUI Community Wiki},
lastUpdated => 1185162267,
'external help' => {
message => q{<p>For more help, visit the <a href="http://wiki.webgui.org/">WebGUI Community Wiki</a>.</p>},
lastUpdated => 0,
},
'user profile field friend availability' => {