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

Bug#448485: tex-common: [INTL:eu] Basque translation of the debconf templates



Quoting Piarres Beobide (pi@beobide.net):
> Package: tex-common
> Severity: wishlist
> Tags: patch l10n
> 
> 
> Hi 
> 
> 
> Attached tex-common debconf templates basque translation, please commit it.


There's an error in variable matching in the following string:

#. Description
#: ../templates:2001
msgid "No setting of ${variable}."
msgstr " ${variable) ez dago ezarririk."

Note the closing parenthese instead of a closing bracket.

I corrected this in the attached file. No need for further action.

You might want to use the attached check_var.pl script...




Attachment: eu.po
Description: application/gettext

#! /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: