[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#521224: console-setup: [INTL:pt] Updated Portuguese translation for debconf messages



Quoting Miguel Figueiredo (elmig@debianpt.org):


> #. Type: boolean
> #. Description
> #: ../console-setup.templates:10001
> msgid ""
> "The default value for the options of the keyboard layout is based on the "
> "currently defined language/region and the settings in /etc/X11/xorg.conf. "
> "This default value is ${XKBOPTIONS}, which is not supported by the "
> "configuration program."
> msgstr ""
> "O valor padrão para as opções da disposição do teclado é baseado na "
> "definição actual de idioma/região e opções no /etc/X11/xorg.conf. Este valor "
> "padrão é ${XKBLAYOUT}, que não é suportado pelo programa de configuração."

spotted the variable mismatch? :-)

The attached little program might help you spotting such problems.

I'll fix that in the committed file.

#! /usr/bin/perl

sub getVars
{
        my $text = shift;
        my $var = '';
        while ($text =~ m/\G.*?(\$\{[^{}]+\})/g) {
                $var .= $1;
        }
        return $var;
}

$/ = "\n\n";
open (PO, "< $ARGV[0]") or die "Unable to open $ARGV[0]: $!\n";
while (<PO>)
{
        s/"\n"//g;
        (my $msgid) = m/^msgid "(.*)"$/m;
        (my $msgstr) = m/^msgstr "(.*)"$/m;
        next if $msgstr eq '' || m/^#, .*fuzzy/m;
        my $var1 = getVars($msgid);
        my $var2 = getVars($msgstr);
        print if $var1 ne $var2;
}
close (PO);

Attachment: signature.asc
Description: Digital signature


Reply to: