75952b610eba8982f4223213a8b84e5758fd2224
Peter Palfrader Oops, forgot to checkin thi...

Peter Palfrader authored 19 years ago

1) #!wml
2) <:
Peter Palfrader Add sanity check for define...

Peter Palfrader authored 18 years ago

3) 	# Change both.  The array is ordered (for pages like translation status).
Roger Dingledine resolve typos

Roger Dingledine authored 18 years ago

4) 	# The order of flags in header is based on sort order of language name.
Roger Dingledine this is a better hack. stil...

Roger Dingledine authored 18 years ago

5) 	my @LANGUAGES = qw{en de it fr se};
Peter Palfrader Oops, forgot to checkin thi...

Peter Palfrader authored 19 years ago

6) 	my %LANGUAGES = (
7) 		'en' => "English",
8) 		'de' => "Deutsch",
Roger Dingledine tell the wmi engine about F...

Roger Dingledine authored 18 years ago

9) 		'it' => "Italiano",
Peter Palfrader Add sanity check for define...

Peter Palfrader authored 18 years ago

10) 		'fr' => "Fran&ccedil;ais",
Roger Dingledine this is a better hack. stil...

Roger Dingledine authored 18 years ago

11) 		'se' => "Svenska",
Peter Palfrader Oops, forgot to checkin thi...

Peter Palfrader authored 19 years ago

12) 		);
Peter Palfrader Make translation status mor...

Peter Palfrader authored 19 years ago

13) 	our $WML_SRC_FILENAME;
Peter Palfrader Add sanity check for define...

Peter Palfrader authored 18 years ago

14) 
15) 	# sanity check.
16) 	for my $lang (@LANGUAGES) {
17) 		die "Language $lang defined in \@LANGUAGES but not in \%LANGUAGES in perl-globals"
18) 			unless exists $LANGUAGES{$lang};
19) 	};
20) 	die "\@LANGUAGES and \%LANGUAGES have a different number of elements in perl-globals"
21) 		unless (scalar @LANGUAGES == scalar keys %LANGUAGES);