"browse" => \&Action_Browse,
$Lang->{Restore} => \&Action_Restore,
"RestoreFile" => \&Action_RestoreFile,
- $Lang->{hostInfo} => \&Action_HostInfo,
+ "hostInfo" => \&Action_HostInfo,
"generalInfo" => \&Action_GeneralInfo,
"restoreInfo" => \&Action_RestoreInfo,
);
#
# Set default actions, then call sub handler
#
-$In{action} ||= $Lang->{hostInfo} if ( defined($In{host}) );
+$In{action} ||= "hostInfo" if ( defined($In{host}) );
$In{action} = "generalInfo" if ( !defined($ActionDispatch{$In{action}}) );
$ActionDispatch{$In{action}}();
exit(0);
<td align="center"> $fullRate </td>
<td align="center"> $incrCnt </td>
<td align="center"> $incrAge </td>
- <td align="center"> $Status{$host}{state} </td>
- <td> $Status{$host}{reason} </td></tr>
+ <td align="center"> $Lang->{$Status{$host}{state}} </td>
+ <td> $Lang->{$Status{$host}{reason}} </td></tr>
EOF
if ( @Backups == 0 ) {
$hostCntNone++;
$StatusHost{startTime} : $StatusHost{endTime});
my $reason = "";
if ( $StatusHost{reason} ne "" ) {
- $reason = " ($StatusHost{reason})";
+ $reason = " ($Lang->{$StatusHost{reason}})";
}
$statusStr .= eval("qq{$Lang->{Last_status_is_state_StatusHost_state_reason_as_of_startTime}}");
$jobStr .= "</tr>\n";
}
foreach my $host ( sort(keys(%Status)) ) {
- next if ( $Status{$host}{reason} ne "backup failed" );
+ next if ( $Status{$host}{reason} ne "Reason_backup_failed" );
my $startTime = timeStamp2($Status{$host}{startTime});
my($errorTime, $XferViewStr);
if ( $Status{$host}{errorTime} > 0 ) {
<tr><td>$Lang->{Host_or_User_name}</td>
<tr><td><form action="$MyURL" method="get"><small>
<input type="text" name="host" size="10" maxlength="64">
- <input type="hidden" name="action" value="$Lang->{hostInfo}"><input type="submit" value="$Lang->{Go}" name="ignore">
+ <input type="hidden" name="action" value="hostInfo"><input type="submit" value="$Lang->{Go}" name="ignore">
</small></form></td></tr>
</table>
EOF