Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
e770dcef
Commit
e770dcef
authored
Dec 29, 2014
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change language meta key to 'name' for consistency
parent
d2c59cd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
admin.php
qa-include/app/admin.php
+2
-2
metadata.json
qa-lang/en-GB/metadata.json
+1
-1
No files found.
qa-include/app/admin.php
View file @
e770dcef
...
...
@@ -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
];
...
...
qa-lang/en-GB/metadata.json
View file @
e770dcef
{
"
display_
name"
:
"English (UK)"
"name"
:
"English (UK)"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment