[LON-CAPA-cvs] cvs: loncom /interface lonsupportreq.pm
bisitz
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 29 Jan 2008 17:36:58 -0000
bisitz Tue Jan 29 12:36:58 2008 EDT
Modified files:
/loncom/interface lonsupportreq.pm
Log:
Localization:
- Added missing &mt()
- Optimized some &mt() calls
Index: loncom/interface/lonsupportreq.pm
diff -u loncom/interface/lonsupportreq.pm:1.46 loncom/interface/lonsupportreq.pm:1.47
--- loncom/interface/lonsupportreq.pm:1.46 Sun Jan 13 11:53:46 2008
+++ loncom/interface/lonsupportreq.pm Tue Jan 29 12:36:56 2008
@@ -1,5 +1,5 @@
#
-# $Id: lonsupportreq.pm,v 1.46 2008/01/13 16:53:46 raeburn Exp $
+# $Id: lonsupportreq.pm,v 1.47 2008/01/29 17:36:56 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -762,17 +762,20 @@
login => 'Log-in help',
ask => 'Ask helpdesk',
getst => 'Getting started guide',
- back => 'Back to last location'
+ back => 'Back to last location',
+ headline => 'help/support',
);
- my ($getstartlink,$getstarttext);
+ my ($getstartlink,$reviewtext);
if (-e $Apache::lonnet::perlvar{'lonDocRoot'}.'/adm/gettingstarted.html') {
$getstartlink = qq|<td align="center"> <b><a href="/adm/gettingstarted.html">$lt{'getst'}</a></td>|;
- $getstarttext = ' '.&mt('and the "Getting started" guide').' ';
+ $reviewtext = &mt('Please review the information in "Log-in help" and the "Getting started" guide if you are unable to log-in.');
+ } else {
+ $reviewtext = &mt('Please review the information in "Log-in help" if you are unable to log-in.');
}
$r->print(<<END);
<table width="620" border="0" cellspacing="0" cellpadding="0" height="55"> <tr height="50"> <td width='5'> </td>
<td>
- <fieldset><legend><img src="$location/lonIcons/minilogo.gif" height='20' width='29' valign='bottom' /> <b><font size="+1">LON-CAPA help/support</font></b></legend>
+ <fieldset><legend><img src="$location/lonIcons/minilogo.gif" height='20' width='29' valign='bottom' /> <b><font size="+1">LON-CAPA $lt{'headline'}</font></b></legend>
<table id="LC_helpmenu_links">
<tr>
<td align="center"><span class="LC_nobreak"><img src="$location/help/gif/smallHelp.gif" border="0" alt="($lt{'login'})" valign="middle" /> <b><a href="/adm/loginproblems.html">$lt{'login'}</a></b> </span></td>
@@ -791,8 +794,11 @@
if ($command ne 'process') {
$r->print('
<tr>
- <td colspan="3">'.&mt('
-Please review the information in "Log-in help"').$getstarttext.' '.&mt('if you are unable to log-in').'. '.&mt('If your problem is still unresolved, the form below can be used to send a question to the LON-CAPA helpdesk').'.<br /><font size="-1"><b>'.&mt('Students').'</b>: '.&mt('Do <b>not</b> use this form to ask questions about course content.').' '.&mt('Contact your instructor instead.').'</font><br /><br />
+ <td colspan="3">'.$reviewtext.' '
+.&mt('If your problem is still unresolved, the form below can be used to send a question to the LON-CAPA helpdesk.').'<br />'
+.'<font size="-1"><b>'.&mt('Students').'</b>: '.&mt('Do <b>not</b> use this form to ask questions about course content.').' '
+.&mt('Contact your instructor instead.')
+.'</font><br /><br />
</td>
</tr>');
}