~ubuntu-branches/ubuntu/oneiric/localization-config/oneiric

« back to all changes in this revision

Viewing changes to conffiles.d/woody/opera

  • 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:
5
5
use warnings;
6
6
use Config::IniFiles;
7
7
 
 
8
require '/usr/lib/localization-config/common/log.pl';
 
9
 
8
10
# If no locale is given as argument, quit
9
 
my $lang = shift or die "No language code given\n";
 
11
my $lang = shift or log_die("$0: No language code given");
10
12
 
11
13
my $file = '/etc/opera6rc';
12
14
 
103
105
# helper subroutines...
104
106
if(defined(my $conf = $lang_map{$lang})) {
105
107
    my $ini = new Config::IniFiles( -file => $file )
106
 
        or die "$0: Can't open $file: $!\n";
 
108
        or log_die("$0: Can't open $file: $!");
107
109
 
108
110
    $ini->newval('User Prefs',
109
111
                 'Language Files Directory',
115
117
                 'HTTP Accept Language',
116
118
                 $conf->{accept});
117
119
    $ini->RewriteConfig
118
 
        or die "$0: Can't save $file: $!\n";
 
120
        or log_die("$0: Can't save $file: $!");
119
121
} else {
120
 
    die "$0: No support for language '$lang'\n";
 
122
    log_msg("$0: No support for language $lang");
121
123
}