From: gfk Date: Mon, 30 Dec 2002 21:03:46 +0000 (+0000) Subject: Small l10n clean up. X-Git-Tag: v2_0_0beta0~15 X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=commitdiff_plain;h=07cb5dd25e2f4ffa2414f2e8d33990b6a5b3b91e Small l10n clean up. --- diff --git a/cgi-bin/BackupPC_Admin b/cgi-bin/BackupPC_Admin index cac9707..63f03af 100755 --- a/cgi-bin/BackupPC_Admin +++ b/cgi-bin/BackupPC_Admin @@ -126,7 +126,7 @@ my %ActionDispatch = ( "browse" => \&Action_Browse, $Lang->{Restore} => \&Action_Restore, "RestoreFile" => \&Action_RestoreFile, - $Lang->{hostInfo} => \&Action_HostInfo, + "hostInfo" => \&Action_HostInfo, "generalInfo" => \&Action_GeneralInfo, "restoreInfo" => \&Action_RestoreInfo, ); @@ -134,7 +134,7 @@ my %ActionDispatch = ( # # 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); @@ -1810,7 +1810,7 @@ EOF $Lang->{Host_or_User_name}
- +
EOF diff --git a/lib/BackupPC/Lang/en.pm b/lib/BackupPC/Lang/en.pm index 8a57a1f..a606679 100644 --- a/lib/BackupPC/Lang/en.pm +++ b/lib/BackupPC/Lang/en.pm @@ -671,8 +671,6 @@ $Lang{Only_privileged_users_can_view_email_summaries} = "Only privileged users c $Lang{Only_privileged_users_can_browse_backup_files} = "Only privileged users can browse backup files" . " for host \${EscapeHTML(\$In{host})}."; $Lang{Empty_host_name} = "Empty host name."; -$Lang{Can_t_browse_bad_directory_name} = "Can\'t browse bad directory name" - . " \${EscapeHTML(\"\$TopDir/pc/\$host/\$num\")}"; $Lang{Directory___EscapeHTML} = "Directory \${EscapeHTML(\"\$TopDir/pc/\$host/\$num\")}" . " is empty"; $Lang{Can_t_browse_bad_directory_name2} = "Can\'t browse bad directory name" @@ -691,7 +689,6 @@ $Lang{Can_t_open_create} = "Can\'t open/create " $Lang{Only_privileged_users_can_restore_backup_files2} = "Only privileged users can restore backup files" . " for host \${EscapeHTML(\$host)}."; $Lang{Empty_host_name} = "Empty host name"; -$Lang{Can_t_restore_bad_file} = "Can\'t restore bad file \${EscapeHTML(\$fullPath)}"; $Lang{Unknown_host_or_user} = "Unknown host or user \${EscapeHTML(\$host)}"; $Lang{Only_privileged_users_can_view_information_about} = "Only privileged users can view information about" . " host \${EscapeHTML(\$host)}." ; @@ -707,7 +704,6 @@ $Lang{Unable_to_connect_to_BackupPC_server} = "Unable to connect to BackupPC ser . " configuration error. Please report this to your Sys Admin."; $Lang{Can_t_find_IP_address_for} = "Can\'t find IP address for \${EscapeHTML(\$host)}"; - $Lang{host_is_a_DHCP_host} = <