Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5948145
AvailableCodes.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
765 B
Referenced Files
None
Subscribers
None
AvailableCodes.php
View Options
<?php
namespace
MediaWiki\Extension\CLDR
;
/**
* List all language codes for which some data has been made available via CLDR.
*
* @license GPL-2.0-or-later
*/
class
AvailableCodes
{
/** @var string[]|null */
private
static
?
array
$cache
;
/**
* Get the list of available files in CldrMain/CldrMain*.php, built by rebuild.php.
*
* @return string[] An array of locale codes in MediaWiki form. These can be passed to
* {@see LanguageNameUtils::getFileName} as in rebuild.php if calling code needs the data file
* names.
*/
public
static
function
getCodes
():
array
{
if
(
!
isset
(
self
::
$cache
)
)
{
$availableCodes
=
[];
require
__DIR__
.
'/../CldrAvailableCodes.php'
;
self
::
$cache
=
$availableCodes
;
}
return
self
::
$cache
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 2 2026, 21:41 (6 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
24/61/e9a87df209e3958ba5d5873fce89
Default Alt Text
AvailableCodes.php (765 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment