Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/config/language.php
diff options
context:
space:
mode:
Diffstat (limited to 'site/app/config/language.php')
-rw-r--r--site/app/config/language.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/site/app/config/language.php b/site/app/config/language.php
index f21adcf..88ef4cf 100644
--- a/site/app/config/language.php
+++ b/site/app/config/language.php
@@ -342,38 +342,5 @@ class LANGUAGE_CONFIG
// if we get here we are really out of luck: just return the default
return $this->default_language;
}
-
- /**
- * Return an array of all valid languages. This is safe to set() instead of publish().
- *
- * @param string names either 'english' or 'native' - how to return the full names
- * @param boolean includeAll whether to include an "All" option at the beginning of the array
- */
- static function getAllValidLanguages($names='english', $includeAll=false) {
- global $valid_languages;
-
- $localeDetails = new localeDetails();
-
- $xx_YY = array_keys($valid_languages);
-
- if ($includeAll) {
- array_unshift($xx_YY, 'all');
- }
-
- $locales = array();
-
- foreach ($xx_YY as $locale) {
- if ($locale == 'all') {
- $locales[$locale] = ___('general_languages_all_locales','All Locales');
- } else if ($names == 'english') {
- $locales[$locale] = $localeDetails->getEnglishNameForLocale($locale);
- } else if ($names == 'native') {
- $locales[$locale] = $localeDetails->getNativeNameForLocale($locale);
- }
- }
-
- return $locales;
-
- }
}
?>