Originally Posted by votan
What about passing the manifest file to get the list of Lua files?
This way wrong paths can be found quicker.
And an extra loop filling $(language) with all (unoffical) supported languages to find syntax errors in language files one normally does not use. (Already happend)
|
I didn't even think about parsing add-on manifest. The script just checks all .lua files it finds, there's no ESO specific logic (except stripping UTF-8 BOM). That's how I once found a broken string in french translation, which I don't understand
As for finding missing/misspelled files, here you go:
bash Code:
find -name '*.txt' -exec perl -ne '
chomp;
next unless /^\w/;
for $lang (qw( en de fr ru es pt )) {
$fn = $_;
$rep = ($fn =~ s/\$\(language\)/$lang/);
print "missing $fn\n" unless -f $fn;
last unless $rep;
}
' '{}' +