summaryrefslogtreecommitdiff
path: root/languages/LanguageRmy.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2006-10-11 18:12:39 +0000
committerPierre Schmitz <pierre@archlinux.de>2006-10-11 18:12:39 +0000
commit183851b06bd6c52f3cae5375f433da720d410447 (patch)
treea477257decbf3360127f6739c2f9d0ec57a03d39 /languages/LanguageRmy.php
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'languages/LanguageRmy.php')
-rw-r--r--languages/LanguageRmy.php52
1 files changed, 52 insertions, 0 deletions
diff --git a/languages/LanguageRmy.php b/languages/LanguageRmy.php
new file mode 100644
index 00000000..f4b9583d
--- /dev/null
+++ b/languages/LanguageRmy.php
@@ -0,0 +1,52 @@
+<?php
+/** Vlax Romany (Romani)
+ *
+ * @package MediaWiki
+ * @subpackage Language
+ *
+ * @bug 5422
+ *
+ * @author Niklas Laxström
+ *
+ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
+ */
+
+/**
+ * Use Romanian as default instead of English
+ */
+require_once 'LanguageRo.php';
+
+
+if (!$wgCachedMessageArrays) {
+ require_once('MessagesRmy.php');
+}
+
+class LanguageRmy extends LanguageRo {
+ private $mMessagesRmy = null;
+
+ function __construct() {
+ parent::__construct();
+
+ global $wgAllMessagesRmy;
+ $this->mMessagesRmy =& $wgAllMessagesRmy;
+
+ }
+
+ function getMessage( $key ) {
+ if( isset( $this->mMessagesRmy[$key] ) ) {
+ return $this->mMessagesRmy[$key];
+ } else {
+ return parent::getMessage( $key );
+ }
+ }
+
+ function getAllMessages() {
+ return $this->mMessagesRmy;
+ }
+
+ function getFallbackLanguage() {
+ return 'ro';
+ }
+
+}
+?> \ No newline at end of file