Bambara language stub; import French messages
[lhc/web/wiklou.git] / languages / LanguageLatin1.php
index 55c62fc..f680133 100644 (file)
 # This will replace anything that can't be described in Latin-1 with
 # an ugly question mark (?) so don't use this mode on languages that
 # aren't suited to it!
-#
+
+# This file and LanguageUtf8.php may be included from within functions, so
+# we need to have global statements
+global $wgInputEncoding, $wgOutputEncoding; 
 
 $wgInputEncoding = "ISO-8859-1";
 $wgOutputEncoding = "ISO-8859-1";
@@ -251,6 +254,50 @@ class LanguageLatin1 {
        function truncate( $string, $length, $ellipsis = "" ) {
                return Language::truncate( $string, $length, $ellipsis );
        }
+
+       function convertGrammar( $word, $case ) {
+               return $word;
+       }
+
+       function getPreferredVariant() {
+               return $this->lang->getPreferredVariant();
+       }
+
+       function segmentForDiff( $text ) {
+               return $text;
+       }
+
+       function unsegmentForDiff( $text ) {
+               return $text;
+       }
+
+       function convert( $text, $isTitle=false ) {
+               return utf8_decode( $this->lang->convert( utf8_encode( $text ), $isTitle ) );
+       }
+       
+       function getVariantname( $code ) {
+               return utf8_decode( $this->lang->getVariantname( $code ) );
+       }
+
+       function getVariants() {
+               return $this->lang->getVariants();
+       }
+
+       function convertForSearchResult( $termsArray ) {
+               return $termsArray;
+       }       
+
+       function getExtraHashOptions() {
+               return '';
+       }
+       
+       function linkTrail() {
+               return $this->lang->linkTrail();
+       }
+
+       function getLangObj() {
+               return $this->lang;
+       }
 }
 
 ?>