summaryrefslogtreecommitdiff
path: root/maintenance/languages.inc
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2008-12-15 18:02:47 +0100
committerPierre Schmitz <pierre@archlinux.de>2008-12-15 18:02:47 +0100
commit396b28f3d881f5debd888ba9bb9b47c2d478a76f (patch)
tree10d6e1a721ee4ef69def34a57f02d7eb3fc9e31e /maintenance/languages.inc
parent0be4d3ccf6c4fe98a72704f9463ecdea2ee5e615 (diff)
update to Mediawiki 1.13.3; some cleanups
Diffstat (limited to 'maintenance/languages.inc')
-rw-r--r--maintenance/languages.inc48
1 files changed, 0 insertions, 48 deletions
diff --git a/maintenance/languages.inc b/maintenance/languages.inc
deleted file mode 100644
index e318259d..00000000
--- a/maintenance/languages.inc
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Library to grab data from languages files
- *
- * WORK IN PROGRESS. There is some bugs when including the same
- * file multiple time :(((
- */
-require_once('commandLine.inc');
-
-class languages {
- /** Contain the list of languages available */
- var $list = array();
- /** some messages for the current lang */
- var $messages = array();
-
- function languages() {
- $this->clear();
- $this->loadList();
- }
-
- function clear() {
- $this->list = array();
- $this->messages = array();
- }
-
- function loadList() {
- global $IP;
- $this->list = array();
-
- // available language files
- $dir = opendir("$IP/languages");
- while ($file = readdir($dir)) {
- if (preg_match("/Language([^.]*?)\.php$/", $file, $m)) {
- $this->list[] = $m[1];
- }
- }
- sort($this->list);
-
- // Cleanup file list
- foreach($this->list as $key => $lang) {
- if ($lang == 'Utf8' || $lang == '' || $lang == 'Converter')
- unset($this->list[$key]);
- }
- }
-
- function getList() { return $this->list; }
-}
-?>