summaryrefslogtreecommitdiff
path: root/languages/LanguageUr.php
diff options
context:
space:
mode:
Diffstat (limited to 'languages/LanguageUr.php')
-rw-r--r--languages/LanguageUr.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/languages/LanguageUr.php b/languages/LanguageUr.php
new file mode 100644
index 00000000..1b994bea
--- /dev/null
+++ b/languages/LanguageUr.php
@@ -0,0 +1,45 @@
+<?php
+/** Urdu (اردو)
+ *
+ * @package MediaWiki
+ * @subpackage Language
+ */
+
+require_once( "LanguageUtf8.php" );
+
+class LanguageUr extends LanguageUtf8 {
+ private $mMessagesUr = null;
+
+ function __construct() {
+ parent::__construct();
+
+ global $wgAllMessagesUr;
+ $this->mMessagesUr =& $wgAllMessagesUr;
+ }
+
+ function getMessage( $key ) {
+ if( isset( $this->mMessagesUr[$key] ) ) {
+ return $this->mMessagesUr[$key];
+ } else {
+ return parent::getMessage( $key );
+ }
+ }
+
+ function getAllMessages() {
+ return $this->mMessagesUr;
+ }
+
+ function getDefaultUserOptions() {
+ $opt = parent::getDefaultUserOptions();
+ $opt["quickbar"] = 2; # Right-to-left
+ $opt["underline"] = 0; # Underline is hard to read in Arabic script
+ return $opt;
+ }
+
+ # For right-to-left language support
+ function isRTL() {
+ return true;
+ }
+}
+
+?>