Added metadata to the translations
Optimize language metadata parsing

Use single loop instead of two.
Also use “metadata.php” as the data file.