Create POT with trophy info.
This commit is contained in:
parent
f8344f4047
commit
831dbf2fdc
|
@ -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)
|
else if (strpos($filename, "missions") !== false)
|
||||||
{
|
{
|
||||||
addString($json->{"description"});
|
addString($json->{"description"});
|
||||||
|
@ -132,6 +140,8 @@ recurseDir("../data/missions");
|
||||||
|
|
||||||
recurseDir("../data/challenges");
|
recurseDir("../data/challenges");
|
||||||
|
|
||||||
|
recurseDir("../data/trophies");
|
||||||
|
|
||||||
$potHeader = file_get_contents("../tools/potHeader.txt");
|
$potHeader = file_get_contents("../tools/potHeader.txt");
|
||||||
|
|
||||||
$handle = fopen("../locale/tbftss.pot", "w");
|
$handle = fopen("../locale/tbftss.pot", "w");
|
||||||
|
|
Loading…
Reference in New Issue