Commit 4e0bdbf2 authored by wurblzap%gmail.com's avatar wurblzap%gmail.com

Bug 419388 – 004template.t should fall back to “en”.

Patch by Vitaly Fedrushkov <vitaly.fedrushkov@gmail.com>; r=Wurblzap, a=LpSolit
parent b99dca01
...@@ -69,12 +69,12 @@ sub existOnce { ...@@ -69,12 +69,12 @@ sub existOnce {
foreach my $lang (@languages) { foreach my $lang (@languages) {
foreach my $file (@referenced_files) { foreach my $file (@referenced_files) {
my @path = map(File::Spec->catfile($_, $file), my @path = map(File::Spec->catfile($_, $file),
split(':', $include_path{$lang})); split(':', $include_path{$lang} . ":" . $include_path{"en"}));
if (my $path = existOnce(@path)) { if (my $path = existOnce(@path)) {
ok(1, "$path exists"); ok(1, "$path exists");
} else { } else {
ok(0, "$file cannot be located --ERROR"); ok(0, "$file cannot be located --ERROR");
print $fh "Looked in:\n " . join("\n ", @path); print $fh "Looked in:\n " . join("\n ", @path) . "\n";
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment