view gaim2blt.pl @ 4596:7e1591c6d0d8

[gaim-migrate @ 4881] Bjoern Voigt writes: "The patch --------- Some small i18n fixes - some new files in po/POTFILES.in (I hope, there are now all files, with gettext-strings) - a translation for the "boring default" away message (not hardcoded any more) - translations for the Menu Bar during conversations After looking in gconf-editor, I saw, that the static items should be marked with N_(...) = gettext_noop. The strings can now be translated, but unfortunately I still can see them. - Yahoo away messages translation German translation ------------------ 2 strings are untranslated: #: src/gaim-disclosure.c:253 msgid "Expander Size" msgstr "" #: src/gaim-disclosure.c:254 msgid "Size of the expander arrow" msgstr "" File transfer doen't work on my box and so I cannot test the function." committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 21 Feb 2003 04:33:56 +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