~ubuntu-branches/ubuntu/jaunty/localization-config/jaunty

« back to all changes in this revision

Viewing changes to conffiles.d/woody/locale

  • Committer: Bazaar Package Importer
  • Author(s): Konstantinos Margaritis
  • Date: 2005-05-23 00:36:51 UTC
  • Revision ID: james.westby@ubuntu.com-20050523003651-2xfe4l262j5ij3xa
Tags: 0.116
* Translatios
  - Bulgarian added. Closes: #308129
  - Updated Greek and Vietnamese. Closes: #309055
  - Fixed templates file that included extra test messages for session
  chooser
* Closes forgotten bugs. Closes: #306084, #306052.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
# We use some helper subroutines so we have to include
9
9
# their definitions
10
10
require '/usr/lib/localization-config/common/editconfig.pl';
 
11
require '/usr/lib/localization-config/common/log.pl';
11
12
 
12
13
# If no locale is given as argument, quit
13
 
my $lang = $ARGV[0] or die "No language given";
 
14
my $lang = $ARGV[0] or log_die("$0: No language given");
14
15
 
15
16
# The configuration files
16
17
my $localegen   = "/etc/locale.gen";
17
18
my $environment = "/etc/environment";
18
19
 
19
 
my $debug = 0;
20
 
 
21
20
#these are glibc settings -> see /usr/share/i18n/SUPPORTED
22
21
my %lang_map = (
23
22
        #entries sorted alphabetically
167
166
    }
168
167
 
169
168
    for my $variable ("LANG", "LANGUAGE") {
170
 
        UpdateOrAppendVariable($environment, $variable, $conf->{$variable});
 
169
        UpdateOrAppendVariable($environment, $variable, $conf->{$variable}, "=");
171
170
    }
172
171
 
173
172
} else {
174
 
    die "$0: No support for language '$lang'\n";
 
173
    log_msg("$0: No support for language $lang");
175
174
}