fix regex, missing trailing / added
[lhc/web/wiklou.git] / languages / Language.php
index e301c40..d6959d2 100644 (file)
@@ -463,7 +463,7 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 "editthispage" => "Edit this page",
 'delete' => 'Delete',
 "deletethispage" => "Delete this page",
-"undelete_short" => "Undelete",
+"undelete_short" => "Undelete $1 edits",
 'protect' => 'Protect',
 "protectthispage" => "Protect this page",
 'unprotect' => 'Unprotect',
@@ -1505,7 +1505,7 @@ amusement.",
 'tooltip-history' => 'Past versions of this page, [alt-h]',
 'tooltip-protect' => 'Protect this page [alt-=]',
 'tooltip-delete' => 'Delete this page [alt-d]',
-'tooltip-undelete' => "Restore $1 deleted edits to this page [alt-d]",
+'tooltip-undelete' => "Restore the $1 edits done to this page before it was deleted [alt-d]",
 'tooltip-move' => 'Move this page [alt-m]',
 'tooltip-nomove' => 'You don\'t have the permissions to move this page',
 'tooltip-watch' => 'Add this page to your watchlist [alt-w]',
@@ -1533,13 +1533,18 @@ amusement.",
 'tooltip-upload' => 'Upload images or media files [alt-u]',
 'tooltip-specialpage' => 'This is a special page, you can\'t edit the page itself.',
 'tooltip-minoredit' => 'Mark this as a minor edit [alt-i]',
-'tooltip-save' => 'Save you changes [alt-s]',
+'tooltip-save' => 'Save your changes [alt-s]',
 'tooltip-preview' => 'Preview your changes, please use this before saving! [alt-p]',
 'tooltip-contributions' => 'View the list of contributions of this user',
 'tooltip-emailuser' => 'Send a mail to this user',
 'tooltip-rss' => 'RSS feed for this page',
 'tooltip-compareselectedversions' => 'See the differences between the two selected versions of this page. [alt-v]',
 
+# stylesheets
+
+'Monobook.css' => '/* edit this file to customize the monobook skin for the entire site */',
+#'Monobook.js' => '/* edit this file to change js things in the monobook skin */',
+
 # Metadata
 "nodublincore" => "Dublin Core RDF metadata disabled for this server.",
 "nocreativecommons" => "Creative Commons RDF metadata disabled for this server.",
@@ -1830,6 +1835,12 @@ class Language {
                return $in;
        }
 
+       function firstChar( $s ) {
+               # Get the first character of a string. In ASCII, return
+               # first byte of the string. UTF8 and others have to 
+               # overload this.
+               return $s[0];
+       }
 
        function setAltEncoding() {
                # Some languages may have an alternate char encoding option
@@ -1891,7 +1902,7 @@ class Language {
                        # Fall back to English if local list is incomplete
                        $raw =& Language::getMagicWords();
                }
-        $rawEntry = $raw[$mw->mId];
+               $rawEntry = $raw[$mw->mId];
                $mw->mCaseSensitive = $rawEntry[0];
                $mw->mSynonyms = array_slice( $rawEntry, 1 );
        }
@@ -1902,18 +1913,6 @@ class Language {
                return "<em>$text</em>";
        }
 
-       # returns additional Regex for the tokenizer. See LanguageFr.php for an example
-       function tokenizerRegex()
-       {
-               return "";
-       }
-
-       # Process the token generated from the tokenizer by the above regex. Return
-       # NULL if the token is unknown, and the text to be added to the output otherwise
-       function processToken( &$token , &$tokenStack)
-       {
-               return NULL;
-       }
        
        # Normally we use the plain ASCII digits. Some languages such as Arabic will
        # want to output numbers using script-appropriate characters: override this
@@ -1938,7 +1937,6 @@ class Language {
        }
 }
 
-header("X-Human-Language: $wgLanguageCode");
 # This should fail gracefully if there's not a localization available
 @include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );
 ?>