Commit e770dcef by Scott

Change language meta key to 'name' for consistency

parent d2c59cd6
......@@ -124,8 +124,8 @@
foreach (glob(QA_LANG_DIR . '*', GLOB_ONLYDIR) as $directory) {
$code = basename($directory);
$metadata = $metadataUtil->fetchFromAddonPath($directory);
if (isset($metadata['display_name']))
$options[$code] = $metadata['display_name'];
if (isset($metadata['name']))
$options[$code] = $metadata['name'];
// otherwise use an entry from above
elseif (isset($codetolanguage[$code]))
$options[$code] = $codetolanguage[$code];
......
{
"display_name": "English (UK)"
"name": "English (UK)"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment