From Meta, a wiki about Wikimedia
VERY IMPORTANT NOTE: Any edits made to the page below must be licensed under the terms of the
GNU General Public License to be included in the Wikipedia software. That is not the same as the GNU Free Documentation License that the general contents of this wiki are licensed under. If you contribute to this file, you must make it known that your intention is to dual-license the contributions under both GFDL (for posting on this wiki) and GPL (for inclusion in the software). If this is not acceptable to you, do not edit these files online on this wiki.
OHAR GARRANTZITSU: Orri honen editaketak GNU General Public License-pean egiten dira, wikipediaren sotware-an barne sartzeko. Lizentzia hau ez da GNU Free Documentation License bezala, horixe-pean entziklopiearen artikuluak editatzen duzu. fitxategi honetan laguntzen ba duzu, bi lizentzia-pean editatea onartzen duzu, GFDL (wiki honetan jakinarazteko) eta GPL (software-an sartzeko). Ez ba zatoz bat honekin, wiki honetan orri hauek ez editatu.
<?php
#--------------------------------------------------------------------------
# Constants
#--------------------------------------------------------------------------
# Magic words
define("MAG_REDIRECT", 0);
define("MAG_NOTOC", 1);
define("MAG_START", 2);
define("MAG_CURRENTMONTH", 3);
define("MAG_CURRENTMONTHNAME", 4);
define("MAG_CURRENTDAY", 5);
define("MAG_CURRENTDAYNAME", 6);
define("MAG_CURRENTYEAR", 7);
define("MAG_CURRENTTIME", 8);
define("MAG_NUMBEROFARTICLES", 9);
define("MAG_CURRENTMONTHNAMEGEN", 10);
define("MAG_MSG", 11);
define("MAG_SUBST", 12);
define("MAG_MSGNW", 13);
define("MAG_NOEDITSECTION", 14);
define("MAG_END", 15);
define("MAG_IMG_THUMBNAIL", 16);
define("MAG_IMG_RIGHT", 17);
define("MAG_IMG_LEFT", 18);
define("MAG_IMG_NONE", 19);
define("MAG_IMG_WIDTH", 20);
define("MAG_IMG_CENTER", 21);
#--------------------------------------------------------------------------
# Language-specific text
#--------------------------------------------------------------------------
# NOTE: To turn off "Current Events" in the sidebar,
# set "currentevents" => "-"
# NOTE: To turn off "Disclaimers" in the title links,
# set "disclaimers" => "-"
# The names of the namespaces can be set here, but the numbers
# are magical, so don't change or move them! The Namespace class
# encapsulates some of the magic-ness.
#
/* private */ $wgNamespaceNamesEu = array(
-2 => "Media",
-1 => "Aparteko",
0 => "",
1 => "Eztabaida",
2 => "Lankide",
3 => "Lankide_eztabaida",
4 => "Wikipedia",
5 => "Wikipedia_eztabaida",
6 => "Irudi",
7 => "Irudi_eztabaida",
8 => "MediaWiki",
9 => "MediaWiki_eztabaida"
# Temporarily commented out:
/*,
10 => "Txantiloi",
11 => "Txantiloi_eztabaida"*/
);
/* private */ $wgQuickbarSettingsEu = array(
"Ezein ere", "Eskuinean", "Ezkerrean", "Ezkerrean mugikor"
);
/* private */ $wgSkinNamesEu = array(
"Lehenetsia", "Nostalgia", "Cologne Blue", "Paddington", "Montparnasse"
);
/* private */ $wgMathNamesEu = array(
"PNG sortu",
"HTML bakuna baldin ba da, bestela PNG",
"HTML ahal dela, bestela PNG",
"TeX eutsi (testu-arakatzaileentzat)",
"Arakatzaile berrientzat gomendatua"
);
/* private */ $wgUserTogglesEu = array(
"hover" => "Erakutsi lotura-hitzak estekaren gainean",
"underline" => "Estekak azpimarratu",
"highlightbroken" => "Estekak hautsiak <a href=\"\" class=\"new\">aldez</a> edo moldez<a href=\"\" class=\"internal\">?</a> bistaratu.",
"justify" => "Testu lerrokatu",
"hideminor" => "Aldaketa berrietan edizio txikiak eskutatu",
"usenewrc" => "Aldaketa berriak azpimarratu (ez arakatzaile guztientzat)",
"numberheadings" => "Auto-zenbatu goiburukoak",
"showtoolbar"=>"Bistaratu editatzeko tresna-barra",
"editondblclick" => "Klik bikoitza artikuluak editatzeko (JavaScript) ",
"editsectiononrightclick"=>"Atalaren izenburuan eskuin-klik gaitu<br>atalak editatzeko (JavaScript)",
"showtoc"=>"Aurkibidea bistaratu <br>(atal bi baino gehiago dituen artikuluentzat)",
"editwidth" => "Edizio-leihoaren zabalera osoa",
"watchdefault" => "Artikulu berriak eta aldaketak zelatatu",
"minordefault" => "Besterik adierazi ezean, edizio guztiak txikiak markatu",
"previewontop" => "Edizio-leihoa aurretik aurrebista erakutsi",
"nocache" => "Desgaitu orri-katxe"
);
/* private */ $wgBookstoreListEu = array(
"AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
"PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1",
"Barnes & Noble" => "http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1",
"Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
);
/* private */ $wgWeekdayNamesEu = array(
"Igande", "Astelehen", "Astearte", "Asteazken", "Ostegun",
"Ostiral", "Larunbat"
);
/* private */ $wgMonthNamesEu = array(
"Urtarril", "Otsail", "Martxo", "Apiril", "Maiatz", "Ekain",
"Uztail", "Abuztu", "Irail", "Urri", "Azaro",
"Abendu"
);
/* private */ $wgMonthAbbreviationsEu = array(
"Urtarril", "Otsail", "Martxo", "Apiril", "Maiatz", "Ekain",
"Uztail", "Abuztu", "Irail", "Urri", "Azaro",
"Abendu"
);
/* private */ $wgMagicWordsEu = array(
# ID CASE SYNONYMS
MAG_REDIRECT => array( 0, "#redirect", "#bidali" ),
MAG_NOTOC => array( 0, "__NOTOC__", "__AURKIBIDEBARIK__"),
MAG_NOEDITSECTION => array( 0, "__NOEDITSECTION__", "__EZEDITATUATALA__" ),
MAG_START => array( 0, "__START__"; "__HASI__" ),
MAG_CURRENTMONTH => array( 1, "{{CURRENTMONTH}}", "{{HILHAU}}" ),
MAG_CURRENTMONTHNAME => array( 1, "{{CURRENTMONTHNAME}}", "{{HILHONENIZENA}}" ),
MAG_CURRENTDAY => array( 1, "{{CURRENTDAY}}", "{{GAUR}}" ),
MAG_CURRENTDAYNAME => array( 1, "{{CURRENTDAYNAME}}", "{{GAUREGUNIZENA}}" ),
MAG_CURRENTYEAR => array( 1, "{{CURRENTYEAR}}", "{{AURTEN}}" ),
MAG_CURRENTTIME => array( 1, "{{CURRENTTIME}}", "{{ORAINGOORDUA}}" ),
MAG_NUMBEROFARTICLES => array( 1, "{{NUMBEROFARTICLES}}", "{{ARTIKULUKOPURUA}}" ),
MAG_CURRENTMONTHNAMEGEN => array( 1, "{{CURRENTMONTHNAMEGEN}}" ),
MAG_MSG => array( 0, "{{MSG:$1}}", "{{MEZU:$1}}" ),
MAG_SUBST => array( 0, "{{SUBST:$1}}", "{{ORDEZ:$1}}" ),
MAG_MSGNW => array( 0, "{{MSGNW:$1}}", "{{MEZUNW:$1}}" ),
MAG_END => array( 0, "__END__", "__AMAITU__" ),
MAG_IMG_THUMBNAIL => array( 1, "thumbnail", "thumb", "lagin", ),
MAG_IMG_RIGHT => array( 1, "right", "eskuin" ),
MAG_IMG_LEFT => array( 1, "left", "ezker" ),
MAG_IMG_NONE => array( 1, "none", "ezer" ),
MAG_IMG_WIDTH => array( 1, "$1px", ),
MAG_IMG_CENTER => array( 1, "center", "centre", "erdi" )
);
# All special pages have to be listed here: a description of ""
# will make them not show up on the "Special Pages" page, which
# is the right thing for some of them (such as the "targeted" ones).
#
/* private */ $wgValidSpecialPagesEu = array(
"Userlogin" => "",
"Userlogout" => "",
"Preferences" => "Nire hobespenak",
"Watchlist" => "Nire segimendu zerrenda",
"Recentchanges" => "Aldaketa berriak",
"Upload" => "Irudi bat kargatu",
"Imagelist" => "Irudien zerrenda",
"Listusers" => "Lankideen zerrenda",
"Statistics" => "Gunearen estatistikak",
"Randompage" => "Ausazko artikulu",
"Lonelypages" => "Artikulu umezurtzak",
"Unusedimages" => "Irudi umezurtzak",
"Popularpages" => "Artikulu bisitatuenak",
"Wantedpages" => "Artikulu eskatutakoenak",
"Shortpages" => "Artikulu laburrak",
"Longpages" => "Artikulu luzeak",
"Newpages" => "Artikulu berriak",
"Ancientpages" => "Artikulu zaharrak",
"Deadendpages" => "Artikulu itsuak",
# "Intl" => "Hizkuntzen artean estekak",
"Allpages" => "Artikulu guztiak (alfabetiko)",
"Ipblocklist" => "IP helbide/lankide blokeatuak",
"Maintenance" => "Mantentze-lanetarako orria",
"Specialpages" => "",
"Contributions" => "",
"Emailuser" => "",
"Whatlinkshere" => "",
"Recentchangeslinked" => "",
"Movepage" => "",
"Booksources" => "Kanpoko bibliografia",
# "Categories" => "Orri kategoriak",
"Export" => "XML orria esportatu",
"Version" => "Erakutsi MediaWiki bertsioa",
);
/* private */ $wgSysopSpecialPagesEu = array(
"Blockip" => "IP helbide/lankide bat blokeatu",
"Asksql" => "Datu-basean bilatu",
"Allmessages" => "Sitemaren mezu guztiak",
"Undelete" => "Orrialde ezabatutak berreskuratu",
"Makesysop" => "Lankide sysop bihurtu"
);
/* private */ $wgDeveloperSpecialPagesEn = array(
"Lockdb" => "Datu-basean idazketaren kontrako babes (dblock)",
"Unlockdb" => "Datu-basean idazketaren baimena berrezarri (dbunlock)"
);
#--------------------------------------------------------------------------
# Internationalisation code
#--------------------------------------------------------------------------
class Language {
function Language(){
# Copies any missing values in the specified arrays from En to the current language
$fillin = array( "wgSysopSpecialPages", "wgValidSpecialPages", "wgDeveloperSpecialPages" );
$name = get_class( $this );
if( strpos( $name, "language" ) == 0){
$lang = ucfirst( substr( $name, 8 ) );
foreach( $fillin as $arrname ){
$langver = "{$arrname}{$lang}";
$enver = "{$arrname}En";
if( ! isset( $GLOBALS[$langver] ) || ! isset( $GLOBALS[$enver] ))
continue;
foreach($GLOBALS[$enver] as $spage => $text){
if( ! isset( $GLOBALS[$langver][$spage] ) )
$GLOBALS[$langver][$spage] = $text;
}
}
}
}
function getDefaultUserOptions () {
global $wgDefaultUserOptionsEn ;
return $wgDefaultUserOptionsEn ;
}
function getBookstoreList () {
global $wgBookstoreListEn ;
return $wgBookstoreListEn ;
}
function getNamespaces() {
global $wgNamespaceNamesEn;
return $wgNamespaceNamesEn;
}
function getNsText( $index ) {
global $wgNamespaceNamesEn;
return $wgNamespaceNamesEn[$index];
}
function getNsIndex( $text ) {
global $wgNamespaceNamesEn;
foreach ( $wgNamespaceNamesEn as $i => $n ) {
if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
}
return false;
}
function specialPage( $name ) {
return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
}
function getQuickbarSettings() {
global $wgQuickbarSettingsEn;
return $wgQuickbarSettingsEn;
}
function getSkinNames() {
global $wgSkinNamesEn;
return $wgSkinNamesEn;
}
function getMathNames() {
global $wgMathNamesEn;
return $wgMathNamesEn;
}
function getDateFormats() {
global $wgDateFormatsEn;
return $wgDateFormatsEn;
}
function getUserToggles() {
global $wgUserTogglesEn;
return $wgUserTogglesEn;
}
function getLanguageNames() {
global $wgLanguageNamesEn;
return $wgLanguageNamesEn;
}
function getLanguageName( $code ) {
global $wgLanguageNamesEn;
if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) {
return "";
}
return $wgLanguageNamesEn[$code];
}
function getMonthName( $key )
{
global $wgMonthNamesEn;
return $wgMonthNamesEn[$key-1];
}
/* by default we just return base form */
function getMonthNameGen( $key )
{
return $this->getMonthName( $key );
}
function getMonthAbbreviation( $key )
{
global $wgMonthAbbreviationsEn;
return $wgMonthAbbreviationsEn[$key-1];
}
function getWeekdayName( $key )
{
global $wgWeekdayNamesEn;
return $wgWeekdayNamesEn[$key-1];
}
function userAdjust( $ts )
{
global $wgUser, $wgLocalTZoffset;
$tz = $wgUser->getOption( "timecorrection" );
if ( $tz === "" ) {
$hrDiff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
$minDiff = 0;
} elseif ( strpos( $tz, ":" ) !== false ) {
$tzArray = explode( ":", $tz );
$hrDiff = intval($tzArray[0]);
$minDiff = intval($hrDiff < 0 ? -$tzArray[1] : $tzArray[1]);
} else {
$hrDiff = intval( $tz );
}
if ( 0 == $hrDiff && 0 == $minDiff ) { return $ts; }
$t = mktime( (
(int)substr( $ts, 8, 2) ) + $hrDiff, # Hours
(int)substr( $ts, 10, 2 ) + $minDiff, # Minutes
(int)substr( $ts, 12, 2 ), # Seconds
(int)substr( $ts, 4, 2 ), # Month
(int)substr( $ts, 6, 2 ), # Day
(int)substr( $ts, 0, 4 ) ); #Year
return date( "YmdHis", $t );
}
function date( $ts, $adj = false )
{
global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
if ( $wgUseDynamicDates ) {
$datePreference = $wgUser->getOption( 'date' );
if ( $datePreference == 0 ) {
$datePreference = $wgAmericanDates ? 1 : 2;
}
} else {
$datePreference = $wgAmericanDates ? 1 : 2;
}
if ( $datePreference == 1 ) {
# MDY
$d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
" " . (0 + substr( $ts, 6, 2 )) . ", " .
substr( $ts, 0, 4 );
} else if ( $datePreference == 2 ) {
#DMY
$d = (0 + substr( $ts, 6, 2 )) . " " .
$this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
substr( $ts, 0, 4 );
} else {
#YMD
$d = substr( $ts, 0, 4 ) . " " . $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
" " . (0 + substr( $ts, 6, 2 ));
}
return $d;
}
function time( $ts, $adj = false )
{
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
$t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
return $t;
}
function timeanddate( $ts, $adj = false )
{
return $this->time( $ts, $adj ) . ", " . $this->date( $ts, $adj );
}
function rfc1123( $ts )
{
return date( "D, d M Y H:i:s T", $ts );
}
function getValidSpecialPages()
{
global $wgValidSpecialPagesEn;
return $wgValidSpecialPagesEn;
}
function getSysopSpecialPages()
{
global $wgSysopSpecialPagesEn;
return $wgSysopSpecialPagesEn;
}
function getDeveloperSpecialPages()
{
global $wgDeveloperSpecialPagesEn;
return $wgDeveloperSpecialPagesEn;
}
function getMessage( $key )
{
global $wgAllMessagesEn;
return $wgAllMessagesEn[$key];
}
function getAllMessages()
{
global $wgAllMessagesEn;
return $wgAllMessagesEn;
}
function iconv( $in, $out, $string ) {
# For most languages, this is a wrapper for iconv
return iconv( $in, $out, $string );
}
function ucfirst( $string ) {
# For most languages, this is a wrapper for ucfirst()
return ucfirst( $string );
}
function lcfirst( $s ) {
return strtolower( $s{0} ). substr( $s, 1 );
}
function checkTitleEncoding( $s ) {
global $wgInputEncoding;
# Check for UTF-8 URLs; Internet Explorer produces these if you
# type non-ASCII chars in the URL bar or follow unescaped links.
$ishigh = preg_match( '/[\x80-\xff]/', $s);
$isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
'[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
if( ($wgInputEncoding != "utf-8") and $ishigh and $isutf )
return iconv( "UTF-8", $wgInputEncoding, $s );
if( ($wgInputEncoding == "utf-8") and $ishigh and !$isutf )
return utf8_encode( $s );
# Other languages can safely leave this function, or replace
# it with one to detect and convert another legacy encoding.
return $s;
}
function stripForSearch( $in ) {
# Some languages have special punctuation to strip out
# or characters which need to be converted for MySQL's
# indexing to grok it correctly. Make such changes here.
return $in;
}
function setAltEncoding() {
# Some languages may have an alternate char encoding option
# (Esperanto X-coding, Japanese furigana conversion, etc)
# If 'altencoding' is checked in user prefs, this gives a
# chance to swap out the default encoding settings.
#global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
}
function recodeForEdit( $s ) {
# For some languages we'll want to explicitly specify
# which characters make it into the edit box raw
# or are converted in some way or another.
# Note that if wgOutputEncoding is different from
# wgInputEncoding, this text will be further converted
# to wgOutputEncoding.
global $wgInputEncoding, $wgEditEncoding;
if( $wgEditEncoding == "" or
$wgEditEncoding == $wgInputEncoding ) {
return $s;
} else {
return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s );
}
}
function recodeInput( $s ) {
# Take the previous into account.
global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
if($wgEditEncoding != "") {
$enc = $wgEditEncoding;
} else {
$enc = $wgOutputEncoding;
}
if( $enc == $wgInputEncoding ) {
return $s;
} else {
return $this->iconv( $enc, $wgInputEncoding, $s );
}
}
# For right-to-left language support
function isRTL() { return false; }
# To allow "foo[[bar]]" to extend the link over the whole word "foobar"
function linkPrefixExtension() { return false; }
function getMagicWords()
{
global $wgMagicWordsEn;
return $wgMagicWordsEn;
}
# Fill a MagicWord object with data from here
function getMagic( &$mw )
{
$raw = $this->getMagicWords(); # don't worry, it's reference counted not deep copy
$rawEntry = $raw[$mw->mId];
$mw->mCaseSensitive = $rawEntry[0];
$mw->mSynonyms = array_slice( $rawEntry, 1 );
}
# Italic is unsuitable for some languages
function emphasize( $text )
{
return "<em>$text</em>";
}
}
@include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );
?>
![]() How to Get on Radio Talk Shows All Across America w/o Leaving Home |
![]() This Broad's Life: The Raucous, Riveting Autobiography of the Most Outrageous Radio Talk-Show Host in America Today |
![]() You Can't Say That : Common Sense From America's Number One Gay Radio Talk Show Host |
![]() How to Get On Radio Talk Shows All Across America | ||||
![]() Talk Show Selects 1999: A Guide to the Nation's Most Influential Television and Radio Talk Shows |
![]() Talk Show Selects 1998: A Guide to the Nation's Most Influential Television and Radio Talk Shows (1998 Edition) |
![]() Talk Show Yearbook 2000: A Guide to the Nation's Most Influential Television and Radio Talk Shows (Talk Show Selects, 2000) |
![]() Conduct a National Radio Talk Show Tour Without Leaving Your Home or Office...Without Paying a Cent for Air Time (How to Make People Buy Whatever You) | ||||