* Exclude fuzzy translations from .po files.

master
Colin Watson 18 years ago
parent c39f5a6359
commit 7cd5487443

6
debian/changelog vendored

@ -1,3 +1,9 @@
gfxboot-theme-ubuntu (0.2.7) UNRELEASED; urgency=low
* Exclude fuzzy translations from .po files.
-- Colin Watson <cjwatson@ubuntu.com> Thu, 5 Oct 2006 18:04:48 +0100
gfxboot-theme-ubuntu (0.2.6) edgy; urgency=low
* Always map the PC105 less than / greater than key, since the BIOS keymap

@ -26,7 +26,7 @@ sub read_texts
{
local $_;
my ($lang, @f, $txt, $context, $t, $p, $ids, $file);
my ($lang, @f, $txt, $context, $fuzzy, $t, $p, $ids, $file);
$lang = shift;
@ -49,7 +49,7 @@ sub read_texts
for (@f) {
if(/^\s*#\.\s*(txt_\S+)/) {
if($txt) {
@msgstr = @msgid if $ids || join_msg(\@msgstr) eq "";
@msgstr = @msgid if $ids || $fuzzy || join_msg(\@msgstr) eq "";
$txts{$txt} = join_msg(\@msgstr);
}
@ -58,6 +58,12 @@ sub read_texts
undef @msgid;
undef @msgstr;
undef $context;
undef $fuzzy;
next;
}
if(/^\s*#,\s*fuzzy/) {
$fuzzy = 1;
next;
}
@ -89,7 +95,7 @@ sub read_texts
}
if($txt) {
@msgstr = @msgid if $ids || join_msg(\@msgstr) eq "";
@msgstr = @msgid if $ids || $fuzzy || join_msg(\@msgstr) eq "";
$txts{$txt} = join_msg(\@msgstr);
}

Loading…
Cancel
Save