Create POT with trophy info.

This commit is contained in:
Steve 2016-03-09 15:55:01 +00:00
parent f8344f4047
commit 831dbf2fdc
1 changed files with 10 additions and 0 deletions

View File

@ -71,6 +71,14 @@ function extractJSON($filename)
}
}
}
else if (strpos($filename, "trophies") !== false)
{
foreach ($json as $trophy)
{
addString($json->{"title"});
addString($json->{"description"});
}
}
else if (strpos($filename, "missions") !== false)
{
addString($json->{"description"});
@ -132,6 +140,8 @@ recurseDir("../data/missions");
recurseDir("../data/challenges");
recurseDir("../data/trophies");
$potHeader = file_get_contents("../tools/potHeader.txt");
$handle = fopen("../locale/tbftss.pot", "w");