view gaim2blt.pl @ 7540:60a3721eed2a

[gaim-migrate @ 8153] (10:45:30) seanegn: you shouldn't have removed the _()'s from log.c (10:45:46) lschiere2: okay, i can put them back easy enough (10:47:21) seanegn: and, in fact, it should be translated in gtkconv.c. I just didn't because I felt bad enough breaking the string freeze there in new code. I didn't want to touch old code. (10:47:56) lschiere2: so the _() theoretically should be in gtkconv.c not log.c? (10:48:20) seanegn: It should be in both. Both include the <AUTO-REPLY> string. (10:48:32) lschiere2: ah (10:48:54) seanegn: it's a #define in gtkconv.c, though. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 17 Nov 2003 15:50:10 +0000
parents 66bf7ecefedd
children
line wrap: on
line source

#!/usr/bin/perl -w
# Original by Andy Harrison,
# Rewrite by Decklin Foster,
# Available under the GPL.

package Gaim2Blt;
use strict;
use Getopt::Std;
use vars qw(%opts $in_group);

getopts('s:', \%opts);
die "usage: $0 -s 'screen name' gaim.buddy\n" unless $opts{s};

print <<"EOF";
Config {
  version 1
}
User {
  screenname "$opts{s}"
}
Buddy {
  list {
EOF

while (<>) {
    chomp;
    my ($type, $args) = split ' ', $_, 2;
    next unless $type;

    if ($type eq 'g') {
        print "    }\n" if ($in_group);
        print qq(    "$args" {\n);
        $in_group = 1;
    } elsif ($type eq 'b') {
        my ($buddy, $alias) = split /:/, $args;
        print qq(      "$buddy"\n);
    }
}

print <<"EOF";
    }
  }
}
EOF