blob: 74d2032274480c90af5d0baa8a9d7c6f496750cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
/**
* A base class for querying translated names from CLDR data.
*
* @author Niklas Laxström
* @author Ryan Kaldari
* @copyright Copyright © 2007-2012
* @license GPL-2.0-or-later
*/
class CldrNames {
/**
* Get the name for the file that contains the CLDR data for a given language
* @param string $code language code
* @return string
*/
public static function getFileName( $code ) {
return Language::getFileName( 'CldrNames', $code, '.php' );
}
/**
* Get the name for the file that contains the local override data for a given language
* @param string $code language code
* @return string
*/
public static function getOverrideFileName( $code ) {
return Language::getFileName( 'LocalNames', $code, '.php' );
}
}
|