summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/cldr/includes/CldrNames.php')
-rw-r--r--MLEB/cldr/includes/CldrNames.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/MLEB/cldr/includes/CldrNames.php b/MLEB/cldr/includes/CldrNames.php
new file mode 100644
index 00000000..74d20322
--- /dev/null
+++ b/MLEB/cldr/includes/CldrNames.php
@@ -0,0 +1,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' );
+ }
+}