mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 11:21:39 +00:00
check if the po/ folder does really exist...
(if it does not exist, the rest does not have to be done either)
This commit is contained in:
parent
01274b8d41
commit
f5034ccfa3
@ -50,6 +50,8 @@ function grab_stats ($tob, $official, $packs) // trunk or branch, official (1) o
|
||||
$po_dir = $basedir . "/" . $package . "/po/";
|
||||
$domain = getdomain($package);
|
||||
}
|
||||
if (file_exists($po_dir)) // it can happen that the translation is broken in wescamp, this only happens when there is no po/ folder
|
||||
{
|
||||
$languages = file_get_contents($po_dir . "/LINGUAS");
|
||||
$languages = substr($languages, 0, strlen($languages)-1);
|
||||
$langs = explode(" ", $languages);
|
||||
@ -71,6 +73,7 @@ function grab_stats ($tob, $official, $packs) // trunk or branch, official (1) o
|
||||
fwrite($file, $serialized);
|
||||
fclose($file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo "<h1>Getting stats for trunk</h1>\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user