From: gfk Date: Tue, 12 Aug 2003 01:16:38 +0000 (+0000) Subject: Localized the 'full' and 'incremental' string in the start stop backup module. X-Git-Tag: v2_1_0beta0~14 X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=commitdiff_plain;h=d5fa3b7c692c93f843a6154866ebd9ea8293302e Localized the 'full' and 'incremental' string in the start stop backup module. --- diff --git a/lib/BackupPC/CGI/StartStopBackup.pm b/lib/BackupPC/CGI/StartStopBackup.pm index e62ced2..578e553 100644 --- a/lib/BackupPC/CGI/StartStopBackup.pm +++ b/lib/BackupPC/CGI/StartStopBackup.pm @@ -46,7 +46,7 @@ sub action my $start = 1 if ( $In{action} eq $Lang->{Start_Incr_Backup} || $In{action} eq $Lang->{Start_Full_Backup} ); my $doFull = $In{action} eq $Lang->{Start_Full_Backup} ? 1 : 0; - my $type = $doFull ? "full" : "incremental"; + my $type = $doFull ? $Lang->{Type_full} : $Lang->{Type_incr}; my $host = $In{host}; my $Privileged = CheckPermission($host); diff --git a/lib/BackupPC/Lang/en.pm b/lib/BackupPC/Lang/en.pm index 72f975e..3e6f5aa 100644 --- a/lib/BackupPC/Lang/en.pm +++ b/lib/BackupPC/Lang/en.pm @@ -12,6 +12,9 @@ $Lang{Start_Incr_Backup} = "Start Incr Backup"; $Lang{Stop_Dequeue_Backup} = "Stop/Dequeue Backup"; $Lang{Restore} = "Restore"; +$Lang{Type_full} = "full"; +$Lang{Type_incr} = "incremental"; + # ----- $Lang{Only_privileged_users_can_view_admin_options} = "Only privileged users can view admin options.";