CVS: ispman/lib/ISPMan L10N.pm,1.2,1.3

Atif Ghaffar <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/lib/ISPMan
In directory sc8-pr-cvs1:/tmp/cvs-serv2241

Modified Files:
	L10N.pm 
Log Message:
Default language set to en_us
Added check to not remove a language from the list if it is the default, even if there is no .po file for that language.


Index: L10N.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/L10N.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** L10N.pm	25 Apr 2003 16:39:40 -0000	1.2
--- L10N.pm	10 Jan 2004 18:27:11 -0000	1.3
***************
*** 20,24 ****
  
  # set the default;
! $languages->{'en'} = ['Auto'];
  my $localeDir=$Config->{'localeDir'} || $Config->{'installDir'} . "/locale";
  
--- 20,24 ----
  
  # set the default;
! $languages->{'en_us'} = ['Auto'];
  my $localeDir=$Config->{'localeDir'} || $Config->{'installDir'} . "/locale";
  
***************
*** 30,34 ****
        $languages->{$_}=["Gettext" => $po];
     } else {
!       delete $ISPMan::Config->{'nls'}{'languages'}{$_};
     }
  }
--- 30,36 ----
        $languages->{$_}=["Gettext" => $po];
     } else {
!       unless ($_ eq $Config->{'nls'}{'defaults'}{'language'}){

! 		  delete $ISPMan::Config->{'nls'}{'languages'}{$_};
! 	   }

     }
  }



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.