Subversion Repositories skolelinux

Compare Revisions

Ignore whitespace Rev 35809 → Rev 35810

/tags/release_0_39/src/locale-config-skolelinux/conffiles.d/opera6
New file
0,0 → 1,110
#!/usr/bin/perl
use strict;
use warnings;
use Config::IniFiles;
 
my $lang = shift or die "No language code given\n";
 
my $file = '/etc/opera6rc';
 
my %lang_map = (
#entries sorted alphabetically
'ca_ES@euro' => { code => 'ca',
accept => 'ca-ES,ca,es,en',
},
'da_DK' => { code => 'da',
accept => 'da,en',
},
'de_BE@euro' => { code => 'de',
accept => 'de,en,fr,nl',
},
'de_DE@euro' => { code => 'de',
accept => 'de,en',
},
'es_ES@euro' => { code => 'es',
accept => 'es-ES,es,en',
},
'es_MX' => { code => 'es',
accept => 'es-MX,es,en',
},
# 'fi_FI@euro' => { code => 'fi',
# accept => 'fi,en',
# },
'fr_BE@euro' => { code => 'fr',
accept => 'fr,nl,en',
},
'fr_CA' => { code => 'fr',
accept => 'fr,en',
},
'fr_FR@euro' => { code => 'fr',
accept => 'fr,en',
},
# 'it_IT@euro' => { code => 'it',
# accept => 'it,en',
# },
'lv_LV' => { code => 'lv',
accept => 'lv,ru,en',
},
'nb_NO' => { code => 'nb', # nb_NO and no_NO is the same
accept => 'nb,no,nn,en',
},
'nds_DE' => { code => 'nds',
accept => 'nds,de,en',
},
'nl_BE@euro' => { code => 'nl',
accept => 'nl,fr,en',
},
'nl_NL@euro' => { code => 'nl',
accept => 'nl,en',
},
'nn_NO' => { code => 'nn',
accept => 'nn,no,nb,en',
},
'no_NO' => { code => 'nb',
accept => 'nb,no,nn,en',
},
 
'pl_PL' => { code => 'pl',
accept => 'pl,en',
},
'pt_BR' => { code => 'pt',
accept => 'pt-BR,pt,en',
},
'se_NO' => { code => 'nb',
accept => 'se,nb,no,nn,en',
},
# 'sv_SE' => { code => 'sv',
# accept => 'sv,en',
# },
'tr_TR' => { code => 'tr',
accept => 'tr,en',
},
);
 
if ("supported" eq $lang) {
for $lang (sort keys %lang_map) {
print "$lang\n";
}
exit 0;
}
 
exit unless -e $file;
 
if(defined(my $conf = $lang_map{$lang})) {
my $ini = new Config::IniFiles( -file => $file )
or die "$0: Can't open $file: $!\n";
 
$ini->newval('User Prefs',
'Language Files Directory',
'/usr/share/opera/locale/');
$ini->newval('User Prefs',
'Language File',
'/usr/share/opera/locale/'.$conf->{code}.'.qm');
$ini->newval('Adv User Prefs',
'HTTP Accept Language',
$conf->{accept});
$ini->RewriteConfig
or die "$0: Can't save $file: $!\n";
} else {
die "$0: No support for language '$lang'\n";
}
Property changes:
Added: svn:executable
+ *
/tags/release_0_39/src/locale-config-skolelinux/conffiles.d/ktouch
New file
0,0 → 1,72
#!/usr/bin/perl
use strict;
use warnings;
use Config::IniFiles;
 
my $lang = shift or die "No language code given\n";
 
my $filename = '/etc/kde2/ktouchrc';
 
my $section = "Keyboard";
 
# ktouch version 1.0 support one of: de en fr it la no pt
my %lang_map = (
#entries sorted alphabetically
# 'ca_ES@euro' => { LAYOUT => 'ca' },
# 'da_DK' => { LAYOUT => 'dk' },
'de_BE@euro' => { LAYOUT => 'de' },
'de_DE@euro' => { LAYOUT => 'de' },
# 'el_GR.UTF-8'=> { LAYOUT => 'el' },
'en_AU' => { LAYOUT => 'en' },
'en_CA' => { LAYOUT => 'en' },
'en_IE@euro' => { LAYOUT => 'en' },
'en_US' => { LAYOUT => 'en' },
# 'es_ES@euro' => { LAYOUT => 'es' },
'es_MX' => { LAYOUT => 'la' },
# 'fi_FI@euro' => { LAYOUT => 'fi' },
'fr_BE@euro' => { LAYOUT => 'fr' },
'fr_CA' => { LAYOUT => 'us' },
'fr_FR@euro' => { LAYOUT => 'fr' },
'it_IT@euro' => { LAYOUT => 'it' },
'ja_JP' => { LAYOUT => 'en' },
# 'lv_LV' => { LAYOUT => 'lv' },
'nb_NO' => { LAYOUT => 'no' }, # Same as no_NO
'nds_DE' => { LAYOUT => 'de' },
'nl_BE@euro' => { LAYOUT => 'fr' },
'nl_NL@euro' => { LAYOUT => 'en' },
'nn_NO' => { LAYOUT => 'no' },
'no_NO' => { LAYOUT => 'no' }, # Same as nb_NO
'pl_PL' => { LAYOUT => 'pl' },
'pt_BR' => { LAYOUT => 'la' },
'se_NO' => { LAYOUT => 'no' }, # Should use saami
# 'sv_SE' => { LAYOUT => 'se' },
'tr_TR' => { LAYOUT => 'tr' },
);
 
if ("supported" eq $lang) {
for $lang (sort keys %lang_map) {
print "$lang\n";
}
exit 0;
}
 
if(defined(my $conf = $lang_map{$lang})) {
 
# Make sure the file exist, as Config::IniFiles do not create
# empty config files.
if ( ! -f $filename ) {
open(FILE, "> $filename") || die "Unable to create $filename";
print FILE "[$section]\n";
close(FILE);
}
 
my $ini = new Config::IniFiles( -file => $filename)
or die "$0: Can't open $filename: $!\n";
$ini->newval("$section",
"Language",
$conf->{LAYOUT});
$ini->RewriteConfig or die "$0: Can't save $filename: $!\n";
} else {
die "$0: No support for language '$lang'\n";
}
Property changes:
Added: svn:executable
+ *
/tags/release_0_39/src/locale-config-skolelinux/conffiles.d/locale
New file
0,0 → 1,226
#!/usr/bin/perl
 
use strict;
use warnings;
 
my $lang = shift or die "No language code given\n";
 
my $localegen = "/etc/locale.gen";
my $environment = "/etc/environment";
 
my $debug = 0;
 
#these are glibc settings -> see /usr/share/i18n/SUPPORTED
my %lang_map = (
#entries sorted alphabetically
'ca_ES@euro' => { LANG => 'ca_ES@euro',
LANGUAGE => 'ca_ES@euro:ca_ES:ca:es_ES@euro:es_ES:es:en_GB:en',
LOCALEGEN => 'ca_ES@euro ISO-8859-15',
},
'da_DK' => { LANG => 'da_DK',
LANGUAGE => 'da_DK:en_GB:en',
LOCALEGEN => 'da_DK ISO-8859-1',
},
'de_BE@euro' => { LANG => 'de_BE@euro',
LANGUAGE => 'de_BE@euro:de_BE:de:en_GB:en',
LOCALEGEN => 'de_BE@euro ISO-8859-15',
},
'de_DE@euro' => { LANG => 'de_DE@euro',
LANGUAGE => 'de_DE@euro:de_DE:de:en_GB:en',
LOCALEGEN => 'de_DE@euro ISO-8859-15',
},
'el_GR.UTF-8' => { LANG => 'el_GR.UTF-8',
LANGUAGE => 'el_GR.UTF-8:el_GR:el:en_GB:en',
LOCALEGEN => 'el_GR.UTF-8 UTF-8',
},
'en_AU' => { LANG => 'en_AU',
LANGUAGE => 'en_AU:en_GB:en',
LOCALEGEN => 'en_AU ISO-8859-1',
},
'en_CA' => { LANG => 'en_CA',
LANGUAGE => 'en_CA:en_GB:en',
LOCALEGEN => 'en_CA ISO-8859-1',
},
'en_IE@euro' => { LANG => 'en_IE@euro',
LANGUAGE => 'en_IE:en_GB:en',
LOCALEGEN => 'en_IE@euro ISO-8859-15',
},
'en_US' => { LANG => 'en_US',
LANGUAGE => 'en_US:en_GB:en',
LOCALEGEN => 'en_US ISO-8859-1',
},
'es_AR' => { LANG => 'es_AR',
LANGUAGE => 'es_AR:es_AR.UTF-8:es_ES@euro:es_ES:es:en_GB:en_US:en',
LOCALEGEN => 'es_AR ISO-8859-1',
},
'es_ES@euro' => { LANG => 'es_ES@euro',
LANGUAGE => 'es_ES@euro:es_ES:es:en_GB:en',
LOCALEGEN => 'es_ES@euro ISO-8859-15',
},
'es_MX' => { LANG => 'es_MX',
LANGUAGE => 'es_MX:es_ES@euro:es:en_US:en',
LOCALEGEN => 'es_MX ISO-8859-15',
},
'es_PE' => { LANG => 'es_PE',
LANGUAGE => 'es_PE:es_ES@euro:es:en_US:en',
LOCALEGEN => 'es_PE ISO-8859-1',
},
'fi_FI@euro' => { LANG => 'fi_FI@euro',
LANGUAGE => 'fi_FI@euro:fi_FI:fi:sv_SE:sv:en_GB:en',
LOCALEGEN => 'fi_FI@euro ISO-8859-15',
},
'fr_BE@euro' => { LANG => 'fr_BE@euro',
LANGUAGE => 'fr_BE@euro:fr_BE:fr:en_GB:en',
LOCALEGEN => 'fr_BE@euro ISO-8859-15',
},
'fr_CA' => { LANG => 'fr_CA',
LANGUAGE => 'fr_CA:fr_FR:en_CA:en_GB:en',
LOCALEGEN => 'fr_CA ISO-8859-1',
},
'fr_FR@euro' => { LANG => 'fr_FR@euro',
LANGUAGE => 'fr_FR@euro:fr_FR:fr:en_GB:en',
LOCALEGEN => 'fr_FR@euro ISO-8859-15',
},
'it_IT@euro' => { LANG => 'it_IT@euro',
LANGUAGE => 'it_IT@euro:it_IT',
LOCALEGEN => 'it_IT@euro ISO-8859-15',
},
'ja_JP' => { LANG => 'ja_JP.EUC-JP',
LANGUAGE => '',
LOCALEGEN => 'ja_JP.EUC-JP EUC-JP',
},
'lv_LV' => { LANG => 'lv_LV',
LANGUAGE => 'lv:ru:en',
LOCALEGEN => 'lv_LV ISO-8859-13',
},
'ko_KR' => { LANG => 'ko_KR.UTF-8',
LANGUAGE => '',
LOCALEGEN => 'ko_KR UTF-8',
},
'nb_NO' => { LANG => 'no_NO',
LANGUAGE => 'nb_NO:nb:no_NO:no:nn_NO:nn:da:sv:en_GB:en',
LOCALEGEN => 'no_NO ISO-8859-1',
},
# 'nds_DE' => { LANG => 'nds_DE',
# LANGUAGE => 'nds_DE;nds;de_DE;de:en_GB:en',
# LOCALEGEN => 'nds_DE ISO-8859-15',
# },
'nl_BE@euro' => { LANG => 'nl_BE@euro',
LANGUAGE => 'nl_BE@euro:nl_BE:nl:en_GB:en',
LOCALEGEN => 'NL_BE@euro ISO-8859-15',
},
'nl_NL@euro' => { LANG => 'nl_NL@euro',
LANGUAGE => 'nl_NL@euro:nl_NL:nl:en_GB:en',
LOCALEGEN => 'nl_NL@euro ISO-8859-15',
},
'nn_NO' => { LANG => 'nn_NO',
LANGUAGE => 'nn_NO:nn:no_NO:no:nb_NO:nb:da:sv:en_GB:en',
LOCALEGEN => 'nn_NO ISO-8859-1',
},
'no_NO' => { LANG => 'no_NO', # nb_NO and no_NO is the same
LANGUAGE => 'nb_NO:nb:no_NO:no:nn_NO:nn:da:sv:en_GB:en',
LOCALEGEN => 'no_NO ISO-8859-1',
},
'pl_PL' => { LANG => 'pl_PL',
LANGUAGE => 'pl_PL:en_GB:en',
LOCALEGEN => 'pl_PL ISO-8859-2',
},
'pt_BR' => { LANG => 'pt_BR',
LANGUAGE => 'pt_BR:pt:en_GB:en',
LOCALEGEN => 'pt_BR ISO-8859-1',
},
'se_NO' => { LANG => 'se_NO',
LANGUAGE => 'se_NO:se:nb_NO:nb:no_NO:no:nn_NO:nn:en_GB:en',
LOCALEGEN => 'se_NO UTF-8',
},
'sv_SE' => { LANG => 'sv_SE',
LANGUAGE => 'sv_SE:sv:en_GB:en',
LOCALEGEN => 'sv_SE ISO-8859-1',
},
'tr_TR' => { LANG => 'tr_TR',
LANGUAGE => 'tr_TR:en_GB:en',
LOCALEGEN => 'tr_TR ISO-8859-9',
},
);
 
# Return 0 if the file wasn't changed and 1 if the file was updated
sub AppendIfMissingLine {
my ($filename, $line) = @_;
my $updated = 0;
 
my @lines;
if (open(FILE, "<$filename")) {
@lines = <FILE>;
close(FILE);
}
 
$line .= "\n";
 
if ( ! grep /^$line$/, @lines ) {
$updated = 1;
push(@lines, $line);
}
 
if ($updated) {
print "Updating $filename\n" if $debug;
open(FILE, ">$filename.new") || die "Unable to write $filename.new";
print FILE @lines;
close(FILE);
rename "$filename.new", $filename;
}
return $updated;
}
 
# Return 0 if nothing changed, and 1 if the file was updated
sub UpdateOrAppendVariable {
my ($filename, $variable, $content) = @_;
my $updated = 0;
my $newline = "$variable=$content\n";
 
my @lines;
if (open(FILE, "<$filename")) {
@lines = <FILE>;
close(FILE);
}
 
if (grep /^$variable=/, @lines ) {
@lines = map { if ($_ =~ m/^$variable=/ && $_ ne $newline)
{ $updated = 1;
$newline; }
else
{ $_; }
} @lines;
} else {
$updated = 1;
push(@lines, $newline);
}
if ($updated) {
print "Updating $filename\n" if $debug;
open(FILE, ">$filename.new") || die "Unable to write $filename.new";
print FILE @lines;
close(FILE);
rename "$filename.new", $filename;
}
return $updated;
}
 
if ("supported" eq $lang) {
for $lang (sort keys %lang_map) {
print "$lang\n";
}
exit 0;
}
 
if(defined(my $conf = $lang_map{$lang})) {
 
if (AppendIfMissingLine($localegen, $conf->{'LOCALEGEN'})) {
system("/usr/sbin/locale-gen >/dev/null 2>&1");
}
 
for my $variable ("LANG", "LANGUAGE") {
UpdateOrAppendVariable($environment, $variable, $conf->{$variable});
}
 
} else {
die "$0: No support for language '$lang'\n";
}
Property changes:
Added: svn:executable
+ *
/tags/release_0_39/src/locale-config-skolelinux/conffiles.d/links
New file
0,0 → 1,90
#!/usr/bin/perl
 
use strict;
use warnings;
 
my $file = '/etc/links.cfg';
my $debug = 0;
 
my %lang_map = (
#entries sorted alphabetically
'ca_ES@euro' => { LANGUAGE => 'Catalan' },
'da_DK' => { LANGUAGE => 'Danish' },
'de_BE@euro' => { LANGUAGE => 'German' },
'de_DE@euro' => { LANGUAGE => 'German' },
'el_GR.UTF-8'=> { LANGUAGE => 'Greek' },
'es_ES@euro' => { LANGUAGE => 'Spanish' },
'es_MX' => { LANGUAGE => 'Spanish' },
'fi_FI@euro' => { LANGUAGE => 'Finnish' },
'fr_BE@euro' => { LANGUAGE => 'French' },
'fr_CA' => { LANGUAGE => 'French' },
'fr_FR@euro' => { LANGUAGE => 'French' },
'it_IT@euro' => { LANGUAGE => 'Italian' },
#'lv_LV' => { LANGUAGE => 'lv' }, not supported by links
'nb_NO' => { LANGUAGE => 'Norwegian' }, # Same as no_NO
# 'nds_DE' => { LANGUAGE => ''},
'nl_BE@euro' => { LANGUAGE => 'Dutch' },
'nl_NL@euro' => { LANGUAGE => 'Dutch' },
'nn_NO' => { LANGUAGE => 'Norwegian' },
'no_NO' => { LANGUAGE => 'Norwegian' }, # Same as nb_NO
'pl_PL' => { LANGUAGE => 'Polish' },
'pt_BR' => { LANGUAGE => 'Portuguese' },
'se_NO' => { LANGUAGE => 'Norwegian' }, # Should use saami
'sv_SE' => { LANGUAGE => 'Swedish' },
'tr_TR' => { LANGUAGE => 'Turkish' },
);
 
my $lang = $ARGV[0] or die "No language given";
 
if ("supported" eq $lang) {
for $lang (sort keys %lang_map) {
print "$lang\n";
}
exit 0;
}
 
if(defined(my $conf = $lang_map{$lang})) {
my $links_lang = $conf->{'LANGUAGE'};
print "Links language: $links_lang\n" if $debug;
UpdateCfgFile($file, $links_lang)
or die "$0: Can't save file: $!\n";
} else {
die "$0: No support for language '$lang'\n";
}
 
sub UpdateCfgFile {
my ($file, $value) = @_;
my $newline = "language \"$value\"\n";
my $updated;
 
my @lines;
if (open(FILE, "<$file")) {
@lines = <FILE>;
close(FILE);
}
my $i = 0;
foreach (@lines) {
if ($lines[$i]=~/language \"*/) {
$lines[$i] = $newline;
$updated=1;
}
$i++;
}
 
# If !updated the "language" option was not found.
# So we append it at the end of the file.
if (!$updated) {
$lines[$i] = $newline;
$updated=1;
}
 
if ($updated) {
print "Updating $file\n" if $debug;
open(FILE, ">$file.new") or die "Unable to write to $file.new";
print FILE @lines;
close(FILE);
rename "$file.new", $file;
}
return $updated;
}
/tags/release_0_39/src/locale-config-skolelinux/conffiles.d/kde2
New file
0,0 → 1,176
#!/usr/bin/perl
use strict;
use warnings;
use Config::IniFiles;
 
my $lang = shift or die "No language code given\n";
 
my $global = '/etc/kde2/system.kdeglobals';
 
# KDM does not honour the global KDE settings,
# wee need to edit kdmrc too
my $kdmrc = '/etc/kde2/kdm/kdmrc';
 
# These are X settings -> see /usr/X11R6/lib/locale for charset names
my %lang_map = (
#entries sorted alphabetically
'ca_ES@euro' => { Country => 'es',
Language => 'ca_ES',
Charset => 'iso8859-15',
},
da_DK => { Country => 'dk',
Language => 'da_DK',
Charset => 'iso8859-1',
},
'de_BE@euro' => { Country => 'be',
Language => 'de_BE',
Charset => 'iso8859-15',
},
'de_DE@euro' => { Country => 'de',
Language => 'de',
Charset => 'iso8859-15',
},
'el_GR.UTF-8' => { Country => 'el',
Language => 'el_GR',
Charset => 'iso10646-1',
},
'en_AU' => { Country => 'au',
Language => 'en',
Charset => 'iso8859-1',
},
'en_CA' => { Country => 'ca',
Language => 'en',
Charset => 'iso8859-1',
},
'en_IE@euro' => { Country => 'ie',
Language => 'en',
Charset => 'iso8859-15',
},
'en_US' => { Country => 'us',
Language => 'en',
Charset => 'iso8859-1',
},
'es_AR' => { Country => 'ar',
Language => 'es_AR',
Charset => 'iso8859-1',
},
'es_ES@euro' => { Country => 'es',
Language => 'es_ES',
Charset => 'iso8859-15',
},
'es_MX' => { Country => 'mx',
Language => 'es_MX',
Charset => 'iso8859-15',
},
'es_PE' => { Country => 'pe',
Language => 'es_PE',
Charset => 'iso8859-1',
},
'fi_FI@euro' => { Country => 'fi',
Language => 'fi_FI@euro',
Charset => 'iso8859-15',
},
'fr_BE@euro' => { Country => 'be',
Language => 'fr_BE',
Charset => 'iso8859-15',
},
'fr_CA' => { Country => 'ca',
Language => 'fr',
Charset => 'iso8859-1',
},
'fr_FR@euro' => { Country => 'fr',
Language => 'fr_FR',
Charset => 'iso8859-15',
},
'it_IT@euro' => { Country => 'it',
Language => 'it_IT',
Charset => 'iso8859-15',
},
'ja_JP' => { Country => 'jp',
Language => 'ja_JP',
Charset => 'EUC-JP',
},
'lv_LV' => { Country => 'lv',
Language => 'lv',
Charset => 'iso8859-13',
},
'ko_KR' => { Country => 'kr',
Language => 'ko',
Charset => 'EUC-KR',
},
'nb_NO' => { Country => 'no', # no_NO and nb_NO is the same
Language => 'no',
Charset => 'iso8859-1',
},
# 'nds_DE@euro => { Country => 'de',
# Language => 'nds',
# Charset => 'iso8859-15',
# },
'nl_BE@euro' => { Country => 'be',
Language => 'nl_BE',
Charset => 'iso8859-15',
},
'nl_NL@euro' => { Country => 'nl',
Language => 'nl_NL',
Charset => 'iso8859-15',
},
'nn_NO' => { Country => 'no',
Language => 'no_NY',
Charset => 'iso8859-1',
},
'no_NO' => { Country => 'no',
Language => 'no',
Charset => 'iso8859-1',
},
 
'pl_PL' => { Country => 'pl',
Language => 'pl_PL',
Charset => 'iso8859-2',
},
'pt_BR' => { Country => 'br',
Language => 'pt_BR',
Charset => 'iso8859-1',
},
'se_NO' => { Country => 'no',
Language => 'se',
Charset => 'iso10646-1',
},
# 'sv_SE' => { Country => 'se',
# Language => 'sv',
# Charset => '',
# },
'tr_TR' => { Country => 'tr',
Language => 'tr_TR',
Charset => 'iso8859-9',
},
);
 
if ("supported" eq $lang) {
for $lang (sort keys %lang_map) {
print "$lang\n";
}
exit 0;
}
 
exit unless -e $global && -e $kdmrc;
 
if(defined(my $conf = $lang_map{$lang})) {
my $ini = new Config::IniFiles( -file => $global)
or die "$0: Can't open $global: $!\n";
for my $key (keys %$conf) {
$ini->newval('Locale',
$key,
$conf->{$key});
}
$ini->RewriteConfig or die "$0: Can't save $global: $!\n";
my $kdm = new Config::IniFiles( -file => $kdmrc)
or die "$0: Can't open $kdmrc: $!\n";
$kdm->newval('X-*-Greeter',
'Language',
$conf->{'Language'});
$kdm->RewriteConfig or die "$0: Can't save $kdmrc: $!\n";
} else {
die "$0: No support for language '$lang'\n";
}
Property changes:
Added: svn:executable
+ *
/tags/release_0_39/src/locale-config-skolelinux/conffiles.d/ltsp-xfree86-kbd
New file
0,0 → 1,52
#!/usr/bin/perl
 
use strict;
use warnings;
 
BEGIN {
my @f = split(m%/%, $0); pop @f;
push @INC, join("/", @f);
}
 
# Fetch the %lang_map from xfree86-kbd
require "xfree86-kbd";
 
my %lang_map = get_lang_map();
 
my $debug = 0;
 
my $LTS_CONF = "/opt/ltsp/i386/etc/lts.conf";
 
my $lang = $ARGV[0] or die "No language code given";
 
if ("supported" eq $lang) {
for $lang (sort keys %lang_map) {
print "$lang\n";
}
exit 0;
}
 
if ( ! -f $LTS_CONF ) {
print STDERR "warning: ltsp-xfree86-kbd: Doing nothing, lts.conf is missing.\n" if $debug;
exit 0;
}
 
# Udate lts.conf, replacing "XkbLayout" line.
if(defined(my $conf = $lang_map{$lang})) {
my $layout = $conf->{'LAYOUT'};
open(CFG, "< $LTS_CONF") || die "Unable to read $LTS_CONF";
my @lines = <CFG>;
close(CFG);
chomp @lines;
@lines = map { if (m/^(\s*XkbLayout\s*=\s*)(.+)$/)
{ "$1$layout"; }
else { $_; }
} @lines;
open(CFG, "> $LTS_CONF.new") || die "Unable to write $LTS_CONF.new.";
print CFG join("\n",@lines, "") || die "Unable to write to $LTS_CONF.new.";
close(CFG) || die "Unable to close $LTS_CONF.new.";
rename("$LTS_CONF.new", $LTS_CONF) ||
die "Unable to rename $LTS_CONF.new to $LTS_CONF.";
} else {
die "$0: No support for language '$lang'\n";
}
Property changes:
Added: svn:executable
+ *
/tags/release_0_39/src/locale-config-skolelinux/conffiles.d/xfree86-kbd
New file
0,0 → 1,91
#!/usr/bin/perl
 
use strict;
use warnings;
 
my $debug = 0;
 
sub get_lang_map {
# keyboard layout name
 
# one of: am, az, be, bg, br, ca, cs, de, dk, dvorak, ee, es, fi, fr,
# gb, gr, hu, il, is, it, la, lt, mk, no, pl, pt, ro, ru, se, si, sr,
# th, tr, ua, us, vn
my %lang_map = (
# entries sorted alphabetically
'ca_ES@euro' => { LAYOUT => 'es', XKBOPTIONS => '' },
'da_DK' => { LAYOUT => 'dk', XKBOPTIONS => '' },
'de_BE@euro' => { LAYOUT => 'de', XKBOPTIONS => '' },
'de_DE@euro' => { LAYOUT => 'de', XKBOPTIONS => '' },
'el_GR.UTF-8'=> { LAYOUT => 'el', XKBOPTIONS => 'grp:ctrl_shift_toggle' },
'en_AU' => { LAYOUT => 'us', XKBOPTIONS => '' },
'en_CA' => { LAYOUT => 'us', XKBOPTIONS => '' },
'en_IE@euro' => { LAYOUT => 'us', XKBOPTIONS => '' },
'en_US' => { LAYOUT => 'us', XKBOPTIONS => '' },
'es_AR' => { LAYOUT => 'es', XKBOPTIONS => '' },
'es_ES@euro' => { LAYOUT => 'es', XKBOPTIONS => '' },
'es_MX' => { LAYOUT => 'la', XKBOPTIONS => '' },
'es_PE' => { LAYOUT => 'es_la', XKBOPTIONS => '' },
'fi_FI@euro' => { LAYOUT => 'fi', XKBOPTIONS => '' },
'fr_BE@euro' => { LAYOUT => 'be', XKBOPTIONS => '' },
'fr_CA' => { LAYOUT => 'us', XKBOPTIONS => '' },
'fr_FR@euro' => { LAYOUT => 'fr', XKBOPTIONS => '' },
'it_IT@euro' => { LAYOUT => 'it', XKBOPTIONS => '' },
'ja_JP' => { LAYOUT => 'jp', XKBOPTIONS => '' },
'ko_KR' => { LAYOUT => 'us', XKBOPTIONS => '' },
'lv_LV' => { LAYOUT => 'lv', XKBOPTIONS => '' },
'nb_NO' => { LAYOUT => 'no', XKBOPTIONS => '' }, # Same as no_NO
'nds_DE' => { LAYOUT => 'de', XKBOPTIONS => '' },
'nl_BE@euro' => { LAYOUT => 'be', XKBOPTIONS => '' },
'nl_NL@euro' => { LAYOUT => 'nl', XKBOPTIONS => '' },
'nn_NO' => { LAYOUT => 'no', XKBOPTIONS => '' },
'no_NO' => { LAYOUT => 'no', XKBOPTIONS => '' }, # Same as nb_NO
'pl_PL' => { LAYOUT => 'pl', XKBOPTIONS => '' },
'pt_BR' => { LAYOUT => 'br', XKBOPTIONS => '' },
'se_NO' => { LAYOUT => 'sapmi', XKBOPTIONS => '' },
'sv_SE' => { LAYOUT => 'se', XKBOPTIONS => '' },
'tr_TR' => { LAYOUT => 'tr', XKBOPTIONS => 'grp_led:caps' },
);
return %lang_map;
}
 
if ($0 =~ m%/xfree86-kbd%) {
my $lang = $ARGV[0] or die "No language code given";
 
my %lang_map = get_lang_map();
 
if ("supported" eq $lang) {
for $lang (sort keys %lang_map) {
print "$lang\n";
}
exit 0;
}
 
# Have to evaluate this, and make sure the list is printed above,
# while the debconf setting is done below it to get this working.
# debconf make for ugly side effects.
 
eval "use Debconf::Client::ConfModule ':all';";
 
# STDOUT is redirected at this point.
print STDERR "Got lang $lang\n" if $debug;
 
if(defined(my $conf = $lang_map{$lang})) {
my $layout = $conf->{'LAYOUT'};
my $xkboptions = $conf->{'XKBOPTIONS'};
print "XFree86 layout: $layout\tXkbOptions: $xkboptions\n";
# Just set the debconf value, and leave it to dexconf to write the
# config file. (Or should we call dexconf as well? [pere 2003-09-25])
set("xserver-xfree86/config/inputdevice/keyboard/layout", $layout) or
die "Unable to set debconf value layout";
if ("" ne $xkboptions) {
set("xserver-xfree86/config/inputdevice/keyboard/options", $xkboptions) or
die "Unable to set debconf value options";
}
} else {
die "$0: No support for language '$lang'\n";
}
}
 
1;
Property changes:
Added: svn:executable
+ *
/tags/release_0_39/src/locale-config-skolelinux/conffiles.d/ispell
New file
0,0 → 1,107
#!/usr/bin/perl
 
use warnings;
use strict;
 
my $lang = shift or die "No language code given\n";
 
my %lang_map = (
#entries sorted alphabetically
'ca_ES@euro' => { dict => 'catalan' },
'da_DK' => { dict => 'danish' },
'de_BE@euro' => { dict => 'ngerman' },
'de_DE@euro' => { dict => 'ngerman' },
# 'el_GR.UTF-8'=> { dict => 'unknown' }, # aspell-el, no ispell?
'en_AU' => { dict => 'australian' },
'en_CA' => { dict => 'british' },
'en_IE@euro' => { dict => 'british' },
'en_US' => { dict => 'american' },
'es_AR' => { dict => 'spanish' },
'es_ES@euro' => { dict => 'spanish' },
'es_MX' => { dict => 'spanish' },
'es_PE' => { dict => 'spanish' },
'fi_FI@euro' => { dict => 'finnish-large'},
'fr_BE@euro' => { dict => 'french' },
'fr_CA' => { dict => 'french' },
'fr_FR@euro' => { dict => 'french' },
'it_IT@euro' => { dict => 'italian' },
'ja_JP' => { dict => 'american' },
# Latvian is unknown
# 'lv_LV' => { dict => 'unknown' },
# Korean do not have ispell support
# 'ko_KR' => { dict => 'unknown' },
'nb_NO' => { dict => 'bokmål' },
# 'nds_DE' => { dict => 'unknown' }, # no aspell dictionary
'nl_BE@euro' => { dict => 'dutch' },
'nl_NL@euro' => { dict => 'dutch' },
'no_NO' => { dict => 'bokmål' },
'nn_NO' => { dict => 'nynorsk' },
'pt_BR' => { dict => 'brasileiro'},
'pl_PL' => { dict => 'polish'},
# Northern Saami is not yet available
# 'se_NO' => { dict => 'unknown' },
'sv_SE' => { dict => 'swedish' },
);
 
if ("supported" eq $lang) {
for $lang (sort keys %lang_map) {
print "$lang\n";
}
exit 0;
}
 
if(defined(my $conf = $lang_map{$lang})) {
my $selected = $conf->{dict};
if ( ! -e "/usr/lib/ispell/$selected.hash" ) {
print STDERR "$0: No dictionary for language $selected installed\n";
exit 1;
}
my $current_default = get_default();
if ($selected ne $current_default) {
demote_default($current_default);
make_default($selected);
} else {
print "$current_default is already the default ispell dictionary.\n";
}
} else {
die "$0: No support for language '$lang'\n";
}
# ----------------------------------------------------------------------
 
# Find the current default dictionary, set to None if none found.
 
sub get_default {
my $current_default;
$current_default = `/usr/sbin/update-alternatives --display ispell-dictionary.hash | grep 999 | sed 's+/usr/lib/ispell/++' | sed 's/\.hash//' | awk '{print \$1}'`;
chomp $current_default;
 
if ( ! $current_default ) {
$current_default="None";
}
return $current_default;
}
# ----------------------------------------------------------------------
 
# Promote the selected dictionary to be the default.
 
sub make_default {
my $selected = shift;
print "Making $selected the default ispell dictionary...";
 
system("/usr/sbin/update-alternatives --quiet --install /usr/lib/ispell/default.hash ispell-dictionary.hash /usr/lib/ispell/$selected.hash 999 --slave /usr/lib/ispell/default.aff ispell-dictionary.aff /usr/lib/ispell/$selected.aff > /dev/null");
 
print "done.\n";
}
 
# ----------------------------------------------------------------------
 
# Demote the old default dictionary.
 
sub demote_default {
my $current_default = shift;
print "Demoting $current_default (old default)...";
 
system("/usr/sbin/update-alternatives --quiet --install /usr/lib/ispell/default.hash ispell-dictionary.hash /usr/lib/ispell/$current_default.hash 10 --slave /usr/lib/ispell/default.aff ispell-dictionary.aff /usr/lib/ispell/$current_default.aff > /dev/null");
 
print "done.\n"
}
Property changes:
Added: svn:executable
+ *
/tags/release_0_39/src/locale-config-skolelinux/conffiles.d/timezone
New file
0,0 → 1,145
#!/usr/bin/perl
 
use strict;
use warnings;
 
my $lang = shift or die "No language code given\n";
my ($langcode, $countrycode, $extra) = $lang =~ m/^(..)_(..)(@.+)?/;
 
my $localtime = "/etc/localtime";
my $zonedir = "/usr/share/zoneinfo";
my $zonetabfile = "/usr/share/zoneinfo/zone.tab";
 
my $debug = 0;
 
#
# Look up countrycode (upper case) and return array with relevant time
# zone files.
#
sub lookup_countrycode {
my $countrycode = shift;
 
my @zones = ();
 
open(ZT, "< $zonetabfile") || die "unable to open $zonetabfile";
while (<ZT>) {
chomp;
next if (m/^\#/);
my ($code, $loc, $tz) = m/^(\S+)\t(\S+)\t(\S+)/;
push (@zones, $tz) if ($countrycode eq $code);
}
close(ZT);
return @zones;
}
 
#
# Update the /etc/localtime symlink to point to the requested time
# zone.
#
sub set_timezone {
my $zonename = shift;
my $path = $zonedir . "/" . $zonename;
print "$path\n" if $debug;
if ( ! -e $localtime || $path ne readlink $localtime ) {
# Update symlink
unlink $localtime;
unless (symlink($path, $localtime) ) {
print STDERR "error: Unable to symlink $localtime -> $path\n";
}
} else {
print "Symlink already correct\n" if $debug;
}
}
 
#these are path to time zone files
# We should be able to use '/usr/share/zoneinfo/zone.tab' instead of this
# list.
my %lang_map = (
#entries sorted alphabetically
'ca_ES@euro' => { ZONE => ['Europe/Madrid'] },
'da_DK' => { ZONE => ['Europe/Copenhagen'] },
'de_BE@euro' => { ZONE => ['Europe/Brussels'] },
'de_DE@euro' => { ZONE => ['Europe/Berlin'] },
'el_GR.UTF-8'=> { ZONE => ['Europe/Athens'] },
'pl_PL' => { ZONE => ['Europe/Warsaw'] },
'en_AU' => { ZONE => ['Australia/Sydney',
'Australia/Melbourne',
'Australia/Adelaide',
'Australia/Perth' ] },
'en_CA' => { ZONE => ['America/Montreal'] },
'en_IE@euro' => { ZONE => ['Europe/Dublin'] },
'es_AR' => { ZONE => ['America/Buenos_Aires',
'America/Rosario',
'America/Cordoba',
'America/Jujuy',
'America/Catamarca',
'America/Mendoza'
] },
 
'es_ES@euro' => { ZONE => ['Europe/Madrid'] },
'es_MX' => { ZONE => ['America/Mexico_City',
'America/Cancun',
'America/Merida',
'America/Monterrey',
'America/Mazatlan',
'America/Chihuahua',
'America/Hermosillo',
'America/Tijuana'
] },
'es_PE' => { ZONE => ['America/Lima'] },
'fi_FI@euro' => { ZONE => ['Europe/Helsinki'] },
'fr_BE@euro' => { ZONE => ['Europe/Brussels'] },
'fr_CA' => { ZONE => ['America/Montreal'] },
'fr_FR@euro' => { ZONE => ['Europe/Paris'] },
'it_IT@euro' => { ZONE => ['Europe/Rome'] },
'ja_JP' => { ZONE => ['Asia/Tokyo'] },
'lv_LV' => { ZONE => ['Europe/Riga'] },
'ko_KR' => { ZONE => ['Asia/Seoul'] },
'nb_NO' => { ZONE => ['Europe/Oslo'] }, # Same as no_NO
'nds_DE' => { ZONE => ['Europe/Berlin'] },
'nl_BE@euro' => { ZONE => ['Europe/Brussels'] },
'nl_NL@euro' => { ZONE => ['Europe/Amsterdam'] },
'nn_NO' => { ZONE => ['Europe/Oslo'] },
'no_NO' => { ZONE => ['Europe/Oslo'] }, # Same as nb_NO
'pt_BR' => { ZONE => ['America/Sao_Paulo',
'America/Noronha',
'America/Belem',
'America/Fortaleza',
'America/Recife',
'America/Araguaina',
'America/Maceio',
'America/Cuiaba',
'America/Porto_Velho',
'America/Boa_Vista',
'America/Manaus',
'America/Eirunepe',
'America/Rio_Branco'
] },
'se_NO' => { ZONE => ['Europe/Oslo'] },
'sv_SE' => { ZONE => ['Europe/Stockholm'] },
'tr_TR' => { ZONE => ['Europe/Istanbul'] },
);
 
if ("supported" eq $lang) {
for $lang (sort keys %lang_map) {
print "$lang\n";
}
exit 0;
}
 
my @zones = lookup_countrycode($countrycode);
print join("\n", @zones),"\n" if $debug;
if (1 < @zones) {
# Hm, more then one zone available, should present a list using
# debconf. For now, just select the first one.
set_timezone($zones[0]);
} elsif (1 == @zones) {
set_timezone($zones[0]);
} else { # Fall back to the included list of zones.
if(defined(my $conf = $lang_map{$lang})) {
my @zones = @{$conf->{'ZONE'}};
set_timezone($zones[0]);
} else {
die "$0: No support for language '$lang'\n";
}
}
Property changes:
Added: svn:executable
+ *
/tags/release_0_39/src/locale-config-skolelinux/Makefile
New file
0,0 → 1,47
#! /usr/bin/make -f
#
# Makefile for locale-config-skolelinux
 
version=0.34
package=locale-config-skolelinux
 
SCRIPT = update-locale-config
MANPAGES = update-locale-config
BINPATH = /usr/sbin
LIBPATH = /usr/lib/locale-config-skolelinux
CONFSCRIPTS = $(filter-out %/CVS, $(wildcard conffiles.d/*))
 
all:
 
install:
install -m 755 $(SCRIPT) $(DESTDIR)$(BINPATH)
install -m 755 -d $(DESTDIR)$(LIBPATH)
install -m 755 $(CONFSCRIPTS) $(DESTDIR)$(LIBPATH)
for i in $(MANPAGES) ; do \
install -m 644 $$i.1 $(DESTDIR)/usr/share/man/man1/$$i.1 ; \
done
 
uninstall:
rm -f $(DESTDIR)$(BINPATH)/$(SCRIPT)
for i in $(MANPAGES) ; do \
rm -f $(DESTDIR)/usr/share/man/man1/$$i.1 ; \
done
rm -rf $(DESTDIR)$(LIBPATH)
 
dist: distclean
rm -rf $(package)-$(version)
rm -f $(package)-$(version).tar $(package)-$(version).tar.gz
mkdir $(package)-$(version)
rsync --exclude CVS --exclude $(package)-$(version) -av . \
$(package)-$(version)
tar cf $(package)-$(version).tar $(package)-$(version)
gzip -9 $(package)-$(version).tar ; \
rm -rf $(package)-$(version)
 
distclean: clean
-debian/rules clean
 
clean:
find -name '*~' | xargs rm -f
find -name '.#*' | xargs rm -f
 
/tags/release_0_39/src/locale-config-skolelinux/.no_dch_fix
--- release_0_39/src/locale-config-skolelinux/update-locale-config.1 (revision 0)
+++ release_0_39/src/locale-config-skolelinux/update-locale-config.1 (revision 35810)
@@ -0,0 +1,90 @@
+.TH "UPDATE-LOCALE-CONFIG" "1" "2003-09-30" "update-locale-config" "Skolelinux User's Manual"
+.SH "NAME"
+update\-locale\-config \- Update differnt programs' language settings
+.SH "SYNOPSIS"
+.B update\-locale\-config
+[\fI\-l\fR]
+.\"[\fI\-vl\fR]
+\<\fIlanguage\fR\>
+
+.\" ********************************************************************
+.SH "DESCRIPTION"
+.B update\-locale\-config
+updates the language settings of different programs.
+.\" ********************************************************************
+.SH "OPTIONS"
+.TP
+.I language
+specify your favorite native language. Here are the supported languages:
+.br
+.B ca_ES@euro
+Catalan (Spain)
+.br
+.B da_DK
+Danish
+.br
+.B de_BE@euro
+German (Belgium)
+.br
+.B de_DE@euro
+German (Germany)
+.br
+.B pl_PL
+Polish (Poland)
+.br
+.B es_ES@euro
+Spanish (Spain)
+.br
+.B es_MX
+Spanish (Mexico)
+.br
+.B fr_BE@euro
+French (Belgium)
+.br
+.B fr_FR@euro
+French (France)
+.br
+.B lv_LV
+Latvian
+.br
+.B nb_NO or no_NO (depricated)
+Norwegian Bokmål
+.br
+.B nds_DE
+Low Saxon
+.br
+.B nl_BE@euro
+Dutch (Belgium)
+.br
+.B nl_NL@euro
+Dutch (The Netherlands)
+.br
+.B nn_NO
+Norwegian Nynorsk
+.br
+.B se_NO
+Northern Sami
+.br
+.B tr_TR
+Turkish (Turkey)
+.br
+.\".TP
+.\".B \-v
+.\"Verbose mode, mainly for debugging.
+.B \-l
+List supported locales.
+.\" ********************************************************************
+.SH "ADDING NEW LANGUAGES"
+Edit the scripts in /usr/lib/locale\-config\-skolelinux/ and add
+whatever transformations are necessary to convert from the official
+language code to the one the program expects
+.SH "ADDING SUPPORT FOR NEW PROGRAMS"
+Add a scripts to /usr/lib/locale\-config\-skolelinux/ that edit the
+necessary conffiles.
+.BR
+.SH "FILES"
+.TP
+.I "/usr/lib/locale\-config\-skolelinux/*"
+Scripts that modify config files
+.SH "AUTHOR"
+Dagfinn Ilmari Mannsåker <ilmari@ping.uio.no>
/tags/release_0_39/src/locale-config-skolelinux/debian/.cvsignore
New file
0,0 → 1,2
files
tmp
/tags/release_0_39/src/locale-config-skolelinux/debian/control
New file
0,0 → 1,12
Source: locale-config-skolelinux
Section: admin
Priority: optional
Maintainer: Dagfinn Ilmari Mannsåker <ilmari@ping.uio.no>
Standards-Version: 3.5.6
 
Package: locale-config-skolelinux
Architecture: all
Depends: perl, libconfig-inifiles-perl, locales, xlibs (>= 4.2.0) | xlibs-se
Description: Configures different programs' langauge settings
Updates config files of different programs so they use the right
language by default. This is used by base-config-skolelinux.
/tags/release_0_39/src/locale-config-skolelinux/debian/dirs
New file
0,0 → 1,2
usr/sbin
usr/share/man/man1
/tags/release_0_39/src/locale-config-skolelinux/debian/postinst
New file
0,0 → 1,7
#!/bin/sh
 
if [ "$1" = "configure" ]; then
if [ -d /usr/doc -a ! -e /usr/doc/locale-config-skolelinux -a -d /usr/share/doc/locale-config-skolelinux ]; then
ln -sf ../share/doc/locale-config-skolelinux /usr/doc/locale-config-skolelinux
fi
fi
/tags/release_0_39/src/locale-config-skolelinux/debian/prerm
New file
0,0 → 1,5
#!/bin/sh
 
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/locale-config-skolelinux ]; then
rm -f /usr/doc/locale-config-skolelinux
fi
/tags/release_0_39/src/locale-config-skolelinux/debian/changelog
New file
0,0 → 1,299
locale-config-skolelinux (0.39) woody; urgency=low
 
* Remove debug code enabled by mistake in last upload.
 
-- Petter Reinholdtsen <pere@debian.org> Sat, 7 Aug 2004 18:16:57 +0200
 
locale-config-skolelinux (0.38) woody; urgency=low
 
* Petter Reinholdtsen
- Add support for Turkish (tr_TR). Patch from
Recai Oktas. (Fixes Skolelinux bug #810)
 
-- Petter Reinholdtsen <pere@debian.org> Sat, 7 Aug 2004 18:06:04 +0200
 
locale-config-skolelinux (0.37) unstable; urgency=low
 
* Klaus Ade Johnstad
- Added Polish (pl_PL).
 
-- Finn-Arne Johansen <faj@bzz.no> Tue, 3 Aug 2004 18:03:09 +0200
 
locale-config-skolelinux (0.36) unstable; urgency=low
 
* Petter Reinholdtsen
- Add Peruan (es_PE), based on info from Rudy Godoy.
- Re-enable X keyboard layout setting, which was disabled by
Konstantinos Margaritis by mistake. (Fixes skolelinux bug #776)
 
-- Petter Reinholdtsen <pere@debian.org> Wed, 9 Jun 2004 17:24:51 +0200
 
locale-config-skolelinux (0.35) woody; urgency=low
 
* Petter Reinholdtsen
- Add Japanese (ja_JP), based on info from Junichi Uekawa and
Masanori Goto.
- Add Korean (ko_KR), based on info from Changwoo Ryu.
- Add Argentian (es_AR) based on info from Rob Taylor.
- Add Canadian (en_CA,fr_CA) based on info from Jeff Bailey.
- Use the same keyboard layout file for LTSP and XFree86.
- Add English Irish (en_IR@euro) based on info from Colin Watson.
- Add Australian (en_AU) based on info from Pia Smith.
- Add en_US support.
- Improve some test code.
* Konstantinos Margaritis
- Add XkbOptions in xfree86-xkb. It should be possible to have
support for automatic keyboard switching in X now. By
default only Greek language uses this.
 
-- Petter Reinholdtsen <pere@debian.org> Wed, 2 Jun 2004 15:28:59 -0300
 
locale-config-skolelinux (0.34) woody; urgency=low
 
* Fixed typo introduced when adding nds_DE locale. This should
get the package working again.
 
-- Petter Reinholdtsen <pere@debian.org> Thu, 15 Apr 2004 14:40:19 +0200
 
locale-config-skolelinux (0.33) woody; urgency=low
 
* Correct kde2 settings for German. Language should be 'de',
not 'de_DE'. (Skolelinux bug #692)
 
-- Petter Reinholdtsen <pere@debian.org> Wed, 14 Apr 2004 18:32:37 +0200
 
locale-config-skolelinux (0.32) woody; urgency=low
 
* NEVER UPLOADED.
* Guillem Jover
- Fix xfree86 keyword layouts for catalan. Was using canadian, not spanish.
* Bart Cornelis
- Updated Dutch part in ktouch.
- Added Low Saxon (nds).
 
-- Guillem Jover <guillem@debian.org> Thu, 8 Apr 2004 12:59:24 +0200
 
locale-config-skolelinux (0.31) woody; urgency=low
 
* Fix typo in greek support for links.
 
-- Petter Reinholdtsen <pere@debian.org> Wed, 25 Feb 2004 10:11:20 +0200
 
locale-config-skolelinux (0.30) woody; urgency=low
 
* Corrected the Greek locale setting, and added Greek support
for links. Patch from Konstantinos Margaritis.
 
-- Petter Reinholdtsen <pere@debian.org> Wed, 25 Feb 2004 10:03:02 +0200
 
locale-config-skolelinux (0.29) woody; urgency=low
 
* Disable autobuilding of locale-config-skolelinux.
* Add support for ktouch, changing the displayed keyboard layout.
* Add Greek (el_GR.UTF-8) support for kde2, locale, ltsp-xfree86-kbd
and xfree86-kbd. Thanks to Konstantinos Margaritis.
* Add debug option (-d) to update-locale-config.
* Correct the script setting timezones, to actually handle several
timezones per locale.
 
-- Petter Reinholdtsen <pere@debian.org> Tue, 24 Feb 2004 08:48:55 +0100
 
locale-config-skolelinux (0.28) woody; urgency=low
 
* Bart Cornelis
- Fill in Finnish values with the ones that Otto Keklinen listed
for Finnish on the kde-debian mailinglist
- Added missing entry for sv in kde2.
- Added guessed default values where missing (still commented
out), mail has been send to the list to confirm these
* Petter Reinholdtsen
- Rewrite from using libconfig-ini-perl to using
libconfig-inifiles-perl, to get a dependency which exist both in
Woody and Sarge. (Skolelinux bug #605)
 
-- Petter Reinholdtsen <pere@debian.org> Wed, 28 Jan 2004 23:47:29 +0100
 
locale-config-skolelinux (0.27) unstable; urgency=low
 
* Correct NL_NL@euro typo in the 'links' file. It now reads
nl_NL@euro.
 
-- Petter Reinholdtsen <pere@hungry.com> Wed, 26 Nov 2003 00:06:27 +0100
 
locale-config-skolelinux (0.26) unstable; urgency=low
 
* Petter Reinholdtsen
- Updated AUTHORS file.
- Use the info on /usr/share/zoneinfo/zone.tab to extract time
zones.
* Bart Cornelis
- Update locale lists.
* Frederico Goncalves Guimaraes
- Add support for pt_BR.
 
-- Petter Reinholdtsen <pere@hungry.com> Tue, 25 Nov 2003 23:44:45 +0100
 
locale-config-skolelinux (0.25) unstable; urgency=low
 
* Add support for LTSP client keyboard layout, based on xfree86-kbd.
 
-- Petter Reinholdtsen <pere@hungry.com> Sat, 8 Nov 2003 16:03:29 +0100
 
locale-config-skolelinux (0.24) unstable; urgency=low
 
* Add support for links. Patch from Emanuele Rocca.
 
-- Petter Reinholdtsen <pere@hungry.com> Fri, 31 Oct 2003 20:28:03 +0100
 
locale-config-skolelinux (0.23) unstable; urgency=low
 
* Add support for es_MX. Patch from Gunnar Wolf.
 
-- Petter Reinholdtsen <pere@hungry.com> Thu, 30 Oct 2003 08:58:48 +0100
 
locale-config-skolelinux (0.22) unstable; urgency=low
 
* Get conffiles.d/xfree86-kbd to list supported locales as it should.
 
-- Petter Reinholdtsen <pere@hungry.com> Wed, 29 Oct 2003 20:54:42 +0100
 
locale-config-skolelinux (0.21) unstable; urgency=low
 
* Clean up timezone list.
* Add XFree86 keyboard layout debconf preloading.
 
-- Petter Reinholdtsen <pere@hungry.com> Fri, 26 Sep 2003 00:21:46 +0200
 
locale-config-skolelinux (0.20) unstable; urgency=low
 
* Add support for updating /etc/localtime.
 
-- Petter Reinholdtsen <pere@hungry.com> Wed, 24 Sep 2003 22:34:47 +0200
 
locale-config-skolelinux (0.19) unstable; urgency=low
 
* Add ispell support for swedish.
 
-- Petter Reinholdtsen <pere@hungry.com> Wed, 27 Aug 2003 11:28:08 +0200
 
locale-config-skolelinux (0.18) unstable; urgency=low
 
* Correct a few typos with it_IT and pt_BR locale in kde2.
 
-- Petter Reinholdtsen <pere@hungry.com> Wed, 27 Aug 2003 11:14:38 +0200
 
locale-config-skolelinux (0.17) unstable; urgency=low
 
* Add italian support (missing opera6), thanks to Marco Ghirlanda.
 
-- Petter Reinholdtsen <pere@hungry.com> Tue, 26 Aug 2003 20:47:04 +0200
 
locale-config-skolelinux (0.16) unstable; urgency=low
 
* Add support for Finnish and Swedish locales.
 
-- Petter Reinholdtsen <pere@hungry.com> Sun, 17 Aug 2003 23:52:27 +0200
 
locale-config-skolelinux (0.15) unstable; urgency=low
 
* Rewrite ispell script to perl to ease listing the supported locales.
* Make it possible to list the supported locales.
 
-- Petter Reinholdtsen <pere@hungry.com> Sun, 17 Aug 2003 21:55:13 +0200
 
locale-config-skolelinux (0.14) unstable; urgency=low
 
* Sort the list of locales in the manual page.
 
-- Petter Reinholdtsen <pere@hungry.com> Fri, 18 Apr 2003 19:57:27 +0200
 
locale-config-skolelinux (0.13) unstable; urgency=low
 
* Add support for danish.
 
-- Jonas Smedegaard <dr@jones.dk> Thu, 17 Apr 2003 12:52:09 +0200
 
locale-config-skolelinux (0.12) unstable; urgency=low
 
* Add support for dutch (nl_NL and nl_BE).
 
-- Petter Reinholdtsen <pere@hungry.com> Thu, 17 Apr 2003 12:35:24 +0200
 
locale-config-skolelinux (0.11) unstable; urgency=low
 
* Depend on locales, to be able to generate the required locale.
* Depend on xlibs >= 4.2 or xlibs-se for nothern saami keyboard in X.
 
-- Petter Reinholdtsen <pere@hungry.com> Tue, 8 Apr 2003 00:16:13 +0200
 
locale-config-skolelinux (0.10) unstable; urgency=low
 
* Make depricated locale code no_NO an alias for nb_NO.
 
-- Petter Reinholdtsen <pere@hungry.com> Sun, 16 Mar 2003 09:53:30 +0100
 
locale-config-skolelinux (0.9) unstable; urgency=low
 
* The "Standards are great, everyone should have their own" release.
* Fixed LANGUAGE to cover all variations of the Norwegian languages.
 
-- Dagfinn Ilmari Mannsåker <ilmari@ping.uio.no> Tue, 3 Dec 2002 11:56:33 +0100
 
locale-config-skolelinux (0.8) unstable; urgency=low
 
* Initial support for Latvian (by Aigars Mahinovs <aigarius@debian.org>).
 
-- Dagfinn Ilmari Mannsåker <ilmari@ping.uio.no> Mon, 25 Nov 2002 00:57:15 +0100
 
locale-config-skolelinux (0.7) unstable; urgency=low
 
* Add support for locale setting. It will update /etc/locale.gen and
/etc/environment.
 
-- Petter Reinholdtsen <pere@hungry.com> Fri, 8 Nov 2002 21:18:13 +0100
 
locale-config-skolelinux (0.6) unstable; urgency=low
 
* Set kde2 charset for all languages (required to support iso10646-1 for
se_NO, originally by Petter Reinholdtsen).
* Correct a few typos.
* Document the use of full locale codes, not just language codes.
 
-- Dagfinn Ilmari Mannsåker <ilmari@ping.uio.no> Sun, 3 Nov 2002 01:24:35 +0100
 
locale-config-skolelinux (0.5) unstable; urgency=low
 
* Set language for KDM.
 
-- Dagfinn Ilmari Mannsåker <ilmari@ping.uio.no> Mon, 14 Oct 2002 18:52:22 +0200
 
locale-config-skolelinux (0.4) unstable; urgency=low
 
* Refuse to run as non-root.
* Make the ispell support set the dictionary in the same
manner as update-ispell-dictionary.
* No longer depends on base-config-skolelinux.
 
-- Dagfinn Ilmari Mannsåker <ilmari@ping.uio.no> Thu, 29 Aug 2002 03:24:32 +0200
 
locale-config-skolelinux (0.3) unstable; urgency=low
 
* Add ispell dictionary support.
* Depends: base-config-skolelinux (needed by the above).
* Make the scripts return error on unsupported languages.
 
-- Dagfinn Ilmari Mannsåker <ilmari@ping.uio.no> Wed, 21 Aug 2002 22:24:41 +0200
 
locale-config-skolelinux (0.2) unstable; urgency=low
 
* debian/{postinst,prerm}: Added /usr/doc symlink handling.
* debian/control: Added Standards-Version field.
 
-- Dagfinn Ilmari Mannsåker <ilmari@ping.uio.no> Sun, 18 Aug 2002 01:52:01 +0200
 
locale-config-skolelinux (0.1) unstable; urgency=low
 
* Initial release.
 
-- Dagfinn Ilmari Mannsåker <ilmari@ping.uio.no> Sat, 17 Aug 2002 22:11:27 +0200
 
/tags/release_0_39/src/locale-config-skolelinux/debian/copyright
New file
0,0 → 1,16
Copyright (C) 2002 Dagfinn I. Mannsåker <ilmari@ping.uio.no>
 
This is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later
version.
 
This is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
 
You should have received a copy of the GNU General Public License with
your Debian GNU/Linux system, in /usr/share/common-licenses/GPL. If
not, write to the Free Software Foundation, Inc., 59 Temple Place -
Suite 330, Boston, MA 02111-1307, USA.
/tags/release_0_39/src/locale-config-skolelinux/debian/rules
New file
0,0 → 1,49
#!/usr/bin/make -f
# Based on the debian/rules from cfengine-skolelinux
# (for the lack of another example)
 
package=locale-config-skolelinux
doc_inst=debian/tmp/usr/share/doc/$(package)
 
build:
$(checkdir)
$(MAKE) CFLAGS="-O2 -g Wall"
 
clean:
$(checkdir)
-$(MAKE) clean
-rm -f `find . -name "*~"`
-rm -rf debian/tmp debian/substvars debian/files
 
binary-indep: checkroot build
$(checkdir)
-rm -rf debian/tmp
install -d debian/tmp
install -d debian/tmp/DEBIAN
cd debian/tmp && install -d `cat ../dirs`
$(MAKE) install DESTDIR=`pwd`/debian/tmp
for i in `find debian/tmp/usr/share/man -type f`; do \
gzip -9 $$i; \
done
install -d $(doc_inst)
install -m 644 debian/copyright $(doc_inst)
install -m 644 debian/changelog $(doc_inst)
gzip -9 $(doc_inst)/changelog
install -m 755 debian/postinst debian/prerm debian/tmp/DEBIAN
dpkg-gencontrol -isp
dpkg --build debian/tmp ..
 
binary-arch:
# Nothing to do
 
define checkdir
test -f debian/rules
endef
 
binary: binary-indep binary-arch
 
checkroot:
$(checkdir)
test root = "`whoami`"
 
.PHONY: binary binary-arch binary-indep clean checkroot build
Property changes:
Added: svn:executable
+ *
/release_0_39/src/locale-config-skolelinux/debian
Property changes:
Added: svn:ignore
+ files
tmp
/tags/release_0_39/src/locale-config-skolelinux/update-locale-config
New file
0,0 → 1,57
#!/usr/bin/perl -l
use warnings;
use strict;
use Getopt::Std;
 
use vars qw($LIB @scripts %opts $lang $debug);
 
$LIB = '/usr/lib/locale-config-skolelinux';
 
@scripts = grep { $_ if -f $_ } glob "$LIB/*";
 
getopts("dl", \%opts);
 
if ($opts{'l'}) {
list_supported();
exit 0;
}
 
$lang = shift;
 
debug("Got langcode '$lang'\n");
 
die "Usage: $0 <language>\n" unless $lang;
die "$0: You must be root\n" if $>;
 
for my $script (@scripts) {
debug("Running '$script $lang'\n");
system ($script, $lang) if -x $script;
}
 
sub debug {
print @_ if $opts{'d'};
}
 
sub list_supported {
my %locales;
my %scriptsupport;
for my $script (@scripts) {
if (-x $script) {
my @lines = `$script supported`;
chomp(@lines);
for my $locale (@lines) {
$locales{$locale} = 1;
$scriptsupport{"$script:$locale"} = 1;
}
}
}
print "Supported locales:";
for my $locale (sort keys %locales) {
print " $locale";
for my $script (sort @scripts) {
if ( ! exists $scriptsupport{"$script:$locale"}) {
print " Missing in $script";
}
}
}
}
Property changes:
Added: svn:executable
+ *
/tags/release_0_39/src/locale-config-skolelinux/AUTHORS
New file
0,0 → 1,26
Design and framework
 
Dagfinn Ilmari Mannsåker
 
Current maintainer
 
Petter Reinholdtsen
 
Links support
 
Emanuele Rocca
 
LTSP keyboard layout support
 
Petter Reinholdtsen
 
Languages:
 
es_MX: Gunnar Wolf
no_NO/nb_NO/nn_NO: Petter Reinholdtsen
 
Addresses:
 
Dagfinn Ilmari Mannsåker <ilmari@ping.uio.no>
Emanuele Rocca <emarocca@libero.it>
Petter Reinholdtsen <pere@hungry.com>
/release_0_39/src
Property changes:
Added: svn:ignore
+ ChangeLog.bak
*.deb
*.changes
*.dsc
*.tar.gz
baselist.txt
build-check.txt
/release_0_39
Property changes:
Added: svn:ignore
+ ChangeLog.bak