Permalink
Browse files

Change language meta key to 'name' for consistency

  • Loading branch information...
1 parent d2c59cd commit e770dcef3d81af24dbff09d24efc3dfeba7e7da2 @svivian svivian committed Dec 29, 2014
Showing with 3 additions and 3 deletions.
  1. +2 −2 qa-include/app/admin.php
  2. +1 −1 qa-lang/en-GB/metadata.json
@@ -124,8 +124,8 @@ function qa_admin_language_options()
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];
@@ -1,3 +1,3 @@
{
- "display_name": "English (UK)"
+ "name": "English (UK)"
}

0 comments on commit e770dce

Please sign in to comment.