<title>MediaWiki installation</title>
<style type="text/css">
- @import "../skins/monobook/main.css";
+ @import "../skins/monobook/main.css";
.env-check {
font-size: 90%;
$radioCount = 0;
function aField( &$conf, $field, $text, $type = "text", $value = "" ) {
- global $radioCount;
+ global $radioCount;
if( $type != "" ) {
$xtype = "type=\"$type\"";
} else {
<?php
/**
* Image download authorisation script
- *
+ *
* To use, in LocalSettings.php set $wgUploadDirectory to point to a non-public
* directory, and $wgUploadPath to point to this file. Also set $wgWhitelistRead
* to an array of pages you want everyone to be able to access. Your server must
- * support PATH_INFO, CGI-based configurations generally don't.
+ * support PATH_INFO, CGI-based configurations generally don't.
*/
# Valid web server entry point, enable includes
define( 'MEDIAWIKI', true );
function wfForbidden() {
header( 'HTTP/1.0 403 Forbidden' );
- print
+ print
"<html><body>
<h1>Access denied</h1>
<p>You need to log in to access files on this server</p>
$msg = $wgOut->parse( wfMsg( 'confirm_purge' ) );
$action = $this->mTitle->escapeLocalURL( 'action=purge' );
$button = htmlspecialchars( wfMsg( 'confirm_purge_button' ) );
- $msg = str_replace( '$1',
+ $msg = str_replace( '$1',
"<form method=\"post\" action=\"$action\">\n" .
"<input type=\"submit\" name=\"submit\" value=\"$button\" />\n" .
"</form>\n", $msg );
*/
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
function getTableName() {
if ( !$this->tableInitialised ) {
$dbw =& wfGetDB( DB_MASTER );
- /* This is actually a hack, we should be able
+ /* This is actually a hack, we should be able
to use Language classes here... or not */
if (!$dbw)
die("Could not connect to database");
/**
* Get the DB object and set the reference parameter to the query options
*/
- function &getDBOptions( &$options )
+ function &getDBOptions( &$options )
{
global $wgAntiLockFlags;
if ( $this->mForUpdate || $this->mFromMaster ) {
}
/**
- * Search the database for any range blocks matching the given address, and
+ * Search the database for any range blocks matching the given address, and
* load the row if one is found.
*/
function loadRange( $address, $killExpired = true )
if ( !$killExpired || !$this->deleteIfExpired() ) {
# No, return true
$success = true;
- }
+ }
}
$db->freeResult( $res );
* Handles talking to the file cache, putting stuff in and taking it back out.
* Mostly called from Article.php, also from DatabaseFunctions.php for the
* emergency abort/fallback to cache.
- *
+ *
* Global options that affect this module:
* $wgCachePages
* $wgCacheEpoch
* $wgUseFileCache
* $wgFileCacheDirectory
* $wgUseGzip
- * @package MediaWiki
+ * @package MediaWiki
*/
class CacheManager {
var $mTitle, $mFileCache;
# logging size most of the time. The substr is really just a sanity check.
# Who's been wasting my precious column space? -- TS
- #$profName = 'query: ' . $fname . ' ' . substr( Database::generalizeSQL( $sql ), 0, 255 );
- $profName = 'query: ' . substr( Database::generalizeSQL( $sql ), 0, 255 );
+ #$profName = 'query: ' . $fname . ' ' . substr( Database::generalizeSQL( $sql ), 0, 255 );
+ $profName = 'query: ' . substr( Database::generalizeSQL( $sql ), 0, 255 );
wfProfileIn( 'Database::query' );
wfProfileIn( $profName );
$tailOpts .= " ORDER BY {$options['ORDER BY']}";
}
if (isset($options['LIMIT'])) {
- $tailOpts .= $this->limitResult('', $options['LIMIT'],
+ $tailOpts .= $this->limitResult('', $options['LIMIT'],
isset($options['OFFSET']) ? $options['OFFSET'] : false);
}
if ( is_numeric( array_search( 'FOR UPDATE', $options ) ) ) {
$opts = array();
if ( in_array( 'LOW_PRIORITY', $options ) )
$opts[] = $this->lowPriorityOption();
- if ( in_array( 'IGNORE', $options ) )
+ if ( in_array( 'IGNORE', $options ) )
$opts[] = 'IGNORE';
return implode(' ', $opts);
}
/**
* This is PostgreSQL database abstraction layer.
- *
- * As it includes more generic version for DB functions,
+ *
+ * As it includes more generic version for DB functions,
* than MySQL ones, some of them should be moved to parent
* Database class.
*
var $mInsertId = NULL;
var $mLastResult = NULL;
- function DatabasePgsql($server = false, $user = false, $password = false, $dbName = false,
+ function DatabasePgsql($server = false, $user = false, $password = false, $dbName = false,
$failFunction = false, $flags = 0, $tablePrefix = 'get from global' )
{
Database::Database( $server, $user, $password, $dbName, $failFunction, $flags, $tablePrefix );
}
- /* static */ function newFromParams( $server = false, $user = false, $password = false, $dbName = false,
+ /* static */ function newFromParams( $server = false, $user = false, $password = false, $dbName = false,
$failFunction = false, $flags = 0, $tablePrefix = 'get from global' )
{
return new DatabasePgsql( $server, $user, $password, $dbName, $failFunction, $flags, $tablePrefix );
wfDebug( "DB connection error\n" );
wfDebug( "Server: $server, Database: $dbName, User: $user, Password: " . substr( $password, 0, 3 ) . "...\n" );
wfDebug( $this->lastError()."\n" );
- } else {
+ } else {
$this->setSchema();
$this->mOpened = true;
}
}
function numRows( $res ) {
- @$n = pg_num_rows( $res );
+ @$n = pg_num_rows( $res );
if( pg_last_error($this->mConn) ) {
wfDebugDieBacktrace( 'SQL error: ' . htmlspecialchars( pg_last_error($this->mConn) ) );
}
/**
* This must be called after nextSequenceVal
*/
- function insertId() {
+ function insertId() {
return $this->mInsertId;
}
function lastError() { return pg_last_error(); }
function lastErrno() { return 1; }
- function affectedRows() {
- return pg_affected_rows( $this->mLastResult );
+ function affectedRows() {
+ return pg_affected_rows( $this->mLastResult );
}
/**
$res = $this->query( $sql, $fname );
if ( !$res )
return NULL;
- while ($row = $this->fetchObject( $res ))
+ while ($row = $this->fetchObject( $res ))
return true;
return false;
function insert( $table, $a, $fname = 'Database::insert', $options = array() ) {
# PostgreSQL doesn't support options
# We have a go at faking one of them
- # TODO: DELAYED, LOW_PRIORITY
+ # TODO: DELAYED, LOW_PRIORITY
if ( !is_array($options))
$options = array($options);
- if ( in_array( 'IGNORE', $options ) )
+ if ( in_array( 'IGNORE', $options ) )
$oldIgnore = $this->ignoreErrors( true );
# IGNORE is performed using single-row inserts, ignoring errors in each
$this->ignoreErrors( $oldIgnore );
$retVal = true;
- if ( in_array( 'IGNORE', $options ) )
+ if ( in_array( 'IGNORE', $options ) )
$this->ignoreErrors( $oldIgnore );
return $retVal;
# REPLACE query wrapper
# PostgreSQL simulates this with a DELETE followed by INSERT
# $row is the row to insert, an associative array
- # $uniqueIndexes is an array of indexes. Each element may be either a
+ # $uniqueIndexes is an array of indexes. Each element may be either a
# field name or an array of field names
#
- # It may be more efficient to leave off unique indexes which are unlikely to collide.
- # However if you do this, you run the risk of encountering errors which wouldn't have
+ # It may be more efficient to leave off unique indexes which are unlikely to collide.
+ # However if you do this, you run the risk of encountering errors which wouldn't have
# occurred in MySQL
function replace( $table, $uniqueIndexes, $rows, $fname = 'Database::replace' ) {
$table = $this->tableName( $table );
if ( is_array( $index ) ) {
$first2 = true;
foreach ( $index as $col ) {
- if ( $first2 ) {
+ if ( $first2 ) {
$first2 = false;
} else {
$sql .= ' AND ';
function textFieldSize( $table, $field ) {
$table = $this->tableName( $table );
$sql = "SELECT t.typname as ftype,a.atttypmod as size
- FROM pg_class c, pg_attribute a, pg_type t
- WHERE relname='$table' AND a.attrelid=c.oid AND
+ FROM pg_class c, pg_attribute a, pg_type t
+ WHERE relname='$table' AND a.attrelid=c.oid AND
a.atttypid=t.oid and a.attname='$field'";
$res =$this->query($sql);
$row=$this->fetchObject($res);
* + Doesn't work with path to query rewrite rules, corrupted by apache
* ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
*
- * All three of these punctuation problems can be avoided by using an alias, instead of a
+ * All three of these punctuation problems can be avoided by using an alias, instead of a
* rewrite rule of either variety.
*
- * The problem with % is that when using a path to query rewrite rule, URLs are
- * double-unescaped: once by Apache's path conversion code, and again by PHP. So
- * %253F, for example, becomes "?". Our code does not double-escape to compensate
- * for this, indeed double escaping would break if the double-escaped title was
- * passed in the query string rather than the path. This is a minor security issue
+ * The problem with % is that when using a path to query rewrite rule, URLs are
+ * double-unescaped: once by Apache's path conversion code, and again by PHP. So
+ * %253F, for example, becomes "?". Our code does not double-escape to compensate
+ * for this, indeed double escaping would break if the double-escaped title was
+ * passed in the query string rather than the path. This is a minor security issue
* because articles can be created such that they are hard to view or edit.
*
* Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
# max lag: (optional) Maximum replication lag before a slave will taken out of rotation
# max threads: (optional) Maximum number of running threads
#
-# These and any other user-defined properties will be assigned to the mLBInfo member
+# These and any other user-defined properties will be assigned to the mLBInfo member
# variable of the Database object.
#
# Leave at false to use the single-server variables above
/**
* Set to an array of log group keys to filenames.
- * If set, wfDebugLog() output for that group will go to that file instead
+ * If set, wfDebugLog() output for that group will go to that file instead
* of the regular $wgDebugLogFile. Useful for enabling selective logging
* in production.
*/
# Pages anonymous user may see as an array, e.g.:
# array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
-# NOTE: This will only work if $wgGroupPermissions['*']['read']
+# NOTE: This will only work if $wgGroupPermissions['*']['read']
# is false -- see below. Otherwise, ALL pages are accessible,
# regardless of this setting.
# Also note that this will only protect _pages in the wiki_.
-# Uploaded files will remain readable. Make your upload
+# Uploaded files will remain readable. Make your upload
# directory name unguessable, or use .htaccess to protect it.
$wgWhitelistRead = false;
* combined with the permissions of all groups that a given user is listed
* in in the user_groups table.
*
- * Functionality to make pages inaccessible has not been extensively tested
+ * Functionality to make pages inaccessible has not been extensively tested
* for security. Use at your own risk!
- *
+ *
* This replaces wgWhitelistAccount and wgWhitelistEdit
*/
$wgGroupPermissions = array();
/** Whether to allow inline image pointing to other websites */
$wgAllowExternalImages = true;
-/** If the above is false, you can specify an exception here. Image URLs
+/** If the above is false, you can specify an exception here. Image URLs
* that start with this string are then rendered, while all others are not.
* You can use this to set up a trusted, simple repository of images.
*
- * Example:
- * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
+ * Example:
+ * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
*/
$wgAllowExternalImagesFrom = '';
* ALF_PRELOAD_EXISTENCE
* Preload cur_id during replaceLinkHolders
* ALF_NO_LINK_LOCK
- * Don't use locking reads when updating the link table. This is
- * necessary for wikis with a high edit rate for performance
+ * Don't use locking reads when updating the link table. This is
+ * necessary for wikis with a high edit rate for performance
* reasons, but may cause link table inconsistency
* ALF_NO_BLOCK_LOCK
* As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
$wgSVGConverterPath = '';
/** Don't scale a SVG larger than this unless its native size is larger */
$wgSVGMaxSize = 1024;
-/**
- * Don't thumbnail an image if it will use too much working memory
- * Default is 50 MB if decompressed to RGBA form, which corresponds to
+/**
+ * Don't thumbnail an image if it will use too much working memory
+ * Default is 50 MB if decompressed to RGBA form, which corresponds to
* 12.5 million pixels or 3500x3500
*/
$wgMaxImageArea = 1.25e7;
/**#@+
- * Media types.
+ * Media types.
* This defines constants for the value returned by Image::getMediaType()
*/
define( 'MEDIATYPE_UNKNOWN', 'UNKNOWN' ); // unknown format
/**#@-*/
/**#@+
- * Antivirus result codes, for use in $wgAntivirusSetup.
+ * Antivirus result codes, for use in $wgAntivirusSetup.
*/
define( 'AV_NO_VIRUS', 0 ); #scan ok, no virus found
define( 'AV_VIRUS_FOUND', 1 ); #virus found!
<?php
/**
* See diff.doc
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
/**
* @todo document
* @access public
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class DifferenceEngine {
* Constructor
* @param Title $titleObj Title object that the diff is associated with
* @param integer $old Old ID we want to show and diff with.
- * @param string $new Either 'prev' or 'next'.
+ * @param string $new Either 'prev' or 'next'.
* @param integer $rcid ??? (default 0)
*/
function DifferenceEngine( $titleObj = null, $old = 0, $new = 0, $rcid = 0 ) {
return $out;
}
- /**
+ /**
* Use specified text instead of loading from the database
*/
function setText( $oldText, $newText ) {
* Load revision metadata for the specified articles. If newid is 0, then compare
* the old article in oldid to the current article; if oldid is 0, then
* compare the current article to the immediately previous one (ignoring the
- * value of newid).
+ * value of newid).
*
- * If oldid is false, leave the corresponding revision object set
- * to false. This is impossible via ordinary user input, and is provided for
- * API convenience.
+ * If oldid is false, leave the corresponding revision object set
+ * to false. This is impossible via ordinary user input, and is provided for
+ * API convenience.
*/
function loadRevisionData() {
global $wgLang;
/**
* @todo document
* @access private
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class _DiffOp {
/**
* @todo document
* @access private
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class _DiffOp_Copy extends _DiffOp {
/**
* @todo document
* @access private
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class _DiffOp_Delete extends _DiffOp {
/**
* @todo document
* @access private
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class _DiffOp_Add extends _DiffOp {
/**
* @todo document
* @access private
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class _DiffOp_Change extends _DiffOp {
*
* @author Geoffrey T. Dairiki, Tim Starling
* @access private
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class _DiffEngine
* Class representing a 'diff' between two sequences of strings.
* @todo document
* @access private
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class Diff
* FIXME: bad name.
* @todo document
* @access private
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class MappedDiff extends Diff
* to obtain fancier outputs.
* @todo document
* @access private
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class DiffFormatter
/**
* @todo document
* @access private
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class _HWLDF_WordAccumulator {
/**
* @todo document
* @access private
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class WordLevelDiff extends MappedDiff
$stripped[] = $line;
} else {
if (preg_match_all('/ ( [^\S\n]+ | [0-9_A-Za-z\x80-\xff]+ | . ) (?: (?!< \n) [^\S\n])? /xs',
- $line, $m))
+ $line, $m))
{
$words = array_merge( $words, $m[0] );
$stripped = array_merge( $stripped, $m[1] );
* Wikipedia Table style diff formatter.
* @todo document
* @access private
- * @package MediaWiki
+ * @package MediaWiki
* @subpackage DifferenceEngine
*/
class TableDiffFormatter extends DiffFormatter
}
/**
- * This is the function that gets called for "action=edit". It
- * sets up various member variables, then passes execution to
+ * This is the function that gets called for "action=edit". It
+ * sets up various member variables, then passes execution to
* another function, usually showEditForm()
- *
+ *
* The edit form is self-submitting, so that when things like
* preview and edit conflicts occur, we get the same form back
* with the extra stuff added. Only when the final submission
}
}
if($addstandardintro) {
- if ( $wgUser->isLoggedIn() )
+ if ( $wgUser->isLoggedIn() )
$wgOut->addWikiText( wfMsg( 'newarticletext' ) );
else
$wgOut->addWikiText( wfMsg( 'newarticletextanon' ) );
/**
* Live Preview lets us fetch rendered preview page content and
* add it to the page without refreshing the whole page.
- * If not supported by the browser it will fall through to the normal form
+ * If not supported by the browser it will fall through to the normal form
* submission method.
- *
- * This function outputs a script tag to support live preview, and
- * returns an onclick handler which should be added to the attributes
+ *
+ * This function outputs a script tag to support live preview, and
+ * returns an onclick handler which should be added to the attributes
* of the preview button
*/
function doLivePreviewScript() {
} while( ctype_xdigit( $invalue{$i} ) && ( $i < strlen( $invalue ) ) );
// Do some sanity checks. These aren't needed for reversability,
- // but should help keep the breakage down if the editor
+ // but should help keep the breakage down if the editor
// breaks one of the entities whilst editing.
- if ((substr($invalue,$i,1)==";") and (strlen($hexstring) <= 6)) {
+ if ((substr($invalue,$i,1)==";") and (strlen($hexstring) <= 6)) {
$codepoint = hexdec($hexstring);
$result .= codepointToUtf8( $codepoint );
} else {
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/**
* Exif tags grouped by category, the tagname itself is the key and the type
- * is the value, in the case of more than one possible value type they are
+ * is the value, in the case of more than one possible value type they are
* seperated by commas.
*/
var $mExifTags;
'dateandtime' => array(
'DateTimeOriginal' => MW_EXIF_ASCII, # Date and time of original data generation #p36
'DateTimeDigitized' => MW_EXIF_ASCII, # Date and time of original data generation
- 'SubSecTime' => MW_EXIF_ASCII, # DateTime subseconds
+ 'SubSecTime' => MW_EXIF_ASCII, # DateTime subseconds
'SubSecTimeOriginal' => MW_EXIF_ASCII, # DateTimeOriginal subseconds
'SubSecTimeDigitized' => MW_EXIF_ASCII, # DateTimeDigitized subseconds
),
*/
function validate( $tag, $val ) {
$debug = "tag is '$tag'";
- // Fucks up if not typecast
+ // Fucks up if not typecast
switch( (string)$this->mFlatExifTags[$tag] ) {
case (string)MW_EXIF_BYTE:
$this->debug( $val, __FUNCTION__, $debug );
*
* @access private
*
- * @param mixed $in
+ * @param mixed $in
* @param string $fname
* @param mixed $action
*/
$type = gettype( $in );
$class = ucfirst( __CLASS__ );
if ( $type === 'array' )
- $in = print_r( $in, true );
-
+ $in = print_r( $in, true );
+
if ( $action === true )
wfDebugLog( $this->log, "$class::$fname: accepted: '$in' (type: $type)\n");
- elseif ( $action === false )
+ elseif ( $action === false )
wfDebugLog( $this->log, "$class::$fname: rejected: '$in' (type: $type)\n");
elseif ( $action === null )
wfDebugLog( $this->log, "$class::$fname: input was: '$in' (type: $type)\n");
<?php
# Copyright (C) 2003, 2005 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/**
- *
+ *
* @package MediaWiki
*
* Support for external editors to modify both text and files
* and save the modified data back to the server.
*
*/
-
+
class ExternalEdit {
function ExternalEdit ( $article, $mode ) {
if(!isset($this->mMode)) {
$type="Edit text";
$url=$this->mTitle->getFullURL("action=edit&internaledit=true");
- # *.wiki file extension is used by some editors for syntax
+ # *.wiki file extension is used by some editors for syntax
# highlighting, so we follow that convention
- $extension="wiki";
+ $extension="wiki";
} elseif($this->mMode=="file") {
- $type="Edit file";
+ $type="Edit file";
$image = Image::newFromTitle( $this->mTitle );
$img_url = $image->getURL();
if(strpos($img_url,"://")) {
}
$extension=substr($name, $pos);
}
- $special=$wgLang->getNsText(NS_SPECIAL);
+ $special=$wgLang->getNsText(NS_SPECIAL);
$control = <<<CONTROL
[Process]
Type=$type
<?php
/**
- *
+ *
* @package MediaWiki
*
* Constructor class for data kept in external repositories
*
- * External repositories might be populated by maintenance/async
- * scripts, thus partial moving of data may be possible, as well
+ * External repositories might be populated by maintenance/async
+ * scripts, thus partial moving of data may be possible, as well
* as possibility to have any storage format (i.e. for archives)
*
*/
-
+
class ExternalStore {
/* Fetch data from given URL */
function fetchFromURL($url) {
global $wgExternalStores;
- if (!$wgExternalStores)
+ if (!$wgExternalStores)
return false;
@list($proto,$path)=explode('://',$url,2);
/* Bad URL */
- if ($path=="")
+ if ($path=="")
return false;
/* Protocol not enabled */
if (!in_array( $proto, $wgExternalStores ))
return $store->fetchFromURL($url);
}
- /* XXX: may require other methods, for store, delete,
- * whatever, for initial ext storage
+ /* XXX: may require other methods, for store, delete,
+ * whatever, for initial ext storage
*/
}
?>
<?php
/**
- *
+ *
* @package MediaWiki
*
* DB accessable external objects
*
*/
-require_once( 'LoadBalancer.php' );
+require_once( 'LoadBalancer.php' );
/** @package MediaWiki */
<?php
/**
- *
+ *
* @package MediaWiki
*
* Example class for HTTP accessable external objects
*
*/
-
+
class ExternalStoreHttp {
/* Fetch data from given URL */
function fetchFromURL($url) {
return $ret;
}
- /* XXX: may require other methods, for store, delete,
- * whatever, for initial ext storage
+ /* XXX: may require other methods, for store, delete,
+ * whatever, for initial ext storage
*/
}
?>
<?php
# Basic support for outputting syndication feeds in RSS, other formats
-#
+#
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* Abstract function, override!
* @abstract
*/
-
+
/**
* Generate Header of the feed
*/
/**
* Get a message from anywhere, for the current user language.
*
- * Use wfMsgForContent() instead if the message should NOT
+ * Use wfMsgForContent() instead if the message should NOT
* change depending on the user preferences.
*
* Note that the message may contain HTML, and is therefore
* addWikiText will do the escaping for you. Use wfMsgHtml()
* if you need an escaped message.
*
- * @param string lookup key for the message, usually
+ * @param string lookup key for the message, usually
* defined in languages/Language.php
*/
function wfMsg( $key ) {
/**
* Get a message from anywhere, for the current global language
* set with $wgLanguageCode.
- *
- * Use this if the message should NOT change dependent on the
- * language set in the user's preferences. This is the case for
- * most text written into logs, as well as link targets (such as
- * the name of the copyright policy page). Link titles, on the
+ *
+ * Use this if the message should NOT change dependent on the
+ * language set in the user's preferences. This is the case for
+ * most text written into logs, as well as link targets (such as
+ * the name of the copyright policy page). Link titles, on the
* other hand, should be shown in the UI language.
*
- * Note that MediaWiki allows users to change the user interface
- * language in their preferences, but a single installation
+ * Note that MediaWiki allows users to change the user interface
+ * language in their preferences, but a single installation
* typically only contains content in one language.
- *
- * Be wary of this distinction: If you use wfMsg() where you should
- * use wfMsgForContent(), a user of the software may have to
+ *
+ * Be wary of this distinction: If you use wfMsg() where you should
+ * use wfMsgForContent(), a user of the software may have to
* customize over 70 messages in order to, e.g., fix a link in every
* possible language.
*
- * @param string lookup key for the message, usually
+ * @param string lookup key for the message, usually
* defined in languages/Language.php
*/
function wfMsgForContent( $key ) {
/**
* ISO 8601 format with no timezone: 1986-02-09T20:00:00Z
*
- * This is used by Special:Export
+ * This is used by Special:Export
*/
define('TS_ISO_8601', 4);
* @return bool
*/
function wfIsWellFormedXmlFragment( $text ) {
- $html =
+ $html =
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ' .
'"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' .
'<html>' .
$wgMemc->delete( Group::getCacheKey( $this->id ) );
}
- /**
- * Get memcached key
+ /**
+ * Get memcached key
* @static
*/
function getCacheKey( $id ) {
if( $g->getId() != 0 ) {
return $g;
- } else {
+ } else {
return null;
}
}
/**
* Get an array of Group objects, one for each valid group
- *
+ *
* @static
*/
function &getAllGroups() {
return $groups;
}
- /**
+ /**
* Get static groups, if they have been defined in LocalSettings.php
- *
+ *
* @static
*/
function &getStaticGroups() {
}
/**
- * @param string $name Group database name
+ * @param string $name Group database name
* @return integer Group database id
*/
function idFromName($name) {
return $this->name;
}
- function getExpandedName() {
+ function getExpandedName() {
$this->loadFromDatabase();
return $this->getMessage( $this->name );
}
$this->dataLoaded = false;
}
- function getDescription() {
+ function getDescription() {
return $this->description;
}
$this->rights = $rights;
}
- /**
+ /**
* Gets a message if the text starts with a colon, otherwise returns the text itself
*/
function getMessage( $text ) {
"</label></div>\n";
}
- /**
+ /**
* @access private
* @param string $varname Name of the textbox.
* @param string $value Optional value (default empty)
"<input type='text' name=\"{$varname}\" value=\"{$value}\" size=\"{$size}\" /></label></div>\n";
}
- /**
+ /**
* @access private
* @param string $varname Name of the radiobox.
* @param array $fields Various fields.
return $this->fieldset( $this->mName.'-'.$varname, $s );
}
- /**
+ /**
* @access private
* @param string $varname Name of the textareabox.
* @param string $value Optional value (default empty)
"<textarea name=\"{$varname}\" rows=\"5\" cols=\"{$size}\">$value</textarea></label></div>\n";
}
- /**
+ /**
* @access private
* @param string $varname Name of the arraybox.
* @param integer $size Optional size of the textarea (default 20)
*/
function addItem() {}
- /**
+ /**
* Get item by hash
*/
function getItem( $hash ) {}
# Set the "default text"
# This concept is an odd property of the current DB schema, whereby each text item has a revision
- # associated with it. The default text is the text of the associated revision. There may, however,
+ # associated with it. The default text is the text of the associated revision. There may, however,
# be other revisions in the same object
function setText() {}
}
/** @todo document */
- function uncompress() {
+ function uncompress() {
if ( $this->mCompressed ) {
$this->mItems = unserialize( gzinflate( $this->mItems ) );
$this->mCompressed = false;
*/
-/**
+/**
* Because programmers assign to $wgHooks, we need to be very
* careful about its contents. So, there's a lot more error-checking
* in here than would normally be necessary.
/**
* Get the contents of a file by HTTP
- *
+ *
* if $timeout is 'default', $wgHTTPTimeout is used
*/
function wfGetHTTP( $url, $timeout = 'default' ) {
/**
* Class to represent an image
- *
+ *
* Provides methods to retrieve paths (physical, logical, URL),
* to generate thumbnails or for uploading.
* @package MediaWiki
}
}
- /**
+ /**
* Obsolete factory function, use constructor
*/
function newFromTitle( $title ) {
return $keys;
}
- /**
+ /**
* Try to load image metadata from memcached. Returns true on success.
*/
function loadFromCache() {
// Check if the key existed and belongs to this version of MediaWiki
if (!empty($cachedValues) && is_array($cachedValues)
&& isset($cachedValues['version']) && ( $cachedValues['version'] == MW_IMAGE_VERSION )
- && $cachedValues['fileExists'] && isset( $cachedValues['mime'] ) && isset( $cachedValues['metadata'] ) )
+ && $cachedValues['fileExists'] && isset( $cachedValues['mime'] ) && isset( $cachedValues['metadata'] ) )
{
if ( $wgUseSharedUploads && $cachedValues['fromShared']) {
# if this is shared file, we need to check if image
return $this->dataLoaded;
}
- /**
+ /**
* Save the image metadata to memcached
*/
function saveToCache() {
}
}
- /**
+ /**
* Load metadata from the file itself
*/
function loadFromFile() {
$this->fromSharedDirectory = false;
$gis = array();
- if (!$this->fileExists) wfDebug("$fname: ".$this->imagePath." not found locally!\n");
+ if (!$this->fileExists) wfDebug("$fname: ".$this->imagePath." not found locally!\n");
# If the file is not found, and a shared upload directory is used, look for it there.
if (!$this->fileExists && $wgUseSharedUploads && $wgSharedUploadDirectory) {
- # In case we're on a wgCapitalLinks=false wiki, we
- # capitalize the first letter of the filename before
+ # In case we're on a wgCapitalLinks=false wiki, we
+ # capitalize the first letter of the filename before
# looking it up in the shared repository.
$sharedImage = Image::newFromName( $wgContLang->ucfirst($this->name) );
$this->fileExists = $sharedImage && file_exists( $sharedImage->getFullPath(true) );
wfRestoreWarnings();
}
- wfDebug("$fname: ".$this->imagePath." loaded, ".$this->size." bytes, ".$this->mime.".\n");
+ wfDebug("$fname: ".$this->imagePath." loaded, ".$this->size." bytes, ".$this->mime.".\n");
}
else {
$gis[0]= 0; //width
$this->mime = NULL;
$this->type = MEDIATYPE_UNKNOWN;
- wfDebug("$fname: ".$this->imagePath." NOT FOUND!\n");
+ wfDebug("$fname: ".$this->imagePath." NOT FOUND!\n");
}
$this->width = $gis[0];
#NOTE: $gis[2] contains a code for the image type. This is no longer used.
- #NOTE: we have to set this flag early to avoid load() to be called
+ #NOTE: we have to set this flag early to avoid load() to be called
# be some of the functions below. This may lead to recursion or other bad things!
# as ther's only one thread of execution, this should be safe anyway.
$this->dataLoaded = true;
wfProfileOut( $fname );
}
- /**
+ /**
* Load image metadata from the DB
*/
function loadFromDB() {
$this->checkDBSchema($dbr);
- $row = $dbr->selectRow( 'image',
- array( 'img_size', 'img_width', 'img_height', 'img_bits',
+ $row = $dbr->selectRow( 'image',
+ array( 'img_size', 'img_width', 'img_height', 'img_bits',
'img_media_type', 'img_major_mime', 'img_minor_mime', 'img_metadata' ),
array( 'img_name' => $this->name ), $fname );
if ( $row ) {
$this->upgradeRow();
}
} elseif ( $wgUseSharedUploads && $wgSharedUploadDBname ) {
- # In case we're on a wgCapitalLinks=false wiki, we
- # capitalize the first letter of the filename before
+ # In case we're on a wgCapitalLinks=false wiki, we
+ # capitalize the first letter of the filename before
# looking it up in the shared repository.
$name = $wgContLang->ucfirst($this->name);
$row = $dbr->selectRow( "`$wgSharedUploadDBname`.{$wgSharedUploadDBprefix}image",
- array(
- 'img_size', 'img_width', 'img_height', 'img_bits',
+ array(
+ 'img_size', 'img_width', 'img_height', 'img_bits',
'img_media_type', 'img_major_mime', 'img_minor_mime', 'img_metadata' ),
array( 'img_name' => $name ), $fname );
if ( $row ) {
}
}
- /**
- * Metadata was loaded from the database, but the row had a marker indicating it needs to be
+ /**
+ * Metadata was loaded from the database, but the row had a marker indicating it needs to be
* upgraded from the 1.4 schema, which had no width, height, bits or type. Upgrade the row.
*/
function upgradeRow() {
wfDebug("$fname: upgrading ".$this->name." to 1.5 schema\n");
- $dbw->update( 'image',
- array(
+ $dbw->update( 'image',
+ array(
'img_width' => $this->width,
'img_height' => $this->height,
'img_bits' => $this->bits,
}
/**
- * Return the type of the media in the file.
+ * Return the type of the media in the file.
* Use the value returned by this function with the MEDIATYPE_xxx constants.
*/
function getMediaType() {
/**
* Checks if the file can be presented to the browser as a bitmap.
- *
- * Currently, this checks if the file is an image format
+ *
+ * Currently, this checks if the file is an image format
* that can be converted to a format
- * supported by all browsers (namely GIF, PNG and JPEG),
+ * supported by all browsers (namely GIF, PNG and JPEG),
* or if it is an SVG image and SVG conversion is enabled.
*
* @todo remember the result of this check.
if (!$mime || $mime==='unknown' || $mime==='unknown/unknown') return false;
- #if it's SVG, check if there's a converter enabled
+ #if it's SVG, check if there's a converter enabled
if ($mime === 'image/svg') {
global $wgSVGConverters, $wgSVGConverter;
if ( $mime === 'image/gif'
|| $mime === 'image/png'
|| $mime === 'image/jpeg' ) return true;
-
+
#image formats that can be converted to the above formats
if ($wgUseImageMagick) {
#convertable by ImageMagick (there are more...)
if ( $mime === 'image/vnd.wap.wbmp'
- || $mime === 'image/x-xbitmap'
- || $mime === 'image/x-xpixmap'
+ || $mime === 'image/x-xbitmap'
+ || $mime === 'image/x-xpixmap'
#|| $mime === 'image/x-icon' #file may be split into multiple parts
|| $mime === 'image/x-portable-anymap'
|| $mime === 'image/x-portable-bitmap'
if ( $mime === 'image/vnd.wap.wbmp'
|| $mime === 'image/x-xbitmap' ) return true;
}
-
+
return false;
}
/**
* Return true if the file is of a type that can't be directly
* rendered by typical browsers and needs to be re-rasterized.
- *
- * This returns true for everything but the bitmap types
+ *
+ * This returns true for everything but the bitmap types
* supported by all browsers, i.e. JPEG; GIF and PNG. It will
* also return true for any non-image formats.
*
if ( $mime === "image/gif"
|| $mime === "image/png"
|| $mime === "image/jpeg" ) return false;
-
+
return true;
}
/**
* Determines if this media file may be shown inline on a page.
- *
- * This is currently synonymous to canRender(), but this could be
+ *
+ * This is currently synonymous to canRender(), but this could be
* extended to also allow inline display of other media,
- * like flash animations or videos. If you do so, please keep in mind that
+ * like flash animations or videos. If you do so, please keep in mind that
* that could be a security risk.
*/
function allowInlineDisplay() {
* Determines if this media file is in a format that is unlikely to
* contain viruses or malicious content. It uses the global
* $wgTrustedMediaFormats list to determine if the file is safe.
- *
+ *
* This is used to show a warning on the description page of non-safe files.
* It may also be used to disallow direct [[media:...]] links to such files.
*
- * Note that this function will always return true if allowInlineDisplay()
+ * Note that this function will always return true if allowInlineDisplay()
* or isTrustedFile() is true for this file.
*/
function isSafeFile() {
function isTrustedFile() {
#this could be implemented to check a flag in the databas,
#look for signatures, etc
- return false;
+ return false;
}
/**
* Return the URL of an image, provided its name.
*
* @param string $name Name of the image, without the leading "Image:"
- * @param boolean $fromSharedDirectory Should this be in $wgSharedUploadPath?
+ * @param boolean $fromSharedDirectory Should this be in $wgSharedUploadPath?
* @return string URL of $name image
* @access public
* @static
if( $this->mustRender() ) {
$url.= '&r=1';
}
- } else {
+ } else {
$name = $this->thumbName( $width );
if($this->fromSharedDirectory) {
$base = '';
$path = $wgUploadPath;
}
if ( Image::isHashed( $this->fromSharedDirectory ) ) {
- $url = "{$base}{$path}/{$subdir}" .
+ $url = "{$base}{$path}/{$subdir}" .
wfGetHashPath($this->name, $this->fromSharedDirectory)
. $this->name.'/'.$name;
$url = wfUrlencode( $url );
* The thumbnail is stored on disk and is only computed if the thumbnail
* file does not exist OR if it is older than the image.
* Returns the URL.
- *
+ *
* Keeps aspect ratio of original image. If both width and height are
* specified, the generated image will be no bigger than width x height,
* and will also have correct aspect ratio.
# Don't thumbnail an image so big that it will fill hard drives and send servers into swap
# JPEG has the handy property of allowing thumbnailing without full decompression, so we make
# an exception for it.
- if ( $this->getMediaType() == MEDIATYPE_BITMAP &&
+ if ( $this->getMediaType() == MEDIATYPE_BITMAP &&
$this->getMimeType() !== 'image/jpeg' &&
- $this->width * $this->height > $wgMaxImageArea )
+ $this->width * $this->height > $wgMaxImageArea )
{
wfProfileOut( $fname );
return null;
$this->reallyRenderThumb( $thumbPath, $width, $height );
# Purge squid
- # This has to be done after the image is updated and present for all machines on NFS,
+ # This has to be done after the image is updated and present for all machines on NFS,
# or else the old version might be stored into the squid again
if ( $wgUseSquid ) {
if ( substr( $url, 0, 4 ) == 'http' ) {
} else {
$dst_image = imagecreate( $width, $height );
}
- imagecopyresampled( $dst_image, $src_image,
+ imagecopyresampled( $dst_image, $src_image,
0,0,0,0,
$width, $height, $this->width, $this->height );
call_user_func( $saveType, $dst_image, $thumbPath );
}
#
- # Check for zero-sized thumbnails. Those can be generated when
+ # Check for zero-sized thumbnails. Those can be generated when
# no disk space is available or some other error occurs
#
if( file_exists( $thumbPath ) ) {
imagejpeg( $dst_image, $thumbPath, 95 );
}
- /**
+ /**
* Get all thumbnail names previously generated for this image
*/
function getThumbnails( $shared = false ) {
$handle = @opendir( $dir );
if ( $handle ) {
- while ( false !== ( $file = readdir($handle) ) ) {
+ while ( false !== ( $file = readdir($handle) ) ) {
if ( $file{0} != '.' ) {
$files[] = $file;
}
}
#new fields must exist
- if ( !$db->fieldExists( 'image', 'img_media_type' )
+ if ( !$db->fieldExists( 'image', 'img_media_type' )
|| !$db->fieldExists( 'image', 'img_metadata' )
|| !$db->fieldExists( 'image', 'img_width' ) ) {
-
+
wfDebugDieBacktrace( 'Database schema not up to date, please run maintenance/update.php' );
}
}
$this->checkDBSchema($dbr);
- if ( $this->historyLine == 0 ) {// called for the first time, return line from cur
- $this->historyRes = $dbr->select( 'image',
+ if ( $this->historyLine == 0 ) {// called for the first time, return line from cur
+ $this->historyRes = $dbr->select( 'image',
array(
'img_size',
'img_description',
'img_user','img_user_text',
- 'img_timestamp',
+ 'img_timestamp',
'img_width',
'img_height',
"'' AS oi_archive_name"
- ),
+ ),
array( 'img_name' => $this->title->getDBkey() ),
$fname
);
- if ( 0 == wfNumRows( $this->historyRes ) ) {
- return FALSE;
+ if ( 0 == wfNumRows( $this->historyRes ) ) {
+ return FALSE;
}
} else if ( $this->historyLine == 1 ) {
- $this->historyRes = $dbr->select( 'oldimage',
+ $this->historyRes = $dbr->select( 'oldimage',
array(
'oi_size AS img_size',
'oi_description AS img_description',
),
array( 'oi_name' => $this->title->getDBkey() ),
$fname,
- array( 'ORDER BY' => 'oi_timestamp DESC' )
+ array( 'ORDER BY' => 'oi_timestamp DESC' )
);
}
$this->historyLine ++;
* @param boolean $fromSharedDirectory Return the path to the file
* in a shared repository (see $wgUseSharedRepository and related
* options in DefaultSettings.php) instead of a local one.
- *
+ *
*/
function getFullPath( $fromSharedRepository = false ) {
global $wgUploadDirectory, $wgSharedUploadDirectory;
} else {
if ( $license != '' ) {
$filedesc = $desc == '' ? '' : '== ' . wfMsg ( 'filedesc' ) . " ==\n" . $desc . "\n";
- $textdesc = $filedesc .
+ $textdesc = $filedesc .
'== ' . wfMsgForContent ( 'license' ) . " ==\n" . '{{' . $license . '}}' . "\n";
} else {
$textdesc = $desc;
'img_metadata' => $this->metadata,
),
$fname,
- 'IGNORE'
+ 'IGNORE'
);
$descTitle = $this->getTitle();
$purgeURLs = array();
if( $dbw->affectedRows() == 0 ) {
# Collision, this is an update of an image
# Insert previous contents into oldimage
- $dbw->insertSelect( 'oldimage', 'image',
+ $dbw->insertSelect( 'oldimage', 'image',
array(
'oi_name' => 'img_name',
'oi_archive_name' => $dbw->addQuotes( $oldver ),
/**
* Get an array of Title objects which are articles which use this image
* Also adds their IDs to the link cache
- *
+ *
* This is mostly copied from Title::getLinksTo()
*/
function getLinksTo( $options = '' ) {
* @return array
*/
function retrieveExifData() {
- if ( $this->getMimeType() !== "image/jpeg" )
+ if ( $this->getMimeType() !== "image/jpeg" )
return array();
$exif = new Exif( $this->imagePath );
$this->checkDBSchema($dbw);
- $dbw->update( 'image',
+ $dbw->update( 'image',
array( 'img_metadata' => $this->metadata ),
array( 'img_name' => $this->name ),
$fname
* The result is an absolute path.
*
* This function is called from thumb.php before Setup.php is included
- *
+ *
* @param string $fname file name of the image file
* @access public
*/
* The result is an absolute path.
*
* This function is called from thumb.php before Setup.php is included
- *
+ *
* @param string $fname file name of the original image file
* @param string $subdir (optional) subdirectory of the image upload directory that should be used for storing the thumbnail. Default is 'thumb'
* @param boolean $shared (optional) use the shared upload directory
if ( !is_dir( $base ) ) {
$oldumask = umask(0);
- @mkdir( $base, 0777 );
+ @mkdir( $base, 0777 );
umask( $oldumask );
}
- if ( ! is_dir( $dir ) ) {
+ if ( ! is_dir( $dir ) ) {
$oldumask = umask(0);
- @mkdir( $dir, 0777 );
+ @mkdir( $dir, 0777 );
umask( $oldumask );
}
} else {
* The result is an absolute path.
*
* This function is called from thumb.php before Setup.php is included
- *
+ *
* @param string $fname file name of the thumbnail file, including file size prefix
* @param string $subdir (optional) subdirectory of the image upload directory that should be used for storing the old version. Default is 'archive'
* @param boolean $shared (optional) use the shared upload directory (only relevant for other functions which call this one)
/**
* Returns the image URL of an image's old version
- *
+ *
* @param string $fname file name of the image file
* @param string $subdir (optional) subdirectory of the image upload directory that is used by the old version. Default is 'archive'
* @access public
/**
* Image gallery
- *
+ *
* Add images to the gallery using add(), then render that list to HTML using toHTML().
*
* @package MediaWiki
{
var $mImages, $mShowBytes, $mShowFilename;
- /**
+ /**
* Create a new image gallery object.
*/
function ImageGallery( ) {
/**
* Enable/Disable showing of the file size of an image in the gallery.
* Enabled by default.
- *
+ *
* @param boolean $f set to false to disable
*/
function setShowBytes( $f ) {
/**
* Enable/Disable showing of the filename of an image in the gallery.
* Enabled by default.
- *
+ *
* @param boolean $f set to false to disable
*/
function setShowFilename( $f ) {
/**
* Return a HTML representation of the image gallery
- *
+ *
* For each image in the gallery, display
* - a thumbnail
* - the image name
}
/** @todo document */
- function makeImageLinkObj( $nt, $label, $alt, $align = '', $width = false, $height = false, $framed = false,
- $thumb = false, $manual_thumb = '' )
+ function makeImageLinkObj( $nt, $label, $alt, $align = '', $width = false, $height = false, $framed = false,
+ $thumb = false, $manual_thumb = '' )
{
global $wgContLang, $wgUser, $wgThumbLimits;
if ( $img->exists() ) {
$width = $img->getWidth();
$height = $img->getHeight();
- }
+ }
if ( 0 == $width || 0 == $height ) {
$width = $height = 200;
}
global $wgJsMimeType;
$title = wfMsgForContent('toc') ;
return
- '<table id="toc" class="toc" summary="' . $title .'"><tr><td>'
+ '<table id="toc" class="toc" summary="' . $title .'"><tr><td>'
. '<div id="toctitle"><h2>' . $title . "</h2></div>\n"
. $toc
. "</ul>\n</td></tr></table>\n"
return "<div class=\"editsection\" style=\"float:$farside;margin-$nearside:5px;\">[".$url."]</div>";
}
- /**
+ /**
* Split a link trail, return the "inside" portion and the remainder of the trail
* as a two-element array
- *
+ *
* @static
*/
function splitTrail( $trail ) {
# Page links
$existing = $this->getExistingLinks();
- $this->incrTableUpdate( 'pagelinks', 'pl', $this->getLinkDeletions( $existing ),
+ $this->incrTableUpdate( 'pagelinks', 'pl', $this->getLinkDeletions( $existing ),
$this->getLinkInsertions( $existing ) );
# Template links
function invalidateCategories( $cats ) {
$fname = 'LinksUpdate::invalidateCategories';
if ( count( $cats ) ) {
- $this->mDb->update( 'page', array( 'page_touched' => $this->mDb->timestamp() ),
+ $this->mDb->update( 'page', array( 'page_touched' => $this->mDb->timestamp() ),
array(
'page_namespace' => NS_CATEGORY,
'page_title IN (' . $this->mDb->makeList( array_keys( $cats ) ) . ')'
- ), $fname
+ ), $fname
);
}
}
/**
* Make a WHERE clause from a 2-d NS/dbkey array
- *
+ *
* @param array $arr 2-d array indexed by namespace and DB key
* @param string $prefix Field name prefix, without the underscore
*/
function getLinkInsertions( $existing = array() ) {
$arr = array();
foreach( $this->mLinks as $ns => $dbkeys ) {
- # array_diff_key() was introduced in PHP 5.1, there is a compatibility function
+ # array_diff_key() was introduced in PHP 5.1, there is a compatibility function
# in GlobalFunctions.php
$diffs = isset( $existing[$ns] ) ? array_diff_key( $dbkeys, $existing[$ns] ) : $dbkeys;
foreach ( $diffs as $dbk => $id ) {
$arr[] = array(
'pl_from' => $this->mId,
'pl_namespace' => $ns,
- 'pl_title' => $dbk
+ 'pl_title' => $dbk
);
}
}
$arr[] = array(
'tl_from' => $this->mId,
'tl_namespace' => $ns,
- 'tl_title' => $dbk
+ 'tl_title' => $dbk
);
}
}
/**
* Get an array of category insertions
- * @param array $existing Array mapping existing category names to sort keys. If both
+ * @param array $existing Array mapping existing category names to sort keys. If both
* match a link in $this, the link will be omitted from the output
* @access private
*/
*/
function getExistingLinks() {
$fname = 'LinksUpdate::getExistingLinks';
- $res = $this->mDb->select( 'pagelinks', array( 'pl_namespace', 'pl_title' ),
+ $res = $this->mDb->select( 'pagelinks', array( 'pl_namespace', 'pl_title' ),
array( 'pl_from' => $this->mId ), $fname, $this->mOptions );
$arr = array();
while ( $row = $this->mDb->fetchObject( $res ) ) {
*/
function getExistingTemplates() {
$fname = 'LinksUpdate::getExistingTemplates';
- $res = $this->mDb->select( 'templatelinks', array( 'tl_namespace', 'tl_title' ),
+ $res = $this->mDb->select( 'templatelinks', array( 'tl_namespace', 'tl_title' ),
array( 'tl_from' => $this->mId ), $fname, $this->mOptions );
$arr = array();
while ( $row = $this->mDb->fetchObject( $res ) ) {
*/
function getExistingImages() {
$fname = 'LinksUpdate::getExistingImages';
- $res = $this->mDb->select( 'imagelinks', array( 'il_to' ),
+ $res = $this->mDb->select( 'imagelinks', array( 'il_to' ),
array( 'il_from' => $this->mId ), $fname, $this->mOptions );
$arr = array();
while ( $row = $this->mDb->fetchObject( $res ) ) {
* Copyright (C) 2005 Brion Vibber <brion@pobox.com>
* Portions based on Convert::BinHex by Eryq et al
* http://www.mediawiki.org/
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* This class encapsulates "magic words" such as #redirect, __NOTOC__, etc.
* Usage:
* if (MagicWord::get( MAG_REDIRECT )->match( $text ) )
- *
- * Possible future improvements:
+ *
+ * Possible future improvements:
* * Simultaneous searching for a number of magic words
* * $wgMagicWords in shared memory
*
- * Please avoid reading the data out of one of these objects and then writing
+ * Please avoid reading the data out of one of these objects and then writing
* special case code. If possible, add another match()-like function here.
*
* @package MediaWiki
$this->mRegex = "/{$this->mBaseRegex}/{$case}";
$this->mRegexStart = "/^(?:{$this->mBaseRegex})/{$case}";
$this->mVariableRegex = str_replace( "\\$1", "(.*?)", $this->mRegex );
- $this->mVariableStartToEndRegex = str_replace( "\\$1", "(.*?)",
+ $this->mVariableStartToEndRegex = str_replace( "\\$1", "(.*?)",
"/^(?:{$this->mBaseRegex})$/{$case}" );
}
function getVariableRegex() {
if ( $this->mVariableRegex == '' ) {
$this->initRegex();
- }
+ }
return $this->mVariableRegex;
}
function getVariableStartToEndRegex() {
if ( $this->mVariableStartToEndRegex == '' ) {
$this->initRegex();
- }
+ }
return $this->mVariableStartToEndRegex;
}
}
/**
- * Returns true if the last call to replace() or substituteCallback()
+ * Returns true if the last call to replace() or substituteCallback()
* returned a modified text, otherwise false.
*/
function getWasModified(){
* This method uses the php feature to do several replacements at the same time,
* thereby gaining some efficiency. The result is placed in the out variable
* $result. The return value is true if something was replaced.
- * @static
+ * @static
**/
function replaceMultiple( $magicarr, $subject, &$result ){
$search = array();
* Takes LaTeX fragments, sends them to a helper program (texvc) for rendering
* to rasterized PNG and HTML and MathML approximations. An appropriate
* rendering form is picked and returned.
- *
+ *
* by Tomasz Wegrzanowski, with additions by Brion Vibber (2003, 2004)
*
* @package MediaWiki
if( function_exists( 'is_executable' ) && !is_executable( $wgTexvc ) ) {
return $this->_error( 'math_notexvc' );
}
- $cmd = $wgTexvc . ' ' .
+ $cmd = $wgTexvc . ' ' .
escapeshellarg( $wgTmpDirectory ).' '.
escapeshellarg( $wgTmpDirectory ).' '.
escapeshellarg( $this->tex ).' '.
if ( wfIsWindows() ) {
# Invoke it within cygwin sh, because texvc expects sh features in its default shell
$cmd = 'sh -c ' . wfEscapeShellArg( $cmd );
- }
+ }
wfDebug( "TeX: $cmd\n" );
$contents = `$cmd`;
$dbw =& wfGetDB( DB_MASTER );
$dbw->replace( 'math', array( 'math_inputhash' ),
- array(
- 'math_inputhash' => $md5_sql,
+ array(
+ 'math_inputhash' => $md5_sql,
'math_outputhash' => $outmd5_sql,
'math_html_conservativeness' => $this->conservativeness,
'math_html' => $this->html,
'math_mathml' => $this->mathml,
- ), $fname, array( 'IGNORE' )
+ ), $fname, array( 'IGNORE' )
);
}
$this->md5 = md5( $this->tex );
$dbr =& wfGetDB( DB_SLAVE );
- $rpage = $dbr->selectRow( 'math',
+ $rpage = $dbr->selectRow( 'math',
array( 'math_outputhash','math_html_conservativeness','math_html','math_mathml' ),
array( 'math_inputhash' => pack("H32", $this->md5)), # Binary packed, not hex
$fname
wfProfileOut( $fname );
}
- /**
+ /**
* Try to load the cache from a local file
*/
function loadFromLocal( $hash ) {
$this->mCache = $this->mMemc->get( $this->mMemcKey );
# Save to local cache
- if ( $wgLocalMessageCache !== false ) {
+ if ( $wgLocalMessageCache !== false ) {
$serialized = serialize( $this->mCache );
if ( !$hash ) {
$hash = md5( $serialized );
}
# Save to local cache
- if ( $wgLocalMessageCache !== false ) {
+ if ( $wgLocalMessageCache !== false ) {
$serialized = serialize( $this->mCache );
$hash = md5( $serialized );
$this->mMemc->set( "{$this->mMemcKey}-hash", $hash, $this->mExpiry );
}
# Negative caching
- # Go through the language array and the extension array and make a note of
+ # Go through the language array and the extension array and make a note of
# any keys missing from the cache
foreach ( $wgAllMessagesEn as $key => $value ) {
$uckey = $wgLang->ucfirst( $key );
$this->mMemc->set( $this->mMemcKey, $this->mCache, $this->mExpiry );
# Save to local cache
- if ( $wgLocalMessageCache !== false ) {
+ if ( $wgLocalMessageCache !== false ) {
$serialized = serialize( $this->mCache );
$hash = md5( $serialized );
$this->mMemc->set( "{$this->mMemcKey}-hash", $hash, $this->mExpiry );
/** Defines a set of well known mime types
* This is used as a fallback to mime.types files.
- * An extensive list of well known mime types is provided by
+ * An extensive list of well known mime types is provided by
* the file mime.types in the includes directory.
*/
define('MM_WELL_KNOWN_MIME_TYPES',<<<END_STRING
image/svg+xml svg
image/tiff tiff tif
text/plain txt
-text/html html htm
+text/html html htm
video/ogg ogm ogg
video/mpeg mpg mpeg
END_STRING
/** Defines a set of well known mime info entries
* This is used as a fallback to mime.info files.
- * An extensive list of well known mime types is provided by
+ * An extensive list of well known mime types is provided by
* the file mime.info in the includes directory.
*/
define('MM_WELL_KNOWN_MIME_INFO', <<<END_STRING
END_STRING
);
-#note: because this file is possibly included by a function,
+#note: because this file is possibly included by a function,
#we need to access the global scope explicitely!
global $wgLoadFileinfoExtension;
-if ($wgLoadFileinfoExtension) {
+if ($wgLoadFileinfoExtension) {
if(!extension_loaded('fileinfo')) dl('fileinfo.' . PHP_SHLIB_SUFFIX);
}
-/** Implements functions related to mime types such as detection and mapping to
+/** Implements functions related to mime types such as detection and mapping to
* file extension,
*
* Instances of this class are stateles, there only needs to be one global instance
-* of MimeMagic. Please use wfGetMimeMagic to get that instance.
+* of MimeMagic. Please use wfGetMimeMagic to get that instance.
* @package MediaWiki
*/
class MimeMagic {
* Mapping of media types to arrays of mime types.
* This is used by findMediaType and getMediaType, respectively
*/
- var $mMediaTypes= NULL;
+ var $mMediaTypes= NULL;
/** Map of mime type aliases
*/
/** map of mime types to file extensions (as a space seprarated list)
*/
- var $mMimeToExt= NULL;
+ var $mMimeToExt= NULL;
/** map of file extensions types to mime types (as a space seprarated list)
*/
- var $mExtToMime= NULL;
+ var $mExtToMime= NULL;
- /** Initializes the MimeMagic object. This is called by wfGetMimeMagic when instantiation
+ /** Initializes the MimeMagic object. This is called by wfGetMimeMagic when instantiation
* the global MimeMagic singleton object.
*
* This constructor parses the mime.types and mime.info files and build internal mappings.
/** tests if the extension matches the given mime type.
- * returns true if a match was found, NULL if the mime type is unknown,
+ * returns true if a match was found, NULL if the mime type is unknown,
* and false if the mime type is known but no matches where found.
*/
function isMatchingExtension($extension,$mime) {
*/
function isPHPImageType( $mime ) {
#as defined by imagegetsize and image_type_to_mime
- static $types = array(
- 'image/gif', 'image/jpeg', 'image/png',
+ static $types = array(
+ 'image/gif', 'image/jpeg', 'image/png',
'image/x-bmp', 'image/xbm', 'image/tiff',
- 'image/jp2', 'image/jpeg2000', 'image/iff',
+ 'image/jp2', 'image/jpeg2000', 'image/iff',
'image/xbm', 'image/x-xbitmap',
- 'image/vnd.wap.wbmp', 'image/vnd.xiff',
+ 'image/vnd.wap.wbmp', 'image/vnd.xiff',
'image/x-photoshop',
'application/x-shockwave-flash',
- );
+ );
return in_array( $mime, $types );
}
$mime==="text/xml" ||
$mime==="application/xml") {
- if (substr($head,0,5)=="<?xml") $xml_type= "ASCII";
- elseif (substr($head,0,8)=="\xef\xbb\xbf<?xml") $xml_type= "UTF-8";
- elseif (substr($head,0,10)=="\xfe\xff\x00<\x00?\x00x\x00m\x00l") $xml_type= "UTF-16BE";
- elseif (substr($head,0,10)=="\xff\xfe<\x00?\x00x\x00m\x00l\x00") $xml_type= "UTF-16LE";
+ if (substr($head,0,5)=="<?xml") $xml_type= "ASCII";
+ elseif (substr($head,0,8)=="\xef\xbb\xbf<?xml") $xml_type= "UTF-8";
+ elseif (substr($head,0,10)=="\xfe\xff\x00<\x00?\x00x\x00m\x00l") $xml_type= "UTF-16BE";
+ elseif (substr($head,0,10)=="\xff\xfe<\x00?\x00x\x00m\x00l\x00") $xml_type= "UTF-16LE";
if ($xml_type) {
if ($xml_type!=="UTF-8" && $xml_type!=="ASCII") $head= iconv($xml_type,"ASCII//IGNORE",$head);
$script_type= NULL;
#detect by shebang
- if (substr($head,0,2)=="#!") $script_type= "ASCII";
- elseif (substr($head,0,5)=="\xef\xbb\xbf#!") $script_type= "UTF-8";
- elseif (substr($head,0,7)=="\xfe\xff\x00#\x00!") $script_type= "UTF-16BE";
- elseif (substr($head,0,7)=="\xff\xfe#\x00!") $script_type= "UTF-16LE";
+ if (substr($head,0,2)=="#!") $script_type= "ASCII";
+ elseif (substr($head,0,5)=="\xef\xbb\xbf#!") $script_type= "UTF-8";
+ elseif (substr($head,0,7)=="\xfe\xff\x00#\x00!") $script_type= "UTF-16BE";
+ elseif (substr($head,0,7)=="\xff\xfe#\x00!") $script_type= "UTF-16LE";
if ($script_type) {
if ($script_type!=="UTF-8" && $script_type!=="ASCII") $head= iconv($script_type,"ASCII//IGNORE",$head);
*/
if( !$xml_type && !$script_type ) {
- if( ( strpos( $head, '<?php' ) !== false ) ||
+ if( ( strpos( $head, '<?php' ) !== false ) ||
( strpos( $head, '<? ' ) !== false ) ||
( strpos( $head, "<?\n" ) !== false ) ||
( strpos( $head, "<?\t" ) !== false ) ||
( strpos( $head, "<?=" ) !== false ) ||
- ( strpos( $head, "<\x00?\x00p\x00h\x00p" ) !== false ) ||
+ ( strpos( $head, "<\x00?\x00p\x00h\x00p" ) !== false ) ||
( strpos( $head, "<\x00?\x00 " ) !== false ) ||
( strpos( $head, "<\x00?\x00\n" ) !== false ) ||
( strpos( $head, "<\x00?\x00\t" ) !== false ) ||
( strpos( $head, "<\x00?\x00=" ) !== false ) ) {
-
+
$mime= "application/x-php";
}
}
return $mime;
}
- /** Internal mime type detection, please use guessMimeType() for application code instead.
+ /** Internal mime type detection, please use guessMimeType() for application code instead.
* Detection is done using an external program, if $wgMimeDetectorCommand is set.
- * Otherwise, the fileinfo extension and mime_content_type are tried (in this order), if they are available.
- * If the dections fails and $useExt is true, the mime type is guessed from the file extension, using guessTypesForExtension.
+ * Otherwise, the fileinfo extension and mime_content_type are tried (in this order), if they are available.
+ * If the dections fails and $useExt is true, the mime type is guessed from the file extension, using guessTypesForExtension.
* If the mime type is still unknown, getimagesize is used to detect the mime type if the file is an image.
* If no mime type can be determined, this function returns "unknown/unknown".
*
# see http://pecl.php.net/package/fileinfo
# This must be compiled into PHP
#
- # finfo is the official replacement for the deprecated
+ # finfo is the official replacement for the deprecated
# mime_content_type function, see below.
#
# If you may need to load the fileinfo extension at runtime, set
}
else wfDebug("$fname: finfo_open failed on ".FILEINFO_MIME."!\n");
}
- else if (function_exists("mime_content_type")) {
+ else if (function_exists("mime_content_type")) {
# NOTE: this function is available since PHP 4.3.0, but only if
# PHP was compiled with --with-mime-magic or, before 4.3.2, with --enable-mime-magic.
}
else wfDebug("$fname: no magic mime detector found!\n");
- if ($m) {
+ if ($m) {
#normalize
$m= preg_replace('![;, ].*$!','',$m); #strip charset, etc
$m= trim($m);
$m= $this->guessTypesForExtension($e);
- #TODO: if $notAnImage is set, do not trust the file extension if
- # the results is one of the image types that should have been recognized
+ #TODO: if $notAnImage is set, do not trust the file extension if
+ # the results is one of the image types that should have been recognized
# by getimagesize
if ($m) {
* Determine the media type code for a file, using its mime type, name and possibly
* its contents.
*
- * This function relies on the findMediaType(), mapping extensions and mime
+ * This function relies on the findMediaType(), mapping extensions and mime
* types to media types.
*
- * @todo analyse file if need be
+ * @todo analyse file if need be
* @todo look at multiple extension, separately and together.
*
- * @param string $path full path to the image file, in case we have to look at the contents
+ * @param string $path full path to the image file, in case we have to look at the contents
* (if null, only the mime type is used to determine the media type code).
* @param string $mime mime type. If null it will be guessed using guessMimeType.
- *
+ *
* @return (int?string?) a value to be used with the MEDIATYPE_xxx constants.
*/
function getMediaType($path=NULL,$mime=NULL) {
}
/** returns a media code matching the given mime type or file extension.
- * File extensions are represented by a string starting with a dot (.) to
+ * File extensions are represented by a string starting with a dot (.) to
* distinguish them from mime types.
*
* This funktion relies on the mapping defined by $this->mMediaTypes
$this->mBodytext = '';
$loginpage = Title::makeTitle(NS_SPECIAL, 'Userlogin');
$sk = $wgUser->getSkin();
- $loginlink = $sk->makeKnownLinkObj($loginpage, wfMsg('loginreqlink'),
+ $loginlink = $sk->makeKnownLinkObj($loginpage, wfMsg('loginreqlink'),
'returnto=' . htmlspecialchars($wgTitle->getPrefixedDBkey()));
$this->addHTML( wfMsgHtml( 'loginreqpagetext', $loginlink ) );
wfRunHooks( 'ParserClearState', array( &$this ) );
}
- /**
+ /**
* Convert wikitext to HTML
* Do not call this function recursively.
*
$imagesfrom = $this->mOptions->getAllowExternalImagesFrom();
$imagesexception = !empty($imagesfrom);
$text = false;
- if ( $this->mOptions->getAllowExternalImages()
+ if ( $this->mOptions->getAllowExternalImages()
|| ( $imagesexception && strpos( $url, $imagesfrom ) === 0 ) ) {
if ( preg_match( EXT_IMAGE_REGEX, $url ) ) {
# Image found
# cloak any absolute URLs inside the image markup, so replaceExternalLinks() won't touch them
$s .= $prefix . $this->armorLinks( $this->makeImage( $nt, $text ) ) . $trail;
- $this->mOutput->addImage( $nt->getDBkey() );
+ $this->mOutput->addImage( $nt->getDBkey() );
wfProfileOut( "$fname-image" );
continue;
'title' => '',
'parts' => null);
- # count openning brace characters
+ # count openning brace characters
while ($i+1 < strlen($text) && $text[$i+1] == $piece['brace']) {
$piece['count']++;
$i++;
}
- $piece['startAt'] = $i+1;
- $piece['partStart'] = $i+1;
+ $piece['startAt'] = $i+1;
+ $piece['partStart'] = $i+1;
# we need to add to stack only if openning brace count is enough for any given rule
foreach ($rule['cb'] as $cnt => $fn) {
}
/**
- * Set a flag in the output object indicating that the content is dynamic and
+ * Set a flag in the output object indicating that the content is dynamic and
* shouldn't be cached.
*/
function disableCache() {
function addImage( $name ) { $this->mImages[$name] = 1; }
function addLanguageLink( $t ) { $this->mLanguageLinks[] = $t; }
- function addLink( $title, $id ) {
+ function addLink( $title, $id ) {
$ns = $title->getNamespace();
$dbk = $title->getDBkey();
if ( !isset( $this->mLinks[$ns] ) ) {
$this->mLinks[$ns] = array();
}
- $this->mLinks[$ns][$dbk] = $id;
+ $this->mLinks[$ns][$dbk] = $id;
}
function addTemplate( $title, $id ) {
-<?php
+<?php
/**
- *
+ *
* @package MediaWiki
* @subpackage Experimental
*/
/**
* Constructor
- *
+ *
* @access public
*/
function ParserXML() {
-<?php
+<?php
/**
* Simple profiler base class
* @package MediaWiki
-<?php
+<?php
/**
* This file is only included if profiling is enabled
* @package MediaWiki
$rc = $dbw->affectedRows();
if ($rc == 0) {
- $dbw->insert('profiling', array ('pf_name' => $name, 'pf_count' => $eventCount,
+ $dbw->insert('profiling', array ('pf_name' => $name, 'pf_count' => $eventCount,
'pf_time' => $timeSum, 'pf_server' => $wguname['nodename'] ), $fname, array ('IGNORE'));
}
// When we upgrade to mysql 4.1, the insert+update
// can be merged into just a insert with this construct added:
// "ON DUPLICATE KEY UPDATE ".
// "pf_count=pf_count + VALUES(pf_count), ".
- // "pf_time=pf_time + VALUES(pf_time)";
+ // "pf_time=pf_time + VALUES(pf_time)";
}
/**
/**
* Copyright (C) 2005 Brion Vibber <brion@pobox.com>
* http://www.mediawiki.org/
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
return $ip;
}
-/**
+/**
* Given an IP address in dotted-quad notation, returns an unsigned integer.
* Like ip2long() except that it actually works and has a consistent error return value.
*/
}
/**
- * Determine if an IP address really is an IP address, and if it is public,
+ * Determine if an IP address really is an IP address, and if it is public,
* i.e. not RFC 1918 or similar
*/
function wfIsIPPublic( $ip ) {
if ( !$wgProxyList ) {
return false;
- }
+ }
wfProfileIn( $fname );
if ( !is_array( $wgProxyList ) ) {
* Copyright (C) 2004 Gabriel Wicke <gw@wikidev.net>
* http://www.aulinx.de/
* Based on PageHistory and SpecialExport
- *
+ *
* License: GPL (http://www.gnu.org/copyleft/gpl.html)
*
* @author Gabriel Wicke <gw@wikidev.net>
$this->mArticle =& $article;
$this->mTitle =& $article->mTitle;
- if ( $request === false ) {
+ if ( $request === false ) {
$this->mRequest =& $wgRequest;
} else {
$this->mRequest = $request;
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* Allows some... latitude.
* Used in Sanitizer::fixTagAttributes and Sanitizer::decodeTagAttributes
*/
-$attrib = '[A-Za-z0-9]';
+$attrib = '[A-Za-z0-9]';
$space = '[\x09\x0a\x0d\x20]';
define( 'MW_ATTRIBS_REGEX',
"/(?:^|$space)($attrib+)
* To avoid leaving blank lines, when a comment is both preceded
* and followed by a newline (ignoring spaces), trim leading and
* trailing spaces and one of the newlines.
- *
+ *
* @access private
* @param string $text
* @return string
}
# Unquoted attribute
- # Since we quote this later, this can be anything distinguishable
+ # Since we quote this later, this can be anything distinguishable
# from the end of the attribute
$pairs = array();
if( !preg_match_all(
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>, Domas Mituzas <domas.mituzas@gmail.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
$searchindex = $this->db->tableName( 'searchindex' );
return 'SELECT cur_id, cur_namespace, cur_title, cur_text ' .
"FROM $cur,$searchindex " .
- 'WHERE cur_id=si_page AND ' .
+ 'WHERE cur_id=si_page AND ' .
" $field @@ to_tsquery ('$match') " ;
}
<?php
/**
- * This is a class used to hold configuration settings, particularly for multi-wiki sites.
+ * This is a class used to hold configuration settings, particularly for multi-wiki sites.
*
* @package MediaWiki
*/
/**
- * The include paths change after this file is included from commandLine.inc,
+ * The include paths change after this file is included from commandLine.inc,
* meaning that require_once() fails to detect that it is including the same
* file again. We use DIY C-style protection as a workaround.
*/
$localSettings = array();
foreach ( $this->settings as $varname => $stuff ) {
$value = $this->get( $varname, $wiki, $suffix, $params );
- if ( !is_null( $value ) ) {
+ if ( !is_null( $value ) ) {
$localSettings[$varname] = $value;
}
}
global $wgUser, $wgTitle, $wgContLang, $action;
if( $wgUser->isAllowed( 'deletedhistory' ) &&
(($wgTitle->getArticleId() == 0) || ($action == "history")) &&
- ($n = $wgTitle->isDeleted() ) )
+ ($n = $wgTitle->isDeleted() ) )
{
if ( $wgUser->isAllowed( 'delete' ) ) {
$msg = 'thisisdeleted';
$personal_urls['logout'] = array(
'text' => wfMsg('userlogout'),
'href' => $this->makeSpecialUrl( 'Userlogout',
- $wgTitle->getNamespace() === NS_SPECIAL && $wgTitle->getText() === 'Preferences' ? '' : "returnto={$this->thisurl}"
+ $wgTitle->getNamespace() === NS_SPECIAL && $wgTitle->getText() === 'Preferences' ? '' : "returnto={$this->thisurl}"
)
);
} else {
$text = wfMsg( $message );
if ( $text == "<$message>" ) {
- $text = html_entity_decode($text);
+ $text = html_entity_decode($text);
}
return array(
'href' => ''
);
} else {
- if ( !( $revid == 0 ) )
+ if ( !( $revid == 0 ) )
$nav_urls['permalink'] = array(
'text' => wfMsg( 'permalink' ),
'href' => $wgTitle->getLocalURL( "oldid=$revid" )
<td align='right'>" . wfMsgHtml($this->nsfromMsg) . "</td>
<td align='left'><label for='nsfrom'>$frombox</label></td>
</tr>
- <tr>
+ <tr>
<td align='right'><label for='namespace'>" . wfMsgHtml('namespace') . "</label></td>
<td align='left'>
$namespaceselect $submitbutton
# Create block
# Note: for a user block, ipb_address is only for display purposes
- $ban = new Block( $this->BlockAddress, $userId, $wgUser->getID(),
+ $ban = new Block( $this->BlockAddress, $userId, $wgUser->getID(),
$this->BlockReason, wfTimestampNow(), 0, $expiry );
if (wfRunHooks('BlockIp', array(&$ban, &$wgUser))) {
# Make log entry
$log = new LogPage( 'block' );
- $log->addEntry( 'block', Title::makeTitle( NS_USER, $this->BlockAddress ),
+ $log->addEntry( 'block', Title::makeTitle( NS_USER, $this->BlockAddress ),
$this->BlockReason, $expirestr );
# Report to the user
if ( !$wgBlockOpenProxies || $_REQUEST['ip'] != md5( $ip . $wgProxyKey ) ) {
$wgOut->addWikiText( wfMsg( "disabled" ) );
return;
- }
+ }
$blockerName = wfMsg( "proxyblocker" );
$reason = wfMsg( "proxyblockreason" );
$NScat = NS_CATEGORY;
$dbr =& wfGetDB( DB_SLAVE );
$categorylinks = $dbr->tableName( 'categorylinks' );
- $s= "SELECT 'Categories' as type,
+ $s= "SELECT 'Categories' as type,
{$NScat} as namespace,
cl_to as title,
1 as value,
function getSQL() {
$dbr =& wfGetDB( DB_SLAVE );
extract( $dbr->tableNames( 'page', 'pagelinks' ) );
- return "SELECT 'Deadendpages' as type, page_namespace AS namespace, page_title as title, page_title AS value " .
+ return "SELECT 'Deadendpages' as type, page_namespace AS namespace, page_title as title, page_title AS value " .
"FROM $page LEFT JOIN $pagelinks ON page_id = pl_from " .
"WHERE pl_from IS NULL " .
"AND page_namespace = 0 " .
* Constructor
*/
function wfSpecialDeadendpages() {
-
+
list( $limit, $offset ) = wfCheckLimits();
$depp = new DeadendPagesPage();
-
+
return $depp->doQuery( $offset, $limit );
}
." pa.page_title AS title, la.pl_from AS value"
." FROM {$pagelinks} AS lb, {$page} AS pa, {$pagelinks} AS la"
." WHERE lb.pl_namespace = $dns AND lb.pl_title = $dtitle" # disambiguation template
- ." AND pa.page_id = lb.pl_from"
+ ." AND pa.page_id = lb.pl_from"
." AND pa.page_namespace = la.pl_namespace"
." AND pa.page_title = la.pl_title";
return $sql;
*/
/**
- *
+ *
*/
require_once('QueryPage.php');
$wgOut->setPagetitle( wfMsg( "emailpage" ) );
$wgOut->addWikiText( wfMsg( "emailpagetext" ) );
- if ( $this->subject === "" ) {
- $this->subject = wfMsg( "defemailsubject" );
+ if ( $this->subject === "" ) {
+ $this->subject = wfMsg( "defemailsubject" );
}
$emf = wfMsg( "emailfrom" );
function doSubmit() {
global $wgOut, $wgUser;
-
+
$to = new MailAddress( $this->target );
$from = new MailAddress( $wgUser );
$subject = $this->subject;
<?php
# Copyright (C) 2003 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
$wgOut->redirect( $this->location );
} else {
$this->switchForm();
- $this->editGroupForm( $this->mId );
+ $this->editGroupForm( $this->mId );
}
} elseif ( $this->mAdd ) {
if ( $this->mPosted ) {
$wgOut->redirect( $this->location );
} else {
$this->switchForm();
- $this->editGroupForm( );
+ $this->editGroupForm( );
}
} else {
$this->showAllGroups();
// save stuff
$g->setName($this->mNewName);
$g->setDescription($this->mDescription);
- if( is_array( $this->mRights ) ) {
- $g->setRights( implode(',',$this->mRights) );
+ if( is_array( $this->mRights ) ) {
+ $g->setRights( implode(',',$this->mRights) );
}
$g->save();
} else {
if ( $this->mOldName != $this->mNewName ) {
// Abbreviated action name, must be less than 10 bytes
- $log->addEntry( 'rngroup', $dummyTitle, '', array( Group::getMessageForContent( $this->mOldName ),
+ $log->addEntry( 'rngroup', $dummyTitle, '', array( Group::getMessageForContent( $this->mOldName ),
$g->getNameForContent() ) );
} else {
$log->addEntry( 'chgroup', $dummyTitle, '', array( $g->getNameForContent() ) );
foreach ( $groups as $group ) {
$s .= "|-\n| " . $group->getId() . ' || ' .
$group->getExpandedName() . ' || ' .
- $group->getExpandedDescription() . ' || '.
+ $group->getExpandedDescription() . ' || '.
// Insert spaces to make it wrap
str_replace( ',', ', ', $group->getRights() ) . "\n";
}
* MediaWiki page data importer
* Copyright (C) 2003,2005 Brion Vibber <brion@pobox.com>
* http://www.mediawiki.org/
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
}
/**
- *
+ *
* @package MediaWiki
* @subpackage SpecialPage
*/
# Domas Mituzas, Ashar Voultoiz, Jens Frank, Zhengzhu.
#
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
list( $limit, $offset ) = wfCheckLimits();
$lpp = new LongPagesPage();
-
+
$lpp->doQuery( $offset, $limit );
}
list( $limit, $offset ) = wfCheckLimits();
- $sql = "SELECT page_namespace,page_title FROM page,links " .
- "WHERE l_from=l_to AND l_to=page_id " .
+ $sql = "SELECT page_namespace,page_title FROM page,links " .
+ "WHERE l_from=l_to AND l_to=page_id " .
"LIMIT {$offset}, {$limit}";
$res = wfQuery( $sql, DB_SLAVE, $fname );
}
/**
- *
+ *
*/
function wfSpecialMispeelings () {
global $wgUser, $wgOut, $wgContLang;
$name = $dbr->addQuotes( $this->getName() );
return
"
- SELECT
+ SELECT
$name as type,
" . NS_CATEGORY . " as namespace,
cl_to as title,
<?php
/**
- * A special page to show pages in the
+ * A special page to show pages in the
*
* @package MediaWiki
* @subpackage SpecialPage
# Give back result to user.
$titleObj = Title::makeTitle( NS_SPECIAL, 'Movepage' );
- $success = $titleObj->getFullURL(
+ $success = $titleObj->getFullURL(
'action=success&oldtitle=' . wfUrlencode( $ot->getPrefixedText() ) .
'&newtitle=' . wfUrlencode( $nt->getPrefixedText() ) .
'&talkmoved='.$talkmoved );
*/
function wfSpecialPopularpages() {
list( $limit, $offset ) = wfCheckLimits();
-
+
$ppp = new PopularPagesPage();
-
+
return $ppp->doQuery( $offset, $limit );
}
if( preg_match( $item, $this->mNick ) > 0 ) {
return( true ); # We found a reserved expression
}
- }
+ }
return( false );
}
) . '</fieldset>'
);
- $wgOut->addHTML( '<fieldset><legend>' . htmlspecialchars(wfMsg('prefs-rc')) . '</legend>' .
+ $wgOut->addHTML( '<fieldset><legend>' . htmlspecialchars(wfMsg('prefs-rc')) . '</legend>' .
'<label for="wpRecent">' . wfMsg ( 'recentchangescount' ) .
"</label> <input type='text' name='wpRecent' id='wpRecent' value=\"$this->mRecent\" size='3' />" .
$this->getToggles( array(
while( ($n < $this->maxPerPage) && ($s = $dbr->fetchObject( $res )) ) {
$t = Title::makeTitle( $s->page_namespace, $s->page_title );
if( $t ) {
- $link = ($s->page_is_redirect ? '<div class="allpagesredirect">' : '' ) .
+ $link = ($s->page_is_redirect ? '<div class="allpagesredirect">' : '' ) .
$sk->makeKnownLinkObj( $t, htmlspecialchars( $t->getText() ), false, false ) .
($s->page_is_redirect ? '</div>' : '' );
} else {
// If target is a Category, use categorylinks and invert from and to
if( $nt->getNamespace() == NS_CATEGORY ) {
$catkey = $dbr->addQuotes( $nt->getDBKey() );
- $sql = "SELECT /* wfSpecialRecentchangeslinked */
+ $sql = "SELECT /* wfSpecialRecentchangeslinked */
rc_id,
rc_cur_id,
rc_namespace,
";
} else {
$sql =
-"SELECT /* wfSpecialRecentchangeslinked */
+"SELECT /* wfSpecialRecentchangeslinked */
rc_id,
rc_cur_id,
rc_namespace,
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
$t = Title::newFromText( $term );
# If the string cannot be used to create a title
- if( is_null( $t ) ){
+ if( is_null( $t ) ){
return $this->showResults( $term );
}
# Private methods below this line
/**
- *
+ *
*/
function setupPage( $term ) {
global $wgOut;
extract( $dbr->tableNames( 'page', 'categorylinks' ) );
$name = $dbr->addQuotes( $this->getName() );
- return
+ return
"
SELECT
$name as type,
extract( $dbr->tableNames( 'page', 'image', 'imagelinks', 'categorylinks' ) );
return 'SELECT img_name as title, img_user, img_user_text, img_timestamp as value, img_description
- FROM ((('.$page.' AS I LEFT JOIN '.$categorylinks.' AS L ON I.page_id = L.cl_from)
+ FROM ((('.$page.' AS I LEFT JOIN '.$categorylinks.' AS L ON I.page_id = L.cl_from)
LEFT JOIN '.$imagelinks.' AS P ON I.page_title = P.il_to)
INNER JOIN '.$image.' AS G ON I.page_title = G.img_name)
WHERE I.page_namespace = '.NS_IMAGE.' AND L.cl_from IS NULL AND P.il_to IS NULL';
if( $mfs->getPaths( $this->mSavedFile )) {
$this->mUploadOldVersion = gmdate( 'YmdHis' ) . "!{$saveName}";
- if( !$mfs->rename( $this->mSavedFile, "archive!{$this->mUploadOldVersion}" ) ) {
+ if( !$mfs->rename( $this->mSavedFile, "archive!{$this->mUploadOldVersion}" ) ) {
$wgOut->fileRenameError( $this->mSavedFile,
"archive!{$this->mUploadOldVersion}" );
return false;
$this->mDomain = 'invaliddomain';
}
$wgAuth->setDomain( $this->mDomain );
-
+
# When switching accounts, it sucks to get automatically logged out
if( $this->mReturnto == $wgLang->specialPage( 'Userlogout' ) ) {
$this->mReturnto = '';
}
$ip = wfGetIP();
- if ( $wgEnableSorbs && !in_array( $ip, $wgProxyWhitelist ) &&
- $wgUser->inSorbsBlacklist( $ip ) )
+ if ( $wgEnableSorbs && !in_array( $ip, $wgProxyWhitelist ) &&
+ $wgUser->inSorbsBlacklist( $ip ) )
{
$this->mainLoginForm( wfMsg( 'sorbs_create_account_reason' ) . ' (' . htmlspecialchars( $ip ) . ')' );
return;
global $wgDisableCookieCheck;
return ( $wgDisableCookieCheck ) ? true : ( isset( $_COOKIE[session_name()] ) );
}
-
+
/**
* @access private
*/
/**
* Provide an administration interface
* DO NOT USE: INSECURE.
- *
+ *
* TODO : remove everything related to group editing (SpecialGrouplevels.php)
* @package MediaWiki
* @subpackage SpecialPage
<?php
# Copyright (C) 2004 Magnus Manske <magnus.manske@web.de>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
$title = $article->getTitle();
$wgOut->setPageTitle( wfMsg( 'val_validation_of', $title->getPrefixedText() ) );
- $offset = $wgRequest->getVal ( "offset" , 0 ) ;
- $limit = $wgRequest->getVal ( "limit" , 25 ) ;
+ $offset = $wgRequest->getVal ( "offset" , 0 ) ;
+ $limit = $wgRequest->getVal ( "limit" , 25 ) ;
# Collecting statistic data
# Unfortunately, it has to read all the data, though it will only display a part
$base .= "limit={$limit}&offset=" ;
if ( $offset > 0 ) {
- $o = $offset - $limit ;
+ $o = $offset - $limit ;
$t = $offset-$limit+1 ;
$r[] = $sk->makeKnownLinkObj( $nt, "{$t} <<" , $base.$o );
}
$r[] = $s1 . " - " . $s2 ;
if ( $lastcount == $limit ) {
- $o = $offset + $limit ;
+ $o = $offset + $limit ;
$t = $offset+$limit+1 ;
$r[] = $sk->makeKnownLinkObj( $nt, ">> {$t}" , $base.$o );
}
$ret =
"__NOTOC__
<div dir='ltr'>
- This wiki is powered by '''[http://www.mediawiki.org/ MediaWiki]''',
+ This wiki is powered by '''[http://www.mediawiki.org/ MediaWiki]''',
copyright (C) 2001-2006 Magnus Manske, Brion Vibber, Lee Daniel Crocker,
Tim Starling, Erik Möller, and others.
-
+
MediaWiki is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
-
+
MediaWiki is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
$docutoff = "AND rev_timestamp > '" .
( $cutoff = $dbr->timestamp( time() - intval( $days * 86400 ) ) )
. "'";
- /*
+ /*
$sql = "SELECT COUNT(*) AS n FROM $page, $revision WHERE rev_timestamp>'$cutoff' AND page_id=rev_page";
$res = $dbr->query( $sql, $fname );
$s = $dbr->fetchObject( $res );
}
# TODO: Consider removing the third parameter
- $header .= wfMsg( 'watchdetails', $wgLang->formatNum( $nitems ),
+ $header .= wfMsg( 'watchdetails', $wgLang->formatNum( $nitems ),
$wgLang->formatNum( $npages ), '',
$specialTitle->getFullUrl( 'edit=yes' ) );
$wgOut->addWikiText( $header );
$wgOut->errorpage( 'notargettitle', 'notargettext' );
return;
}
- $this->selfTitle = Title::makeTitleSafe( NS_SPECIAL,
+ $this->selfTitle = Title::makeTitleSafe( NS_SPECIAL,
'Whatlinkshere/' . $this->target->getPrefixedDBkey() );
$wgOut->setPagetitle( $this->target->getPrefixedText() );
$wgOut->setSubtitle( wfMsg( 'linklistsub' ) );
}
// Make the query
- $plConds = array(
+ $plConds = array(
'page_id=pl_from',
'pl_namespace' => $target->getNamespace(),
'pl_title' => $target->getDBkey(),
);
- $tlConds = array(
+ $tlConds = array(
'page_id=tl_from',
'tl_namespace' => $target->getNamespace(),
'tl_title' => $target->getDBkey(),
}
$fields = array( 'page_id', 'page_namespace', 'page_title', 'page_is_redirect' );
- $plRes = $dbr->select( array( 'pagelinks', 'page' ), $fields,
+ $plRes = $dbr->select( array( 'pagelinks', 'page' ), $fields,
$plConds, $fname, $options );
- $tlRes = $dbr->select( array( 'templatelinks', 'page' ), $fields,
+ $tlRes = $dbr->select( array( 'templatelinks', 'page' ), $fields,
$tlConds, $fname, $options );
if ( !$dbr->numRows( $plRes ) && !$dbr->numRows( $tlRes ) ) {
}
// Read the rows into an array and remove duplicates
- // templatelinks comes second so that the templatelinks row overwrites the
+ // templatelinks comes second so that the templatelinks row overwrites the
// pagelinks row, so we get (inclusion) rather than nothing
while ( $row = $dbr->fetchObject( $plRes ) ) {
$row->is_template = 0;
if ( 0 != $prevId ) {
$prevLink = $this->makeSelfLink( $prev, "limit={$limit}&from={$prevId}&dir=prev" );
- } else {
- $prevLink = $prev;
+ } else {
+ $prevLink = $prev;
}
if ( 0 != $nextId ) {
$nextLink = $this->makeSelfLink( $next, "limit={$limit}&from={$nextId}" );
if ( $dbr->numRows( $res ) <= $this->mMaxTitles ) {
while ( $BL = $dbr->fetchObject ( $res ) )
{
- $tobj = Title::makeTitle( $BL->page_namespace, $BL->page_title ) ;
+ $tobj = Title::makeTitle( $BL->page_namespace, $BL->page_title ) ;
$blurlArr[] = $tobj->getInternalURL();
}
}
}
/* Purges a list of Squids defined in $wgSquidServers.
- $urlArr should contain the full URLs to purge as values
+ $urlArr should contain the full URLs to purge as values
(example: $urlArr[] = 'http://my.host/something')
XXX report broken Squids per mail or log */
#$this->debug("...");
$res = @fread($socket,512);
#$this->debug("\n");
- /* Squid only returns http headers with 200 or 404 status,
+ /* Squid only returns http headers with 200 or 404 status,
if there's more returned something's wrong */
if (strlen($res) > 250) {
fclose($socket);
@stream_set_blocking($socket,false);
$sockets[] = $socket;
}
- }
+ }
} else {
/* open the remaining sockets for this server */
list($server, $port) = explode(':', $wgSquidServers[$ss]);
header( 'HTTP/1.0 404 Not Found' );
echo "<html><body>
<h1>File not found</h1>
-<p>Although this PHP script ({$_SERVER['SCRIPT_NAME']}) exists, the file requested for output
+<p>Although this PHP script ({$_SERVER['SCRIPT_NAME']}) exists, the file requested for output
does not.</p>
</body></html>";
return;
* @return string
* @access public
*/
- function getNsText() {
+ function getNsText() {
global $wgContLang;
return $wgContLang->getNsText( $this->mNamespace );
}
global $wgActionPaths;
$url = false;
if( !empty( $wgActionPaths ) &&
- preg_match( '/^(.*&|)action=([^&]*)(&(.*)|)$/', $query, $matches ) )
+ preg_match( '/^(.*&|)action=([^&]*)(&(.*)|)$/', $query, $matches ) )
{
$action = urldecode( $matches[2] );
if( isset( $wgActionPaths[$action] ) ) {
}
/**
- * Add or update the
+ * Add or update the
* @param string $field
* @param mixed $id
* @access private
# Copyright (C) 2003 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/**
* Fetch a text string from the given array or return $default if it's not
- * set. \r is stripped from the text, and with some language modules there
+ * set. \r is stripped from the text, and with some language modules there
* is an input transliteration applied. This should generally be used for
* form <textarea> and <input> fields.
*
}
$retVal = array();
- foreach ( $names as $name ) {
+ foreach ( $names as $name ) {
$value = $this->getVal( $name );
if ( !is_null( $value ) ) {
$retVal[$name] = $value;
}
}
- function act_creativecommons ( $action ) {
+ function act_creativecommons ( $action ) {
global $wgArticle , $wgEnableCreativeCommonsRdf ;
if( !$wgEnableCreativeCommonsRdf ) {
wfHttpError( 403, 'Forbidden', wfMsg('nocreativecommons') );
}
}
- function act_credits ( $action ) {
+ function act_credits ( $action ) {
global $wgArticle ;
require_once( 'includes/Credits.php' );
showCreditsPage( $wgArticle );
}
- function act_submit ( $action ) {
+ function act_submit ( $action ) {
global $wgCommandLineMode , $wgRequest ;
if( !$wgCommandLineMode && !$wgRequest->checkSessionCookie() ) {
# Send a cookie so anons get talk message notifications
$this->act_edit ( $action ) ;
}
- function act_edit ( $action ) {
+ function act_edit ( $action ) {
global $wgRequest , $wgUseExternalEditor , $wgUser , $wgArticle ;
$internal = $wgRequest->getVal( 'internaledit' );
$external = $wgRequest->getVal( 'externaledit' );
}
}
- function act_history ( $action ) {
+ function act_history ( $action ) {
global $wgTitle , $wgArticle , $wgSquidMaxage ;
if ($_SERVER['REQUEST_URI'] == $wgTitle->getInternalURL('action=history')) {
$wgOut->setSquidMaxage( $wgSquidMaxage );
$history->history();
}
- function act_raw ( $action ) {
+ function act_raw ( $action ) {
global $wgArticle ;
require_once( 'includes/RawPage.php' );
$raw = new RawPage( $wgArticle );
}
- function act_watch ( $action ) { $this->article_action ( $action ) ; }
- function act_unwatch ( $action ) { $this->article_action ( $action ) ; }
- function act_delete ( $action ) { $this->article_action ( $action ) ; }
- function act_revert ( $action ) { $this->article_action ( $action ) ; }
- function act_rollback ( $action ) { $this->article_action ( $action ) ; }
- function act_protect ( $action ) { $this->article_action ( $action ) ; }
- function act_unprotect ( $action ) { $this->article_action ( $action ) ; }
- function act_info ( $action ) { $this->article_action ( $action ) ; }
- function act_markpatrolled ( $action ) { $this->article_action ( $action ) ; }
- function act_render ( $action ) { $this->article_action ( $action ) ; }
- function act_deletetrackback ( $action ) { $this->article_action ( $action ) ; }
- function act_purge ( $action ) { $this->article_action ( $action ) ; }
+ function act_watch ( $action ) { $this->article_action ( $action ) ; }
+ function act_unwatch ( $action ) { $this->article_action ( $action ) ; }
+ function act_delete ( $action ) { $this->article_action ( $action ) ; }
+ function act_revert ( $action ) { $this->article_action ( $action ) ; }
+ function act_rollback ( $action ) { $this->article_action ( $action ) ; }
+ function act_protect ( $action ) { $this->article_action ( $action ) ; }
+ function act_unprotect ( $action ) { $this->article_action ( $action ) ; }
+ function act_info ( $action ) { $this->article_action ( $action ) ; }
+ function act_markpatrolled ( $action ) { $this->article_action ( $action ) ; }
+ function act_render ( $action ) { $this->article_action ( $action ) ; }
+ function act_deletetrackback ( $action ) { $this->article_action ( $action ) ; }
+ function act_purge ( $action ) { $this->article_action ( $action ) ; }
function article_action ( $action ) {
global $wgArticle ;
* MediaWiki error classes
* Copyright (C) 2005 Brion Vibber <brion@pobox.com>
* http://www.mediawiki.org/
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
}
/**
- * Convert the input to all possible variants
+ * Convert the input to all possible variants
*
* @param string $text input text
* @return array langcode => converted_string
* Simplified/Traditional Chinese conversion tables
*
* Automatically generated using code and data in includes/zhtable/
- * Do not modify directly!
+ * Do not modify directly!
*
* @package MediaWiki
*/
* Usage example:
*
* require_once 'memcached.php';
- *
+ *
* $mc = new memcached(array(
- * 'servers' => array('127.0.0.1:10000',
+ * 'servers' => array('127.0.0.1:10000',
* array('192.0.0.1:10010', 2),
* '127.0.0.1:10020'),
* 'debug' => false,
* @access public
*/
var $stats;
-
+
// }}}
// {{{ private
* @access private
*/
var $_cache_sock;
-
+
/**
* Current debug status; 0 - none to 9 - profiling
*
* @access private
*/
var $_debug;
-
+
/**
* Dead hosts, assoc array, 'host'=>'unixtime when ok to check again'
*
* @access private
*/
var $_host_dead;
-
+
/**
* Is compression available?
*
* @access private
*/
var $_have_zlib;
-
+
/**
* Do we want to use compression?
*
* @access private
*/
var $_compress_enable;
-
+
/**
* At how many bytes should we compress?
*
* @access private
*/
var $_compress_threshold;
-
+
/**
* Are we using persistant links?
*
* @access private
*/
var $_persistant;
-
+
/**
* If only using one server; contains ip:port to connect to
*
* @access private
*/
var $_single_sock;
-
+
/**
* Array containing ip:port or array(ip:port, weight)
*
* @access private
*/
var $_servers;
-
+
/**
* Our bit buckets
*
* @access private
*/
var $_buckets;
-
+
/**
* Total # of bit buckets we have
*
* @access private
*/
var $_bucketcount;
-
+
/**
* # of total servers we have
*
$this->_persistant = array_key_exists('persistant', $args) ? (@$args['persistant']) : false;
$this->_compress_enable = true;
$this->_have_zlib = function_exists("gzcompress");
-
+
$this->_cache_sock = array();
$this->_host_dead = array();
// {{{ add()
/**
- * Adds a key/value to the memcache server if one isn't already set with
+ * Adds a key/value to the memcache server if one isn't already set with
* that key
*
* @param string $key Key to set with data
{
if (!$this->_active)
return false;
-
+
$sock = $this->get_sock($key);
if (!is_resource($sock))
return false;
-
+
$key = is_array($key) ? $key[1] : $key;
-
+
@$this->stats['delete']++;
$cmd = "delete $key $time\r\n";
if(!$this->_safe_fwrite($sock, $cmd, strlen($cmd)))
return false;
}
$res = trim(fgets($sock));
-
+
if ($this->_debug)
$this->_debugprint(sprintf("MemCache: delete %s (%s)\n", $key, $res));
-
+
if ($res == "DELETED")
return true;
return false;
wfProfileOut( $fname );
return false;
}
-
+
$sock = $this->get_sock($key);
-
+
if (!is_resource($sock)) {
wfProfileOut( $fname );
return false;
}
-
+
@$this->stats['get']++;
-
+
$cmd = "get $key\r\n";
if (!$this->_safe_fwrite($sock, $cmd, strlen($cmd)))
{
wfProfileOut( $fname );
return false;
}
-
+
$val = array();
$this->_load_items($sock, $val);
-
+
if ($this->_debug)
foreach ($val as $k => $v)
$this->_debugprint(@sprintf("MemCache: sock %s got %s => %s\r\n", serialize($sock), $k, $v));
{
if (!$this->_active)
return false;
-
+
$this->stats['get_multi']++;
-
+
foreach ($keys as $key)
{
$sock = $this->get_sock($key);
}
$sock_keys[$sock][] = $key;
}
-
+
// Send out the requests
foreach ($socks as $sock)
{
$cmd .= " ". $key;
}
$cmd .= "\r\n";
-
+
if ($this->_safe_fwrite($sock, $cmd, strlen($cmd)))
{
$gather[] = $sock;
$this->_dead_sock($sock);
}
}
-
+
// Parse responses
$val = array();
foreach ($gather as $sock)
{
$this->_load_items($sock, $val);
}
-
+
if ($this->_debug)
foreach ($val as $k => $v)
$this->_debugprint(sprintf("MemCache: got %s => %s\r\n", $k, $v));
-
+
return $val;
}
// {{{ run_command()
/**
- * Passes through $cmd to the memcache server connected by $sock; returns
+ * Passes through $cmd to the memcache server connected by $sock; returns
* output as an array (null array if no output)
*
* NOTE: due to a possible bug in how PHP reads while using fgets(), each
{
if (!is_resource($sock))
return array();
-
+
if (!$this->_safe_fwrite($sock, $cmd, strlen($cmd)))
return array();
-
+
while (true)
{
$res = fgets($sock);
$this->_active = count($list);
$this->_buckets = null;
$this->_bucketcount = 0;
-
+
$this->_single_sock = null;
if ($this->_active == 1)
$this->_single_sock = $this->_servers[0];
*
* @param integer $seconds Number of seconds
* @param integer $microseconds Number of microseconds
- *
+ *
* @access public
*/
function set_timeout ($seconds, $microseconds)
$this->_timeout_seconds = $seconds;
$this->_timeout_microseconds = $microseconds;
}
-
+
// }}}
// }}}
// {{{ private methods
{
$sock = @fsockopen($ip, $port, $errno, $errstr, $timeout);
}
-
+
if (!$sock) {
if ($this->_debug)
$this->_debugprint( "Error connecting to $host: $errstr\n" );
$this->_flush_read_buffer($this->_single_sock);
return $this->sock_to_host($this->_single_sock);
}
-
+
$hv = is_array($key) ? intval($key[0]) : $this->_hashfunc($key);
-
+
if ($this->_buckets === null)
{
foreach ($this->_servers as $v)
$this->_buckets = $bu;
$this->_bucketcount = count($bu);
}
-
+
$realkey = is_array($key) ? $key[1] : $key;
for ($tries = 0; $tries<20; $tries++)
{
}
$hv += $this->_hashfunc($tries . $realkey);
}
-
+
return false;
}
function _hashfunc ($key)
{
# Hash function must on [0,0x7ffffff]
- # We take the first 31 bits of the MD5 hash, which unlike the hash
+ # We take the first 31 bits of the MD5 hash, which unlike the hash
# function used in a previous version of this client, works
return hexdec(substr(md5($key),0,8)) & 0x7fffffff;
}
{
if (!$this->_active)
return null;
-
+
$sock = $this->get_sock($key);
if (!is_resource($sock))
return null;
-
+
$key = is_array($key) ? $key[1] : $key;
@$this->stats[$cmd]++;
if (!$this->_safe_fwrite($sock, "$cmd $key $amt\r\n"))
return $this->_dead_sock($sock);
-
+
stream_set_timeout($sock, 1, 0);
$line = fgets($sock);
if (!preg_match('/^(\d+)/', $line, $match))
list($rkey, $flags, $len) = array($match[1], $match[2], $match[3]);
$bneed = $len+2;
$offset = 0;
-
+
while ($bneed > 0)
{
$data = fread($sock, $bneed);
$bneed -= $n;
@$ret[$rkey] .= $data;
}
-
+
if ($offset != $len+2)
{
// Something is borked!
$this->_close_sock($sock);
return false;
}
-
+
if ($this->_have_zlib && $flags & MEMCACHE_COMPRESSED)
$ret[$rkey] = gzuncompress($ret[$rkey]);
if ($flags & MEMCACHE_SERIALIZED)
$ret[$rkey] = unserialize($ret[$rkey]);
- } else
+ } else
{
$this->_debugprint("Error parsing memcached response\n");
return 0;
{
if (!$this->_active)
return false;
-
+
$sock = $this->get_sock($key);
if (!is_resource($sock))
return false;
-
+
@$this->stats[$cmd]++;
-
+
$flags = 0;
-
+
if (!is_scalar($val))
{
$val = serialize($val);
if ($this->_debug)
$this->_debugprint(sprintf("client: serializing data as it is not scalar\n"));
}
-
+
$len = strlen($val);
-
- if ($this->_have_zlib && $this->_compress_enable &&
+
+ if ($this->_have_zlib && $this->_compress_enable &&
$this->_compress_threshold && $len >= $this->_compress_threshold)
{
$c_val = gzcompress($val, 9);
$c_len = strlen($c_val);
-
+
if ($c_len < $len*(1 - COMPRESSION_SAVINGS))
{
if ($this->_debug)
}
if (!$this->_safe_fwrite($sock, "$cmd $key $flags $exp $len\r\n$val\r\n"))
return $this->_dead_sock($sock);
-
+
$line = trim(fgets($sock));
-
+
if ($this->_debug)
{
if ($flags & MEMCACHE_COMPRESSED)
{
if (isset($this->_cache_sock[$host]))
return $this->_cache_sock[$host];
-
+
$now = time();
list ($ip, $port) = explode (":", $host);
if (isset($this->_host_dead[$host]) && $this->_host_dead[$host] > $now ||
isset($this->_host_dead[$ip]) && $this->_host_dead[$ip] > $now)
return null;
-
+
if (!$this->_connect_sock($sock, $host))
return $this->_dead_sock($host);
-
+
// Do not buffer writes
stream_set_write_buffer($sock, 0);
-
+
$this->_cache_sock[$host] = $sock;
-
+
return $this->_cache_sock[$host];
}
/**
* Write to a stream, timing out after the correct amount of time
- *
+ *
* @return bool false on failure, true on success
*/
/*
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* regression checks for known problems.
*
* Requires PHPUnit.
- *
+ *
* @package UtfNormal
* @access private
*/
"U+$x should be decomposed" );
} else {
$this->assertEquals(
- bin2hex( $char ),
+ bin2hex( $char ),
bin2hex( $clean ),
"U+$x should be intact" );
}
$i == 0x000d ||
($i > 0x001f && $i < 0x80) ) {
$this->assertEquals(
- bin2hex( $char ),
+ bin2hex( $char ),
bin2hex( $clean ),
"ASCII byte $x should be intact" );
if( $char != $clean ) return;
$second < 0xc0 ) {
$norm = UtfNormal::NFC( $char );
$this->assertEquals(
- bin2hex( $norm ),
+ bin2hex( $norm ),
bin2hex( $clean ),
"Pair $x should be intact" );
if( $norm != $clean ) return;
$third < 0xc0 ) {
if( $first == 0xe0 && $second < 0xa0 ) {
$this->assertEquals(
- bin2hex( $head . UTF8_REPLACEMENT . $tail ),
+ bin2hex( $head . UTF8_REPLACEMENT . $tail ),
bin2hex( $clean ),
"Overlong triplet $x should be rejected" );
- } elseif( $first == 0xed &&
+ } elseif( $first == 0xed &&
( chr( $first ) . chr( $second ) . chr( $third )) >= UTF8_SURROGATE_FIRST ) {
$this->assertEquals(
- bin2hex( $head . UTF8_REPLACEMENT . $tail ),
+ bin2hex( $head . UTF8_REPLACEMENT . $tail ),
bin2hex( $clean ),
"Surrogate triplet $x should be rejected" );
} else {
$this->assertEquals(
- bin2hex( UtfNormal::NFC( $char ) ),
+ bin2hex( UtfNormal::NFC( $char ) ),
bin2hex( $clean ),
"Triplet $x should be intact" );
}
function testChunkRegression() {
# Check for regression against a chunking bug
$text = "\x46\x55\xb8" .
- "\xdc\x96" .
+ "\xdc\x96" .
"\xee" .
"\xe7" .
"\x44" .
"\xaa" .
"\x2f\x25";
$expect = "\x46\x55\xef\xbf\xbd" .
- "\xdc\x96" .
+ "\xdc\x96" .
"\xef\xbf\xbd" .
"\xef\xbf\xbd" .
"\x44" .
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* Test feeds random 16-byte strings to both the pure PHP and ICU-based
* UtfNormal::cleanUp() code paths, and checks to see if there's a
* difference. Will run forever until it finds one or you kill it.
- *
+ *
* @package UtfNormal
* @access private
*/
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|| ($n == 0xf0 && $sequence <= UTF8_OVERLONG_C)
# U+FFFE and U+FFFF are explicitly forbidden in Unicode.
- || ($n == 0xef &&
+ || ($n == 0xef &&
($sequence == UTF8_FFFE)
|| ($sequence == UTF8_FFFF) )
|| ($n >= 0xf0 && $sequence > UTF8_MAX) ) {
$replace[] = array( UTF8_REPLACEMENT,
- $base + $i + 1 - strlen( $sequence ),
+ $base + $i + 1 - strlen( $sequence ),
strlen( $sequence ) );
$head = '';
continue;
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/**
* Approximate benchmark for some basic operations.
- *
+ *
* @package UtfNormal
* @access private
*/
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<td align='right'><label for='wpRetype'><?php $this->msg('yourpasswordagain') ?>:</label></td>
<td align='left'>
<input type='password' class='loginPassword' name="wpRetype" id="wpRetype"
- value="<?php $this->text('retype') ?>"
+ value="<?php $this->text('retype') ?>"
size='20' />
</td>
</tr>
'updated' => '(Updated)',
'note' => '<strong>Note:</strong> ',
'previewnote' => '<strong>This is only a preview; changes have not yet been saved!</strong>',
-'session_fail_preview' => '<strong>Sorry! We could not process your edit due to a loss of session data.
+'session_fail_preview' => '<strong>Sorry! We could not process your edit due to a loss of session data.
Please try again. If it still doesn\'t work, try logging out and logging back in.</strong>',
'previewconflict' => 'This preview reflects the text in the upper
text editing area as it will appear if you choose to save.',
If a new page with the same name has been created since the deletion, the restored
revisions will appear in the prior history, and the current revision of the live page
will not be automatically replaced.',
-'undeletehistorynoadmin' => 'This article has been deleted. The reason for deletion is
-shown in the summary below, along with details of the users who had edited this page
+'undeletehistorynoadmin' => 'This article has been deleted. The reason for deletion is
+shown in the summary below, along with details of the users who had edited this page
before deletion. The actual text of these deleted revisions is only available to administrators.',
'undeleterevision' => "Deleted revision as of $1",
'undeletebtn' => 'Restore!',
* Invoked by putting {{plural:count|wordform1|wordform2}}
* or {{plural:count|wordform1|wordform2|wordform3}}
*
- * Example: {{plural:{{NUMBEROFARTICLES}}|article|articles}}
+ * Example: {{plural:{{NUMBEROFARTICLES}}|article|articles}}
*
* @param integer $count
* @param string $wordform1
# Metadata in edit box
'metadata' => '<b>Метаданни</b> (<a href="$1">разяснение</a>)',
'metadata_page' => 'Project:Метаданни',
-
+
'currentevents' => 'Текущи събития',
'currentevents-url' => 'Текущи събития',
'disclaimers' => 'Условия за ползване',
<input type="submit" name="btnG" value="Google Search" />
</div>
<div style="font-size:90%">
- <input type="radio" name="sitesearch" id="gwiki" value="{{SERVER}}"
+ <input type="radio" name="sitesearch" id="gwiki" value="{{SERVER}}"
checked="checked" /><label for="gwiki">{{SITENAME}}</label>
<input type="radio" name="sitesearch" id="gWWW" value="" />
<label for="gWWW">Мрежата</label>
'addgroup' => 'Добавяне на група',
'userrights-lookup-user' => 'Управляване на потребителските групи',#Manage user groups
-'userrights-user-editname' => 'Въведете потребителско име: ',#Enter a username:
+'userrights-user-editname' => 'Въведете потребителско име: ',#Enter a username:
'editusergroup' => 'Редактиране на потребителските групи',#Edit User Groups
# group editing
'already_sysop' => 'Този потребител беше вече администратор',
'already_bureaucrat' => 'Този потребител беше вече бюрократ',
'already_steward' => 'Този потребител беше вече стюард',
-
+
# Move page
#
'movepage' => 'Преместване на страница',
// Pseudotags used for GPSTrackRef, GPSImgDirectionRef and GPSDestBearingRef
'exif-gpsdirection-t' => 'True direction',
-'exif-gpsdirection-m' => 'Magnetic direction',
+'exif-gpsdirection-m' => 'Magnetic direction',
# external editor support
'edit-externally' => 'Редактиране на файла чрез външно приложение',
'whitelistreadtitle' => 'Ret eo bezañ luget evit gallout lenn',
'whitelistreadtext' => 'Ret eo bezañ [[Special:Userlogin|luget]] evit gallout lenn ar pennadoù',
'whitelistacctitle' => 'N\'hoc\'h ket aotreet da grouiñ ur gont',
-'whitelistacctext' => 'A-benn gallout krouiñ ur gont war ar Wiki-mañ e rankit bezañ [[Special:Userlogin|luget]] ha kaout an aotreoù rekis', // Looxix
+'whitelistacctext' => 'A-benn gallout krouiñ ur gont war ar Wiki-mañ e rankit bezañ [[Special:Userlogin|luget]] ha kaout an aotreoù rekis', // Looxix
'loginreqtitle' => 'Anv implijer rekis',
'accmailtitle' => 'Ger-tremen kaset.',
'accmailtext' => 'Kaset eo bet ger-tremen « $1 » da $2.',
'newarticle' => '(Nevez)',
'newarticletext' => 'Skrivit amañ testenn ho pennad.',
-'anontalkpagetext' => "---- ''Homañ eo ar bajenn gaozeal evit un implijer(ez) dianv n\'eus ket c\'hoazh krouet kont ebet pe na implij ket anezhi. Setu perak e rankomp ober gant ar [[chomlec\'h IP]] niverel evit disklêriañ anezhañ/i. Gallout a ra ur chomlec\'h a seurt-se bezañ rannet etre meur a implijer(ez). Ma\'z oc\'h un implijer(ez) dianv ha ma stadit ez eus bet kaset deoc\'h kemennadennoù na sellont ket ouzhoc\'h, gallout a rit [[Special:Userlogin|krouiñ ur gont pe en em lugañ]] kuit a vagañ muioc\'h a gemmesk.",
+'anontalkpagetext' => "---- ''Homañ eo ar bajenn gaozeal evit un implijer(ez) dianv n\'eus ket c\'hoazh krouet kont ebet pe na implij ket anezhi. Setu perak e rankomp ober gant ar [[chomlec\'h IP]] niverel evit disklêriañ anezhañ/i. Gallout a ra ur chomlec\'h a seurt-se bezañ rannet etre meur a implijer(ez). Ma\'z oc\'h un implijer(ez) dianv ha ma stadit ez eus bet kaset deoc\'h kemennadennoù na sellont ket ouzhoc\'h, gallout a rit [[Special:Userlogin|krouiñ ur gont pe en em lugañ]] kuit a vagañ muioc\'h a gemmesk.",
'noarticletext' => "(N\'eus evit poent tamm skrid ebet war ar bajenn-mañ)",
'clearyourcache' => "'''Notenn:''' Goude bezañ enrollet ho pajenn e rankit adkargañ anezhi a-ratozh evit gwelet ar c\'hemmoù : '''Internet Explorer''' : ''ctrl-f5'', '''Mozilla / Firefox''' : ''ctrl-shift-r'', '''Safari''' : ''cmd-shift-r'', '''Konqueror''' : ''f5''.",
'updated' => '(Hizivaet)',
'disambiguationstext' => "Liammet eo ar pennadoù da-heul ouzh ur <i>bajenn zisheñvelaat</i>. Padal e tlefent bezañ liammet ouzh an danvez anezho.<br />Sellet e vez ouzh ur bajenn evel ouzh ur bajenn zisheñvelaat m\'eo liammet adal $1.<br />ne vez ket kemeret e kont al liammoù adal <i>lec\'hioù</i> all.",
'doubleredirects' => "Adkasoù doubl",
'doubleredirectstext' => "<b>Diwallit:</b> Gallout a ra bezañ \"pozitivoù faos\ er roll-mañ. D'ar mare-se eo moarvat peogwir ez eus testenn war bajenn an #REDIRECT kentañ ivez.<br />War bep linenn emañ al liammoù war-du pajenn an adkas 1{{añ}} hag en eil hag ivez linenn gentañ pajenn an eil adkas zo sañset reiñ ar pal \"gwirion\". War-du ar pal-se e tlefe liammañ an #REDIRECT kentañ.",
-'brokenredirects' => 'Adkasoù torret',
+'brokenredirects' => 'Adkasoù torret',
'brokenredirectstext' => 'Kas a ra an adkasoù-mañ d\'ur bajenn n\'eus ket anezhi.',
'selflinks' => 'Pajenn enni ul liamm tro',
'selflinkstext' => 'Er pajennoù da-heul ez eus ul liamm war o zu dezho o-unan, ar pezh n\'hall ket bezañ.',
'unwatchthispage' => 'Paouez da evezhiañ',
'notanarticle' => 'Pennad ebet',
'watchnochange' => "Pajenn ebet eus ar re evezhiet ganeoc\'h n\'eo bet kemmet e-pad ar prantad spisaet",
-'watchdetails' => "Lakaet hoc\'h eus $1 (b/f)pajenn dindan evezh, anez kontañ ar pajennoù kaozeal. [$4 Diskouez ha kemmañ ar roll klok].", // Looxix
-'watchmethod-recent' => "Gwiriañ ar c\'hemmoù diwezhañ er pajennoù dindan evezh", // Looxix
-'watchmethod-list' => "Gwiriañ ar c\'hemmoù diwezhañ evit ar pajennoù evezhiet", // Looxix
+'watchdetails' => "Lakaet hoc\'h eus $1 (b/f)pajenn dindan evezh, anez kontañ ar pajennoù kaozeal. [$4 Diskouez ha kemmañ ar roll klok].", // Looxix
+'watchmethod-recent' => "Gwiriañ ar c\'hemmoù diwezhañ er pajennoù dindan evezh", // Looxix
+'watchmethod-list' => "Gwiriañ ar c\'hemmoù diwezhañ evit ar pajennoù evezhiet", // Looxix
'removechecked' => "Lemel ar pennadoù diuzet a-ziwar ar rollad evezhiañ",
'watchlistcontains' => "$1 (b/f)pajenn zo en ho rollad evezhiañ",
'watcheditlist' => "Setu aze ho rollad evezhiañ dre urzh al lizherenneg. Diuzit ar pajennoù hoc\'h eus c\'hoant da lemel a-ziwar ar roll ha klikit war ar bouton \"lemel a-ziwar ar rollad evezhiañ\" e traoñ ar skramm.",
'removingchecked' => "Lamet eo ar pennadoù diuzet a-ziwar ho rollad evezhiañ...",
'couldntremove' => "Dibosupl da lemel kuit ar pennad « $1 »...",
'iteminvalidname' => "ur gudenn zo gant ar pennad « $1 » : n\'eo ket mat e anv...",
-'wlnote' => "A-is emañ an/ar $1 (g/c\'h)kemm diwezhañ abaoe an/ar <b>$2</b> eurvezh diwezhañ.", // Looxix
+'wlnote' => "A-is emañ an/ar $1 (g/c\'h)kemm diwezhañ abaoe an/ar <b>$2</b> eurvezh diwezhañ.", // Looxix
'wlshowlast' => "diskouez an/ar $1 eurvezh $2 (z)devezh $3 diwezhañ",
'wlsaved' => "Ne vez hizivaet ar rollad evezhiañ nemet ur wech bep eurvezh kuit da sammañ ar servijer betek re.",
'rollbackfailed' => 'C\'hwitet eo bet an distaoladenn',
'cantrollback' => "Dibosupl da zisteuler: an aozer diwezhañ eo an hini nemetañ da vezañ kemmet ar pennad-mañ",
'alreadyrolled' => "Dibosupl eo disteuler ar c\'hemm diwezhañ graet e [[$1]]
-gant [[User:$2|$2]] ([[User talk:$2|Talk]]); kemmet pe distaolet eo bet c\'hoazh gant unan bennak all.
+gant [[User:$2|$2]] ([[User talk:$2|Talk]]); kemmet pe distaolet eo bet c\'hoazh gant unan bennak all.
-Ar c\'hemm diwezhañ a oa gant [[User:$3|$3]] ([[User talk:$3|Talk]]). ", //Looxix
+Ar c\'hemm diwezhañ a oa gant [[User:$3|$3]] ([[User talk:$3|Talk]]). ", //Looxix
# only shown if there is an edit comment
-'editcomment' => "Diverradenn ar c\'hemm a oa: \"<i>$1</i>\".", //Looxix
+'editcomment' => "Diverradenn ar c\'hemm a oa: \"<i>$1</i>\".", //Looxix
'revertpage' => 'Adlakaat kemm diwezhañ $1',
'protectlogpage' => 'Log_gwareziñ',
'protectlogtext' => "Sellet ouzh ar [[{{ns:4}}:Pajenn warezet|c\'huzulioù diwar-benn ar pajennoù gwarezet]].",
bezit sur e komprenit mat an heuliadoù a-raok kenderc\'hel ganti.",
"movepagetalktext" => "Gant se e vo adanvet ent emgefre ar bajenn gaozeal stag, ma\'z eus anezhi '''nemet ma:'''
*ec\'h adanvit ur bajenn war-du ul lec\'h all,
-*ez eus ur bajenn gaozeal c\'hoazh gant an anv nevez, pe
+*ez eus ur bajenn gaozeal c\'hoazh gant an anv nevez, pe
*diweredekaet hoc\'h eus ar bouton a-is.
En degouezh-se e rankot adenvel pe gendeuziñ ar bajenn c\'hwi hoc\'h-unan ma karit.",
# Math
-'mw_math_png' => "Produiñ atav ur skeudenn PNG",
-'mw_math_simple' => "HTML m\'eo eeun-kenañ, a-hend-all ober gant PNG",
-'mw_math_html' => "HTML mar bez tu, a-hend-all PNG",
+'mw_math_png' => "Produiñ atav ur skeudenn PNG",
+'mw_math_simple' => "HTML m\'eo eeun-kenañ, a-hend-all ober gant PNG",
+'mw_math_html' => "HTML mar bez tu, a-hend-all PNG",
'mw_math_source' => "Leuskel ar c\'hod TeX orin",
'mw_math_modern' => "Evit ar merdeerioù arnevez",
'mw_math_mathml' => 'MathML',
<input type="hidden" name="num" value="50" />
<input type="hidden" name="ie" value="$2" />
<input type="hidden" name="oe" value="$2" />
-
+
<input type="text" name="q" size="31" maxlength="255" value="$1" />
<input type="submit" name="btnG" value="Vyhledat Googlem" />
</div>
* http://forum.pasok.gr
* version 1.0 (initial release)
*
- *The project for the translation of MediaWiki into Greek
- *was undertaken by a group of ICT volunteers working under
+ *The project for the translation of MediaWiki into Greek
+ *was undertaken by a group of ICT volunteers working under
*the auspices of the Greek political party PASOK.
*
*The idea behind this effort was to provide an extensible,
*easy-to-use and non-intimidating tool for content development
- *and project management, to be used throughout the administrative
- *and political structure of PASOK by staff, volunteers, party members
+ *and project management, to be used throughout the administrative
+ *and political structure of PASOK by staff, volunteers, party members
*and elected officials (all of whom possess varying degrees of ICT skills).
*
- *The PASOK ICT team and the volunteers who worked on this project are
- *now returning the translated interface to the Open-Source Community
+ *The PASOK ICT team and the volunteers who worked on this project are
+ *now returning the translated interface to the Open-Source Community
*with over 98% of the messages translated into user-friendly Greek.
*
*We hope that it will be used as a tool by other civil society organizations
- *in Greece, and that it will enhance the collective creation and the dissemination
+ *in Greece, and that it will enhance the collective creation and the dissemination
*of knowledge - an essential component of the democratic process.
*
* @package MediaWiki
'administrators' => '{{ns:4}}:Διαχειριστές',
'sysoptitle' => 'Απαιτείται η πρόσβαση διαχειριστή.',
-'sysoptext' => 'Το αίτημά σας αφορά σε ενέργεια
+'sysoptext' => 'Το αίτημά σας αφορά σε ενέργεια
που εκτελείται μόνον από διαχειριστές
-
+
(βλ.$1).',
'developertitle' => 'Απαιτείται η πρόσβαση των προγραμματιστών.',
'developertext' => 'Η ενέργεια αυτή μπορεί να εκτελείται μόνον από τους προγραμματιστές (βλ. $1).',
'viewsource' => 'Εμφάνιση κώδικα',
-'protectedtext' => 'Η σελίδα αυτή είναι κλειδωμένη και δεν είναι δυνατή η επεξεργασία της. Για περισσότερες πληροφορίες σχετικά με τους λόγους για τους οποίους προστατεύεται η σελίδα, παρακαλούμε επισκεφθείτε το σύνδεσμο
+'protectedtext' => 'Η σελίδα αυτή είναι κλειδωμένη και δεν είναι δυνατή η επεξεργασία της. Για περισσότερες πληροφορίες σχετικά με τους λόγους για τους οποίους προστατεύεται η σελίδα, παρακαλούμε επισκεφθείτε το σύνδεσμο
[[{{ns:4}}:Κλειδωμένες_σελίδες]].
Μπορείτε να δείτε και να αντιγράψετε τον πηγαίο κώδικα αυτής σελίδας:',
'copyrightwarning' => 'Ολες οι προσθήκες/ αλλαγές στο {{SITENAME}} θα πρέπει να συμφωνούν με την $2 (Βλ. $1 για λεπτομέρειες).
Αν δεν επιθυμείτε τα κείμενά σας να τα επεξεργαστούν κατά την κρίση τους άλλοι χρήστες και να τα διαδώσουν κατά βούληση παρακαλούμε να μην τα αναρτήσετε σε αυτό το χώρο. Ότι συνεισφέρετε στο χώρο αυτό σε κείμενα, διαγράμματα, στοιχεία ή εικόνες πρέπει να είναι δικά σας έργα ή να ανήκουν στο δημόσιο τομέα (public domain) ή να προέρχονται από ελεύθερες ή ανοιχτές πηγές με ρητή άδεια αναδημοσίευσης. <br />
-Τέλος μας υπόσχεστε και δηλώνετε πως ότι γράφετε σε αυτό τον χώρο είναι πρωτότυπο δικό σας έργο και, άσχετα με την έκτασή του, δεν έχει εκχωρηθεί σε τρίτους η δημοσίευση και η εκμετάλλευσή του.
+Τέλος μας υπόσχεστε και δηλώνετε πως ότι γράφετε σε αυτό τον χώρο είναι πρωτότυπο δικό σας έργο και, άσχετα με την έκτασή του, δεν έχει εκχωρηθεί σε τρίτους η δημοσίευση και η εκμετάλλευσή του.
<strong>ΠΑΡΑΚΑΛΟΥΜΕ ΝΑ ΜΗΝ ΑΝΑΡΤΗΣΕΤΕ ΚΕΙΜΕΝΑ ΤΡΙΤΩΝ ΕΑΝ ΔΕΝ ΕΧΕΤΕ ΤΗΝ ΑΔΕΙΑ ΤΟΥ ΙΔΙΟΚΤΗΤΗ ΤΟΥ COPYRIGHT!</strong>',
'copyrightwarning2' => 'Έχετε υπ\' όψη σας ότι όλες οι προσθήκες/αλλαγές που κάνετε στο {{SITENAME}} μπορούν να υποστούν επεξεργασία και αλλαγές ή ακόμα και να διαγραφούν από άλλους χρήστες.
Αν δεν επιθυμείτε τα κείμενά σας να τα επεξεργαστούν κατά την κρίση τους άλλοι χρήστες και να τα διαδώσουν κατά βούληση παρακαλούμε να μην τα αναρτήσετε σε αυτό το χώρο. Ότι συνεισφέρετε στο χώρο αυτό σε κείμενα, διαγράμματα, στοιχεία ή εικόνες πρέπει να είναι δικά σας έργα ή να ανήκουν στο δημόσιο τομέα (public domain) ή να προέρχονται από ελεύθερες ή ανοιχτές πηγές με ρητή άδεια αναδημοσίευσης. <br />
-Τέλος μας υπόσχεστε και δηλώνετε πως ότι γράφετε σε αυτό τον χώρο είναι πρωτότυπο δικό σας έργο και, άσχετα με την έκτασή του, δεν έχει εκχωρηθεί σε τρίτους η δημοσίευση και η εκμετάλλευσή του.
+Τέλος μας υπόσχεστε και δηλώνετε πως ότι γράφετε σε αυτό τον χώρο είναι πρωτότυπο δικό σας έργο και, άσχετα με την έκτασή του, δεν έχει εκχωρηθεί σε τρίτους η δημοσίευση και η εκμετάλλευσή του.
<strong>ΠΑΡΑΚΑΛΟΥΜΕ ΝΑ ΜΗΝ ΑΝΑΡΤΗΣΕΤΕ ΚΕΙΜΕΝΑ ΤΡΙΤΩΝ ΕΑΝ ΔΕΝ ΕΧΕΤΕ ΤΗΝ ΑΔΕΙΑ ΤΟΥ ΙΔΙΟΚΤΗΤΗ ΤΟΥ COPYRIGHT!</strong>',
'longpagewarning' => 'ΠΡΟΕΙΔΟΠΟΙΗΣΗ: Η σελίδα έχει μέγεθος $1kb. Είναι πιθανόν μερικοί browser να παρουσιάσουν προβλήματα στην επεξεργασία σελίδων της τάξης των 32kb και άνω. Μπορείτε να αποφύγετε το πρόβλημα κόβωντας τη σελίδα σε μικρότερα τμήματα.<br/>',
<input type="hidden" name="ie" value="$2" />
<input type="hidden" name="oe" value="$2" />
-
+
<input type="text" name="q" size="31" maxlength="255" value="$1" />
<input type="submit" name="btnG" value="Google Search" />
</div>
'prefslogintext' => 'Έχετε συνδεθεί ως "$1".
Ο εσωτερικός σας αριθμός ταυτοποίησης (ID) είναι $2.
-Στον παρακάτω σύνδεσμο θα βρείτε πληροφορίες για το πώς θα "αποκρυπτογραφήσετε" τις διάφορες επιλογές:
+Στον παρακάτω σύνδεσμο θα βρείτε πληροφορίες για το πώς θα "αποκρυπτογραφήσετε" τις διάφορες επιλογές:
[[{{ns:12}}:Προτιμήσεις_Χρηστών]]',
'prefsreset' => 'Οι προτιμήσεις σας έχουν αποκατασταθεί σύμφωνα με την αποθηκευμένη έκδοσή τους.',
#-----------------------------#
'maintenance' => 'Σελίδα συντήρησης',
-'maintnancepagetext' => 'Η σελίδα αυτή περιέχει διάφορα εύχρηστα εργαλεία για την καθημερινή συντήρηση.
+'maintnancepagetext' => 'Η σελίδα αυτή περιέχει διάφορα εύχρηστα εργαλεία για την καθημερινή συντήρηση.
Μερικές από τις λειτουργίες αυτές είναι δυνατόν να καταπονήσουν τη βάση δεδομένων, για το λόγο αυτό σας παρακαλούμε να κάνετε \'επαναφόρτωση\' μετά από κάθε στοιχείο που έχετε επιδιορθώσει;-)',
Για να αλλάξετε τις προτιμήσεις της λίστας παρακολούθησής σας, ακολουθήστε το σύνδεσμο:
{{SERVER}}{{localurl:Special:Watchlist/edit}}
-Ερωτήσεις και περισσότερες πληροφορίες:
+Ερωτήσεις και περισσότερες πληροφορίες:
{{SERVER}}{{localurl:{{ns:12}}:Περιεχόμενα}}',
'movepagetext' => 'Χρησιμοποιήστε τη φόρμα που ακολουθεί για να μετονομάσετε σελίδες και για να μεταφέρετε όλο το ιστορικό τους κάτω από το νέο όνομα. Κάτω από τον παλιό τίτλο της σελίδας θα παραμείνει μια σελίδα ανακατεύθυνσης στο νέο τίτλο. Οι τυχόν σύνδεσμοι που οδηγούσαν στην παλιά σελίδα δεν θα επηρεαστούν. Βεβαιωθείτε πως [[Special:Maintenance|ελέγξατε]] τα διπλά διαστήματα και τους κατεστραμένους συνδέσμους. Αναλαμβάνετε την ευθύνη να επιβεβαιώσετε ότι οι συνδεσμοι εξακολουθούν να οδηγούν προς τις κατευθύνσεις που πρέπει.
-Λάβετε υπ` όψη σας ότι η σελίδα \'\'\'δεν\'\'\' θα μετακινηθεί αν υπάρχει ήδη μια άλλη σελίδα κάτω από το νέο τίτλο, εκτός αν η σελίδα αυτή είναι κενή \'\'\'και\'\'\' χωρίς ιστορικό επεξεργασίας. Αυτό σημαίνει ότι, στην περίπτωση που έχετε κάνει λάθος, μπορείτε να μετονομάσετε μια σελίδα ξαναδίνοντας της την αρχική της ονομασία αλλά δεν μπορείτε να αντικαταστήσετε μια υπάρχουσα σελίδα.
+Λάβετε υπ` όψη σας ότι η σελίδα \'\'\'δεν\'\'\' θα μετακινηθεί αν υπάρχει ήδη μια άλλη σελίδα κάτω από το νέο τίτλο, εκτός αν η σελίδα αυτή είναι κενή \'\'\'και\'\'\' χωρίς ιστορικό επεξεργασίας. Αυτό σημαίνει ότι, στην περίπτωση που έχετε κάνει λάθος, μπορείτε να μετονομάσετε μια σελίδα ξαναδίνοντας της την αρχική της ονομασία αλλά δεν μπορείτε να αντικαταστήσετε μια υπάρχουσα σελίδα.
<b>ΠΡΟΣΟΧΗ!</b>
'movepagetalktext' => 'Η σελίδα συζήτησης που αντιστοιχεί, εάν υπάρχει, θα μετακινηθεί αυτόματα μαζί με αυτήν \'\'\'έκτός αν:\'\'\'
*Μετακινείτε τη σελίδα σε διαφορετική περιοχή (namespace),
-*Υπάρχει κάτω από το νέο όνομα μια σελίδα συζήτησης που δεν είναι κενή, ή
+*Υπάρχει κάτω από το νέο όνομα μια σελίδα συζήτησης που δεν είναι κενή, ή
*Έχετε αφαιρέσει τη σημείωση (check) από το κουτάκι που υπάρχει παρακάτω.
Σε αυτές τις περιπτώσεις, θα πρέπει να μετακινήσετε (ή να ενσωματώσετε αν το θέλετε) τη σελίδα με αντιγραφή-και-επικόλληση.',
#----------#
'export' => 'Εξαγωγή σελίδων',
-'exporttext' => 'Μπορείτε να κάνετε εξαγωγή του κειμένου και του ιστορικού επεξεργασίας μιας συγκεκριμένης σελίδας (ή περισσοτέρων σελίδων που έχουν ομαδοποιηθεί με χρήση XML).
+'exporttext' => 'Μπορείτε να κάνετε εξαγωγή του κειμένου και του ιστορικού επεξεργασίας μιας συγκεκριμένης σελίδας (ή περισσοτέρων σελίδων που έχουν ομαδοποιηθεί με χρήση XML).
Για την εξαγωγή ολόκληρων άρθρων, συμπληρώστε τους τίτλους στο παρακάτω πλαίσιο (ένα τίτλο σε κάθε σειρά) και επιλέξτε ανάμεσα από το να εξαγάγετε μόνο την τρέχουσα έκδοση (με τις πληροφορίες της πιο πρόσφατης επεξεργασίας) ή εναλλακτικά και τις παλιότερες εκδόσεις (με τις αντίστοιχες καταγραφές στη σελιδα του ιστορικού).
'confirmemail_error' => 'Παρουσιάστηκε λάθος κατά την αποθήκευση των ρυθμίσεών σας.',
'confirmemail_subject' => 'Επαλήθευση ηλεκτρονικής διεύθυνσης του {{SITENAME}}',
-'confirmemail_body' => 'Κάποιος, πιθανόν εσείς από τη διεύθυνση IP $1, δημιούργησε στο {{SITENAME}} ένα λογαριασμό χρήστη "$2" με τη συγκεκριμένη ηλεκτρονική διεύθυνση.
+'confirmemail_body' => 'Κάποιος, πιθανόν εσείς από τη διεύθυνση IP $1, δημιούργησε στο {{SITENAME}} ένα λογαριασμό χρήστη "$2" με τη συγκεκριμένη ηλεκτρονική διεύθυνση.
Για να επιβεβαιώσετε ότι αυτός ο λογαριασμός χρήστη ανήκει πραγματικά σε εσάς και για να ενεργοποιηθούν οι δυνατότητες e-mail του {{SITENAME}}, ακολουθήστε αυτό το σύνδεσμο:
El sistema de notificación de {{SITENAME}}.
---
+--
Cambie las opciones de su lista de seguimiento en:
{{SERVER}}{{localurl:Especial:Watchlist|edit=yes}}',
'enotif_lastvisited' => 'Vaya a {{SERVER}}{{localurl:$PAGETITLE_RAWURL|diff=0&oldid=$OLDID}} para ver todos los cambios desde su última visita.',
<input type="hidden" name="num" value="50" />
<input type="hidden" name="ie" value="$2" />
<input type="hidden" name="oe" value="$2" />
-
+
<input type="text" name="q" size="31" maxlength="255" value="$1" />
<input type="submit" name="btnG" value="Búsqueda en Google" />
</div>
'metadata' => 'Metadatos',
'metadata-collapse' => 'Ocultar datos detallados',
'metadata-expand' => 'Mostrar datos detallados',
-'metadata-fields' => 'Los campos de metadatos EXIF que se listan en este mensaje se mostrarán en la página de descripción de la imagen aún cuando la tabla de metadatos esté plegada. Existen otros campos que se mantendrán ocultos por defecto y que podrán desplegarse.
+'metadata-fields' => 'Los campos de metadatos EXIF que se listan en este mensaje se mostrarán en la página de descripción de la imagen aún cuando la tabla de metadatos esté plegada. Existen otros campos que se mantendrán ocultos por defecto y que podrán desplegarse.
* make
* model
* datetimeoriginal
'protectcomment' => 'Razón para proteger',
'protect-default' => '(por defecto)',
'protectedarticle' => 'protegió [[$1]]',
-'protectedtext' => 'Esta página ha sido protegida para impedir su modificación; hay varias razones para que esto sea así, por favor vea
+'protectedtext' => 'Esta página ha sido protegida para impedir su modificación; hay varias razones para que esto sea así, por favor vea
[[{{ns:project}}:Esta página está protegida]].
Puedes ver y copiar el texto fuente de esta página:',
'searchquery' => 'Pour la requête « $1 »',
'badquery' => 'Requête mal formulée',
'badquerytext' => 'Nous n\'avons pas pu traiter votre requête.
-Vous avez probablement recherché un mot d\'une longueur inférieure à trois lettres, ce qui n\'est pas encore possible. Vous avez aussi pu faire une erreur de syntaxe, telle que « poisson et écailles ».
+Vous avez probablement recherché un mot d\'une longueur inférieure à trois lettres, ce qui n\'est pas encore possible. Vous avez aussi pu faire une erreur de syntaxe, telle que « poisson et écailles ».
Veuillez essayer une autre requête.', // FIXME
'matchtotals' => 'La requête « $1 » correspond à $2 titre(s) d\'article et au texte de $3 article(s).',
'nogomatch' => 'Aucune page avec ce titre n\'existe, essai avec la recherche complète.
"editingold" => "<strong>זהירות: את/ה עורך/ת גירסה לא עדכנית של הדף הזה.
אם תשמור/י, כל השינויים שנעשו מאז גירסה זו יאבדו. </strong>",
"yourdiff" => "הבדלים",
-"copyrightwarning" => "אנא שים/י לב שכל תרומה ל-{{SITENAME}} מוצאת לאור תחת הרשיון לשימוש חופשי במסמכים של GNU (ראה $1 לפרטים). אם אינך רוצה שעבודתך תהיה זמינה לעריכה על ידי אחרים, ותופץ לעיני כל, אל תפרסם/י אותה פה. כמו-כן, את/ה מבטיח/ה לנו כי את/ה כתבת את הטקסט הזה בעצמך, או העתקת אותו ממקור שאינו מוגן על-ידי זכויות יוצרים.
+"copyrightwarning" => "אנא שים/י לב שכל תרומה ל-{{SITENAME}} מוצאת לאור תחת הרשיון לשימוש חופשי במסמכים של GNU (ראה $1 לפרטים). אם אינך רוצה שעבודתך תהיה זמינה לעריכה על ידי אחרים, ותופץ לעיני כל, אל תפרסם/י אותה פה. כמו-כן, את/ה מבטיח/ה לנו כי את/ה כתבת את הטקסט הזה בעצמך, או העתקת אותו ממקור שאינו מוגן על-ידי זכויות יוצרים.
<strong> אל תעשו שימוש בחומר המוגן בזכויות יוצרים ללא רשות! </strong>",
"longpagewarning" => "<strong>אזהרה: גודל דף זה הוא $1 קילובייט. בדפדפנים מסוימים יהיו בעיות בעריכת דף הגדול מ32 קילובייט. אנא שיקלו לחלק דף זה לדפים קטנים יותר</strong>",
"readonlywarning" => "<strong>אזהרה: בסיס-הנתונים ננעל לצורך תחזוקה. אי אפשר לשמור את העריכות בזמן זה. אתם יכולים להשתמש בעורך חיצוני עד שתסוים התחזוקה. אנו מתנצלים על התקלה.</strong>",
'Monobook.css' =>
'/** Ovdje idu izmjene monobook stylesheeta */ ',
-
+
# User preference toggles
"tog-underline" => "Podcrtane poveznice",
"tog-highlightbroken" => "Istakni prazne poveznice drugom bojom (inače, upitnikom na kraju).",
"administrators" => "Project:Administratori",
"sysoptitle" => "Nužne administrativne ovlasti",
-"sysoptext" => "Željenu radnju mogu obaviti samo
+"sysoptext" => "Željenu radnju mogu obaviti samo
suradnici sa statusom \"administrator\".
Vidi i $1.",
"developertitle" => "Nužne programerske ovlasti",
'nstab-image' => 'Slika',
'nstab-help' => 'Pomoć',
'nstab-category' => 'Kategorija',
-'nstab-wp' => 'Stranica o projektu',
+'nstab-wp' => 'Stranica o projektu',
'nstab-mediawiki' => 'Poruka',
-'nstab-template' => 'Predložak',
+'nstab-template' => 'Predložak',
# Editier-Werkzeugleiste
"bold_sample"=>"Podebljani tekst",
'loginreqlink' => 'prijava',
'loginreqpagetext' => 'Morate se $1 da biste vidjeli ostale stranice.',
'accmailtitle' => 'Lozinka poslana.',
-'accmailtext' => "Lozinka za suradnika '$1' poslana je na adresu $2.",
+'accmailtext' => "Lozinka za suradnika '$1' poslana je na adresu $2.",
"newarticle" => "(Novo)",
"newarticletext" =>
"Došli ste na stranicu koja još nema sadržaja.<br />
-*Ako želite unijeti sadržaj, počnite tipkati u prozor ispod ovog teksta.
-*Ako vam treba pomoć, idite na [[Project:Pomoć|stranicu za pomoć]].
+*Ako želite unijeti sadržaj, počnite tipkati u prozor ispod ovog teksta.
+*Ako vam treba pomoć, idite na [[Project:Pomoć|stranicu za pomoć]].
*Ako ste ovamo dospjeli slučajno, kliknite \"Natrag\" (Back) u svom programu.",
"anontalkpagetext" => "----''Ovo je stranica za razgovor s anonimnim suradnikom koji nije otvorio suradnički račun ili se njime ne koristi. Zbog toga se moramo služiti brojčanom [[IP adresa|IP adresom]] kako bismo ga identificirali. Takvu adresu često koristi više ljudi. Ako ste anonimni suradnik i smatrate da su vam upućeni irelevantni komentari, molimo vas da [[Special:Userlogin|otvorite suradnički račun ili se prijavite]] te tako u budućnosti izbjegnete zamjenu s drugim anonimnim suradnicima.''",
"noarticletext" => "(Trenutno na ovoj stranici nema teksta)",
'''IE:''' držite ''Ctrl'' i pritisnite ''Refresh'', ili pritisnite ''Ctrl-F5''; '''Konqueror:''': samo pritisnite dugme ''Reload'' ili pritisnite ''F5''; korsnici '''Opere''' možda će morati u potpunosti isprazniti međuspremnik u ''Tools→Preferences''.",
'usercssjsyoucanpreview' => "<strong>Savjet:</strong> Koristite dugme 'Pokaži kako će izgledati' za testiranje svog CSS/JS prije snimanja.",
'usercsspreview' => "'''Ne zaboravite: samo isprobavate/pregledavate svoj suradnički CSS, i da još nije snimljen!'''",
-'userjspreview' => "'''Ne zaboravite: samo isprobavate/pregledavate svoj suradnički JavaScript, i da još nije snimljen!'''",
+'userjspreview' => "'''Ne zaboravite: samo isprobavate/pregledavate svoj suradnički JavaScript, i da još nije snimljen!'''",
"updated" => "(Ažurirano)",
"note" => "<strong>Napomena:</strong> ",
"previewnote" => "Ne zaboravite da je ovo samo pregled kako će stranica izgledati i da
ako pritisnete \"Sačuvaj stranicu\".",
"editing" => "Uređujete $1",
'editingsection' => "Uređujete $1 (odlomak)",
-'editingcomment' => "Uređujete $1 (komentar)",
+'editingcomment' => "Uređujete $1 (komentar)",
"editconflict" => "Istovremeno uređivanje: $1",
"explainconflict" => "Netko je u međuvremenu promijenio stranicu. Gornje polje sadrži sadašnji tekst stranice.
U donjem polju prikazane su vaše promjene. Morat ćete unijeti vaše promjene u sadašnji tekst. <b>Samo</b> će tekst
#
"preferences" => "Postavke",
"prefsnologin" => "Niste prijavljeni",
-"prefsnologintext" => "Morate biti [[Special:Userlogin|prijavljeni]]
+"prefsnologintext" => "Morate biti [[Special:Userlogin|prijavljeni]]
za podešavanje korisničkih postavki.",
"prefslogintext" => "Prijavljeni ste kao \"$1\".
Interni identifikacijski broj je $2.",
"maintenancebacklink" => "Natrag na stranicu za održavanje",
"disambiguations" => "Razdvojbene stranice",
"disambiguationspage" => "Template:disambig",
-"disambiguationstext" => "Sljedeći su članci povezani na <i>razdvojbenu stranicu</i>. Morali bi biti povezani
+"disambiguationstext" => "Sljedeći su članci povezani na <i>razdvojbenu stranicu</i>. Morali bi biti povezani
na odgovarajući sadržaj.<br />Stranica je razdvojbena ako je povezana iz $1.<br />Poveznice
iz sekundarnih prostora ovdje <i>nisu</i> prikazane.",
"doubleredirects" => "Dvostruko preusmjeravanje",
"deletepage" => "Izbriši stranicu",
"confirm" => "Potvrdi",
"excontent" => "sadržaj je bio:",
-'excontentauthor' => "sadržaj je bio: '$1' (a jedini urednik '$2')",
+'excontentauthor' => "sadržaj je bio: '$1' (a jedini urednik '$2')",
"exbeforeblank" => "sadržaj prije brisanja je bio: '$1'",
"exblank" => "stranica je bila prazna",
"confirmdelete" => "Potvrdi brisanje",
'movepagetext' => 'Korištenjem ovog obrasca ćete preimenovati stranicu i premjestiti sve stare izmjene
na novo ime.
Stari će se naslov pretvoriti u stranicu koja automatski preusmjerava na novi naslov.
-Poveznice na stari naslov ostat će iste; bilo bi dobro da
+Poveznice na stari naslov ostat će iste; bilo bi dobro da
[[Special:Maintenance|provjerite]] je li preusmjeravanje ispravno.
Na vama je da se pobrinete da poveznice i dalje vode tamo
gdje bi trebale.
-Stranica se \'\'\'neće\'\'\' premjestiti ako već postoji stranica s novim naslovom,
-osim u slučaju prazne stranice ili stranice za preusmjeravanje koja nema
-nikakvih starih izmjena. To znači: 1. ako pogriješite, možete opet preimenovati
+Stranica se \'\'\'neće\'\'\' premjestiti ako već postoji stranica s novim naslovom,
+osim u slučaju prazne stranice ili stranice za preusmjeravanje koja nema
+nikakvih starih izmjena. To znači: 1. ako pogriješite, možete opet preimenovati
stranicu na stari naslov, 2. ne može vam se dogoditi da izbrišete neku postojeću stranicu.
<b>OPREZ!</b>
*pod novim imenom već postoji stranica za razgovor s nekim sadržajem, ili
*maknete kvačicu u kućici na dnu ove stranice.
-U tim slučajevima ćete morati sami premjestiti ili iskopirati stranicu za razgovor,
+U tim slučajevima ćete morati sami premjestiti ili iskopirati stranicu za razgovor,
ako to želite.',
'movearticle' => 'Premjesti stranicu',
"movenologin" => "Niste prijavljeni",
'recreate' => 'Vrati',
'tooltip-recreate' => '',
-'unusedcategoriestext' => 'Na navedenim stranicama kategorija nema ni jednog članka ili potkategorije.',
+'unusedcategoriestext' => 'Na navedenim stranicama kategorija nema ni jednog članka ili potkategorije.',
'unit-pixel' => 'px',
'sitematrix' => 'Tablica Wikimedijinih projekata',
);
function getDateFormats() {
return false;
}
-
+
function getQuickbarSettings() {
global $wgQuickbarSettingsHr;
return $wgQuickbarSettingsHr;
}
-
+
function getSkinNames() {
global $wgSkinNamesHr;
return $wgSkinNamesHr;
substr( $ts, 0, 4 ) . "." ;
return $d;
}
-
+
function getMessage( $key ) {
global $wgAllMessagesHr;
if( isset( $wgAllMessagesHr[$key] ) ) {
function formatNum( $number, $year = false ) {
return $year ? $number : strtr($this->commafy($number), '.,', ',.' );
}
-
+
function fallback8bitEncoding() {
return "iso-8859-2";
}
'databaseerror' => 'データベース・エラー',
'dberrortext' => 'データベース検索の文法エラー。これは恐らくソフトウェアのバグを表しています。
-最後に実行を試みた問い合わせ:
+最後に実行を試みた問い合わせ:
<blockquote><tt>$1</tt></blockquote>
from within function "<tt>$2</tt>". MySQL returned error "<tt>$3: $4</tt>".',
# Monobook.js: tooltips and access keys for monobook
'Monobook.js' => "/* tooltips and access keys */
ta = new Object();
-ta['pt-userpage'] = new Array('.','自分の利用者ページ');
-ta['pt-anonuserpage'] = new Array('.','あなたのIPアドレス用の利用者ページ');
-ta['pt-mytalk'] = new Array('n','自分の会話ページ');
-ta['pt-anontalk'] = new Array('n','あなたのIPアドレスからなされた編集の会話ページ');
-ta['pt-preferences'] = new Array('','オプションの変更');
-ta['pt-watchlist'] = new Array('l','変更を監視しているページの一覧');
-ta['pt-mycontris'] = new Array('y','自分の投稿記録');
-ta['pt-login'] = new Array('o','ログインすることが推奨されますが、しなくても構いません。');
-ta['pt-anonlogin'] = new Array('o','ログインすることが推奨されますが、しなくても構いません。');
-ta['pt-logout'] = new Array('o','ログアウト');
-ta['ca-talk'] = new Array('t','項目のノート');
-ta['ca-edit'] = new Array('e','このページを編集できます。投稿の前に「プレビューを実行」ボタンを使ってください。');
-ta['ca-addsection'] = new Array('+','このページにコメントを加える');
-ta['ca-viewsource'] = new Array('e','このページは保護されています。ページのソースを閲覧できます。');
-ta['ca-history'] = new Array('h','このページの過去の版');
-ta['ca-protect'] = new Array('=','このページを保護');
-ta['ca-delete'] = new Array('d','このページを削除');
-ta['ca-undelete'] = new Array('d','削除されたページを復帰する');
-ta['ca-move'] = new Array('m','このページを移動');
-ta['ca-watch'] = new Array('w','このページをウォッチリストへ追加');
-ta['ca-unwatch'] = new Array('w','このページをウォッチリストから外す');
-ta['search'] = new Array('f','ウィキ内を検索');
-ta['p-logo'] = new Array('','メインページ');
-ta['n-mainpage'] = new Array('z','メインページに移動');
-ta['n-portal'] = new Array('','このプロジェクトについて、あなたのできることを探す場所です');
-ta['n-currentevents'] = new Array('','最近の出来事');
-ta['n-recentchanges'] = new Array('r','最近更新が行われたページの一覧');
-ta['n-randompage'] = new Array('x','ランダムに記事を選んで表示');
-ta['n-help'] = new Array('','ヘルプ・使い方');
-ta['n-sitesupport'] = new Array('','私たちをサポートしてください');
-ta['t-whatlinkshere'] = new Array('j','このページにリンクしているページの一覧');
-ta['t-recentchangeslinked'] = new Array('k','最近更新が行われたこのページのリンク先');
-ta['feed-rss'] = new Array('','このページのRSSフィード');
-ta['feed-atom'] = new Array('','このページのAtomフィード');
-ta['t-contributions'] = new Array('','ユーザーの投稿記録');
-ta['t-emailuser'] = new Array('','このユーザーにメールを送信');
-ta['t-upload'] = new Array('u','画像やメディアファイルをアップロード');
-ta['t-specialpages'] = new Array('q','特別ページの一覧');
-ta['ca-nstab-main'] = new Array('c','本文を表示');
-ta['ca-nstab-user'] = new Array('c','利用者ページを表示');
-ta['ca-nstab-media'] = new Array('c','メディアページを表示');
-ta['ca-nstab-special'] = new Array('','これは特別ページです。編集することはできません。');
-ta['ca-nstab-wp'] = new Array('a','{{SITENAME}}ページを表示');
-ta['ca-nstab-image'] = new Array('c','画像ページを表示');
-ta['ca-nstab-mediawiki'] = new Array('c','定型文を表示');
-ta['ca-nstab-template'] = new Array('c','テンプレートを表示');
-ta['ca-nstab-help'] = new Array('c','ヘルプページを表示');
+ta['pt-userpage'] = new Array('.','自分の利用者ページ');
+ta['pt-anonuserpage'] = new Array('.','あなたのIPアドレス用の利用者ページ');
+ta['pt-mytalk'] = new Array('n','自分の会話ページ');
+ta['pt-anontalk'] = new Array('n','あなたのIPアドレスからなされた編集の会話ページ');
+ta['pt-preferences'] = new Array('','オプションの変更');
+ta['pt-watchlist'] = new Array('l','変更を監視しているページの一覧');
+ta['pt-mycontris'] = new Array('y','自分の投稿記録');
+ta['pt-login'] = new Array('o','ログインすることが推奨されますが、しなくても構いません。');
+ta['pt-anonlogin'] = new Array('o','ログインすることが推奨されますが、しなくても構いません。');
+ta['pt-logout'] = new Array('o','ログアウト');
+ta['ca-talk'] = new Array('t','項目のノート');
+ta['ca-edit'] = new Array('e','このページを編集できます。投稿の前に「プレビューを実行」ボタンを使ってください。');
+ta['ca-addsection'] = new Array('+','このページにコメントを加える');
+ta['ca-viewsource'] = new Array('e','このページは保護されています。ページのソースを閲覧できます。');
+ta['ca-history'] = new Array('h','このページの過去の版');
+ta['ca-protect'] = new Array('=','このページを保護');
+ta['ca-delete'] = new Array('d','このページを削除');
+ta['ca-undelete'] = new Array('d','削除されたページを復帰する');
+ta['ca-move'] = new Array('m','このページを移動');
+ta['ca-watch'] = new Array('w','このページをウォッチリストへ追加');
+ta['ca-unwatch'] = new Array('w','このページをウォッチリストから外す');
+ta['search'] = new Array('f','ウィキ内を検索');
+ta['p-logo'] = new Array('','メインページ');
+ta['n-mainpage'] = new Array('z','メインページに移動');
+ta['n-portal'] = new Array('','このプロジェクトについて、あなたのできることを探す場所です');
+ta['n-currentevents'] = new Array('','最近の出来事');
+ta['n-recentchanges'] = new Array('r','最近更新が行われたページの一覧');
+ta['n-randompage'] = new Array('x','ランダムに記事を選んで表示');
+ta['n-help'] = new Array('','ヘルプ・使い方');
+ta['n-sitesupport'] = new Array('','私たちをサポートしてください');
+ta['t-whatlinkshere'] = new Array('j','このページにリンクしているページの一覧');
+ta['t-recentchangeslinked'] = new Array('k','最近更新が行われたこのページのリンク先');
+ta['feed-rss'] = new Array('','このページのRSSフィード');
+ta['feed-atom'] = new Array('','このページのAtomフィード');
+ta['t-contributions'] = new Array('','ユーザーの投稿記録');
+ta['t-emailuser'] = new Array('','このユーザーにメールを送信');
+ta['t-upload'] = new Array('u','画像やメディアファイルをアップロード');
+ta['t-specialpages'] = new Array('q','特別ページの一覧');
+ta['ca-nstab-main'] = new Array('c','本文を表示');
+ta['ca-nstab-user'] = new Array('c','利用者ページを表示');
+ta['ca-nstab-media'] = new Array('c','メディアページを表示');
+ta['ca-nstab-special'] = new Array('','これは特別ページです。編集することはできません。');
+ta['ca-nstab-wp'] = new Array('a','{{SITENAME}}ページを表示');
+ta['ca-nstab-image'] = new Array('c','画像ページを表示');
+ta['ca-nstab-mediawiki'] = new Array('c','定型文を表示');
+ta['ca-nstab-template'] = new Array('c','テンプレートを表示');
+ta['ca-nstab-help'] = new Array('c','ヘルプページを表示');
ta['ca-nstab-category'] = new Array('c','カテゴリページを表示');",
# image deletion
もし {{SITENAME}} について身に覚えがない場合は、リンクを開かないでください。
確認用コードは $4 に期限切れになります。
---
+--
{{SITENAME}} メールアドレス確認システム
{{SERVER}}/',
'filedeleteerror' => 'Could not delete file \'$1\'.',
'filenotfound' => 'Could not find file \'$1\'.',
'unexpected' => 'Unexpected value: \'$1\'=\'$2\'.',
-'formerror' => 'Error: could not submit form',
+'formerror' => 'Error: could not submit form',
'badarticleerror' => 'This action cannot be performed on this page.',
'cannotdelete' => 'Could not delete the page or image specified.',
법적문제로 프로젝트가 위협받을 수 있습니다. 저작권 문제에 각별히 유의해 주세요.
자세한 내용은 [[{{ns:4}}:저작권|저작권]]을 참고하세요.
-[http://meta.wikipedia.org/wiki/Special:Recentchanges 최근 메타 토론]도
+[http://meta.wikipedia.org/wiki/Special:Recentchanges 최근 메타 토론]도
읽어 보시고, 국제적인 위키백과 공동체에 참여해 보세요.',
'rcloaderr' => '최근 바뀜을 받고 있습니다.',
'rcnote' => '다음이 최근 <strong>$2</strong>일간 바뀐 <strong>$1</strong>개의 문서입니다.',
'1movedto2_redir' => '\'$1\' pervadintas į \'$2\' (anksčiau buvo nukreipiamasis)',
'Monobook.js' => '/* tooltips and access keys */
ta = new Object();
-ta[\'pt-userpage\'] = new Array(\'.\',\'Mano vartotojo puslapis\');
-ta[\'pt-anonuserpage\'] = new Array(\'.\',\'Vartotojo puslapis jūsų ip ardesui\');
-ta[\'pt-mytalk\'] = new Array(\'n\',\'Mano aptarimų puslapis\');
-ta[\'pt-anontalk\'] = new Array(\'n\',\'Pakeitimų aptarimas, darytus naudojant šį IP adresą\');
-ta[\'pt-preferences\'] = new Array(\'\',\'Mano nustatymai\');
-ta[\'pt-watchlist\'] = new Array(\'l\',\'Sąrašas straipsnių, kuriuos jūs pasirinkote stebėti.\');
-ta[\'pt-mycontris\'] = new Array(\'y\',\'Mano darytų keitimų sąrašas\');
-ta[\'pt-login\'] = new Array(\'o\',\'Rekomenduojame prisijungti, nors tai nėra privaloma.\');
-ta[\'pt-anonlogin\'] = new Array(\'o\',\'Rekomenduojame prisijungti, nors tai nėra privaloma.\');
-ta[\'pt-logout\'] = new Array(\'o\',\'Atsijungti\');
-ta[\'ca-talk\'] = new Array(\'t\',\'Straipsnio aptarimas\');
-ta[\'ca-edit\'] = new Array(\'e\',\'Jūs galite redaguoti šį straipsnį. Nepamirškite peržiūrėti pakeitimų prieš užsaugodami.\');
-ta[\'ca-addsection\'] = new Array(\'+\',\'Pradėti naują aptarimo temą.\');
-ta[\'ca-viewsource\'] = new Array(\'e\',\'Puslapis yra užrakintas. Galite tik pažiūrėti turinį.\');
-ta[\'ca-history\'] = new Array(\'h\',\'Ankstesnės puslapio versijos.\');
-ta[\'ca-protect\'] = new Array(\'=\',\'Uždrausti šį puslapį\');
-ta[\'ca-delete\'] = new Array(\'d\',\'Ištrinti šį puslapį\');
-ta[\'ca-undelete\'] = new Array(\'d\',\'Atstatyti puslapį su visais darytais keitimais\');
-ta[\'ca-move\'] = new Array(\'m\',\'Pervadinti straipsnį\');
-ta[\'ca-nomove\'] = new Array(\'\',\'Neturite teisių pervadinti šį straipsnį\');
-ta[\'ca-watch\'] = new Array(\'w\',\'Pridėti straipsnį į stebimųjų sąrašą\');
-ta[\'ca-unwatch\'] = new Array(\'w\',\'Išimti straipsnį iš stebimųjų sąrašo\');
-ta[\'search\'] = new Array(\'f\',\'Ieškoti projekte {{SITENAME}}\');
-ta[\'p-logo\'] = new Array(\'\',\'Į pradinį puslapį\');
-ta[\'n-mainpage\'] = new Array(\'z\',\'Apsilankykite pradiniame puslapyje\');
-ta[\'n-portal\'] = new Array(\'\',\'Apie projektą, ką galima daryti, kur ką rasti\');
-ta[\'n-currentevents\'] = new Array(\'\',\'Find background information on current events\');
-ta[\'n-recentchanges\'] = new Array(\'r\',\'Sąrašas paskutinių keitimų.\');
-ta[\'n-randompage\'] = new Array(\'x\',\'Parinkti atsitiktinį straipsnį\');
-ta[\'n-help\'] = new Array(\'\',\'Vieta, kur rasite rūpimus atsakymus.\');
-ta[\'n-sitesupport\'] = new Array(\'\',\'Aukokite projektui\');
-ta[\'t-whatlinkshere\'] = new Array(\'j\',\'Sąrašas straipsnių, rodančių į čia\');
-ta[\'t-recentchangeslinked\'] = new Array(\'k\',\'Paskutiniai keitimai straipsniuose, pasiekiamuose iš šio straipsnio\');
-ta[\'feed-rss\'] = new Array(\'\',\'RSS feed for this page\');
-ta[\'feed-atom\'] = new Array(\'\',\'Atom feed for this page\');
-ta[\'t-contributions\'] = new Array(\'\',\'Pažiūrėti vartotojo įnašą - darytus keitimus\');
-ta[\'t-emailuser\'] = new Array(\'\',\'Siųsti el.laišką vartotojui\');
-ta[\'t-upload\'] = new Array(\'u\',\'Įdėti paveikslėlį ar media failą\');
-ta[\'t-specialpages\'] = new Array(\'q\',\'Specialiųjų puslapių sąrašas\');
-ta[\'ca-nstab-main\'] = new Array(\'c\',\'Pereiti į straipsnio turinį\');
-ta[\'ca-nstab-user\'] = new Array(\'c\',\'Rodyti vartotojo puslapį\');
-ta[\'ca-nstab-media\'] = new Array(\'c\',\'Rodyti media puslapį\');
-ta[\'ca-nstab-special\'] = new Array(\'\',\'Šis puslapis yra specialusis - jo negalima redaguoti.\');
-ta[\'ca-nstab-wp\'] = new Array(\'a\',\'Rodyti projekto puslapį\');
-ta[\'ca-nstab-image\'] = new Array(\'c\',\'Rodyti paveikslėlio puslapį\');
-ta[\'ca-nstab-mediawiki\'] = new Array(\'c\',\'Rodyti sisteminį pranešimą\');
-ta[\'ca-nstab-template\'] = new Array(\'c\',\'Rodyti šabloną\');
-ta[\'ca-nstab-help\'] = new Array(\'c\',\'Rodyti pagalbos puslapį\');
+ta[\'pt-userpage\'] = new Array(\'.\',\'Mano vartotojo puslapis\');
+ta[\'pt-anonuserpage\'] = new Array(\'.\',\'Vartotojo puslapis jūsų ip ardesui\');
+ta[\'pt-mytalk\'] = new Array(\'n\',\'Mano aptarimų puslapis\');
+ta[\'pt-anontalk\'] = new Array(\'n\',\'Pakeitimų aptarimas, darytus naudojant šį IP adresą\');
+ta[\'pt-preferences\'] = new Array(\'\',\'Mano nustatymai\');
+ta[\'pt-watchlist\'] = new Array(\'l\',\'Sąrašas straipsnių, kuriuos jūs pasirinkote stebėti.\');
+ta[\'pt-mycontris\'] = new Array(\'y\',\'Mano darytų keitimų sąrašas\');
+ta[\'pt-login\'] = new Array(\'o\',\'Rekomenduojame prisijungti, nors tai nėra privaloma.\');
+ta[\'pt-anonlogin\'] = new Array(\'o\',\'Rekomenduojame prisijungti, nors tai nėra privaloma.\');
+ta[\'pt-logout\'] = new Array(\'o\',\'Atsijungti\');
+ta[\'ca-talk\'] = new Array(\'t\',\'Straipsnio aptarimas\');
+ta[\'ca-edit\'] = new Array(\'e\',\'Jūs galite redaguoti šį straipsnį. Nepamirškite peržiūrėti pakeitimų prieš užsaugodami.\');
+ta[\'ca-addsection\'] = new Array(\'+\',\'Pradėti naują aptarimo temą.\');
+ta[\'ca-viewsource\'] = new Array(\'e\',\'Puslapis yra užrakintas. Galite tik pažiūrėti turinį.\');
+ta[\'ca-history\'] = new Array(\'h\',\'Ankstesnės puslapio versijos.\');
+ta[\'ca-protect\'] = new Array(\'=\',\'Uždrausti šį puslapį\');
+ta[\'ca-delete\'] = new Array(\'d\',\'Ištrinti šį puslapį\');
+ta[\'ca-undelete\'] = new Array(\'d\',\'Atstatyti puslapį su visais darytais keitimais\');
+ta[\'ca-move\'] = new Array(\'m\',\'Pervadinti straipsnį\');
+ta[\'ca-nomove\'] = new Array(\'\',\'Neturite teisių pervadinti šį straipsnį\');
+ta[\'ca-watch\'] = new Array(\'w\',\'Pridėti straipsnį į stebimųjų sąrašą\');
+ta[\'ca-unwatch\'] = new Array(\'w\',\'Išimti straipsnį iš stebimųjų sąrašo\');
+ta[\'search\'] = new Array(\'f\',\'Ieškoti projekte {{SITENAME}}\');
+ta[\'p-logo\'] = new Array(\'\',\'Į pradinį puslapį\');
+ta[\'n-mainpage\'] = new Array(\'z\',\'Apsilankykite pradiniame puslapyje\');
+ta[\'n-portal\'] = new Array(\'\',\'Apie projektą, ką galima daryti, kur ką rasti\');
+ta[\'n-currentevents\'] = new Array(\'\',\'Find background information on current events\');
+ta[\'n-recentchanges\'] = new Array(\'r\',\'Sąrašas paskutinių keitimų.\');
+ta[\'n-randompage\'] = new Array(\'x\',\'Parinkti atsitiktinį straipsnį\');
+ta[\'n-help\'] = new Array(\'\',\'Vieta, kur rasite rūpimus atsakymus.\');
+ta[\'n-sitesupport\'] = new Array(\'\',\'Aukokite projektui\');
+ta[\'t-whatlinkshere\'] = new Array(\'j\',\'Sąrašas straipsnių, rodančių į čia\');
+ta[\'t-recentchangeslinked\'] = new Array(\'k\',\'Paskutiniai keitimai straipsniuose, pasiekiamuose iš šio straipsnio\');
+ta[\'feed-rss\'] = new Array(\'\',\'RSS feed for this page\');
+ta[\'feed-atom\'] = new Array(\'\',\'Atom feed for this page\');
+ta[\'t-contributions\'] = new Array(\'\',\'Pažiūrėti vartotojo įnašą - darytus keitimus\');
+ta[\'t-emailuser\'] = new Array(\'\',\'Siųsti el.laišką vartotojui\');
+ta[\'t-upload\'] = new Array(\'u\',\'Įdėti paveikslėlį ar media failą\');
+ta[\'t-specialpages\'] = new Array(\'q\',\'Specialiųjų puslapių sąrašas\');
+ta[\'ca-nstab-main\'] = new Array(\'c\',\'Pereiti į straipsnio turinį\');
+ta[\'ca-nstab-user\'] = new Array(\'c\',\'Rodyti vartotojo puslapį\');
+ta[\'ca-nstab-media\'] = new Array(\'c\',\'Rodyti media puslapį\');
+ta[\'ca-nstab-special\'] = new Array(\'\',\'Šis puslapis yra specialusis - jo negalima redaguoti.\');
+ta[\'ca-nstab-wp\'] = new Array(\'a\',\'Rodyti projekto puslapį\');
+ta[\'ca-nstab-image\'] = new Array(\'c\',\'Rodyti paveikslėlio puslapį\');
+ta[\'ca-nstab-mediawiki\'] = new Array(\'c\',\'Rodyti sisteminį pranešimą\');
+ta[\'ca-nstab-template\'] = new Array(\'c\',\'Rodyti šabloną\');
+ta[\'ca-nstab-help\'] = new Array(\'c\',\'Rodyti pagalbos puslapį\');
ta[\'ca-nstab-category\'] = new Array(\'c\',\'Rodyti kategorijos puslapį\');',
'about' => 'Apie',
'already_steward' => 'Vartotojas jau yra ūkvedys',
'already_sysop' => 'Vartotojas jau yra administratorius',
'alreadyloggedin' => '<strong>Jūs jau esate prisijungęs kaip vartotojas User $1!</strong><br />',
-'alreadyrolled' => 'Nepavyko atmesti paskutinio [[Vartotojas:$2|$2]] ([[Vartotojo aptarimas:$2|aptarimas]]) daryto straipsnio [[$1]] keitimo; kažkas jau pakeitė straipsnį arba suspėjo pirmas atmesti keitimą.
+'alreadyrolled' => 'Nepavyko atmesti paskutinio [[Vartotojas:$2|$2]] ([[Vartotojo aptarimas:$2|aptarimas]]) daryto straipsnio [[$1]] keitimo; kažkas jau pakeitė straipsnį arba suspėjo pirmas atmesti keitimą.
Paskutimas keitimas darytas vartotojo [[Vartotojas:$3|$3]] ([[Vartotojo aptarimas:$3|Aptarimas]]).',
'ancientpages' => 'Seniausi straipsniai',
'badfiletype' => '".$1" yra nerekomenduojamas paveikslėlio bylos formatas.',
'badipaddress' => 'Neteisingas IP adresas',
'badquery' => 'Bloga paieškos užklausa',
-'badquerytext' => 'Nepavyko apdoroti Jūsų paieškos užklausos.
-Tai galėjo būti dėl trumpesnio nei trijų simbolių paieškos rakto, arba neteisingai suformuotos užklausos (pavyzdžiui "namas and and tvartas").
+'badquerytext' => 'Nepavyko apdoroti Jūsų paieškos užklausos.
+Tai galėjo būti dėl trumpesnio nei trijų simbolių paieškos rakto, arba neteisingai suformuotos užklausos (pavyzdžiui "namas and and tvartas").
Pamėginkite kitokią užklausą.',
'badretype' => 'Įvesti slaptažodžiai nesutampa.',
'badtitle' => 'Blogas pavadinimas',
kartu su visa istorija iš duomenų bazės.
Prašome patvirtinti kad jūs norite tai padaryti,
žinote kokios yra veiksmo pasekmės,
-ir kad jūs tai darote nenusižengdamas
+ir kad jūs tai darote nenusižengdamas
[[Wikipedia:Policy|Wikipedijos Politikai]].',
'confirmemail' => 'Patvirtinkite el.pašto adresą',
'confirmemail_body' => 'Kažkas (tikriausiai jūs) IP adresu užregistravo
<blockquote><tt>$1</tt></blockquote>
iš funkcijos: "<tt>$2</tt>".
Klaida: "<tt>$3: $4</tt>".',
-'dberrortextcl' => 'Įvyko duomenų bazės užklausos klaida.
+'dberrortextcl' => 'Įvyko duomenų bazės užklausos klaida.
Paskutinė mėginta duomenų bazės užklausa buvo:
$1
po vieną pavadinimą eilutėje, taip pat pasirinkite ar norite eksportuoti ir istoriją
ar tik dabartinę versiją su paskutinio redagavimo informacija.
-Norėdami eksportuoti vieno puslapio dabartinę versiją, galite naudoti nuorodą, pvz. [[{{ns:Special}}:Export/Lietuva]]
+Norėdami eksportuoti vieno puslapio dabartinę versiją, galite naudoti nuorodą, pvz. [[{{ns:Special}}:Export/Lietuva]]
straipsniui [[Lietuva]].',
'extlink_sample' => 'http://www.pavyzdys.lt Nuorodos pavadinimas',
'extlink_tip' => 'Išorinė nuoroda (nepamirškite http:// prefikso)',
'nchanges' => '$1 pakeitimai',
'newarticle' => '(Naujas)',
'newarticletext' => 'Jūs patekote į neegzistuojančio straipsnio puslapį.
-Norėdami sukurti straipsnį, pradėkite žemiau esančiame įvedimo lauke
+Norėdami sukurti straipsnį, pradėkite žemiau esančiame įvedimo lauke
(plačiau [[Help:Kaip pradėti puslapį|apie puslapių kūrimą]]).
Jei patekote čia per klaidą, paprasčiausiai spustelkite naršyklės mygtuką \'atgal\' (\'\'\'back\'\'\').<br />
\'\'\'Nepamirškite\'\'\' straipsnio turinį pateikti taip, kad žmogus suprastu tekstą be konteksto (dažniausiai žmonės pateks į šį puslapį visai kitu keliu, nei patekote jūs).',
'protectedpage' => 'Užrakintas puslapis',
'protectedpagewarning' => '<strong>DĖMESIO: Šis puslapis yra užrakintas ir jį redaguoti gali tik administratoriaus teises turintys vartotojai. Nepamirškite laikytis
[[Wikipedija:Puslapių rakinimas|užrakintų puslapių]] taisyklių.</strong>',
-'protectedtext' => 'Šis puslapis yra užrakintas, saugant jį nuo redagavimo;
+'protectedtext' => 'Šis puslapis yra užrakintas, saugant jį nuo redagavimo;
tai gali būti padaryta dėl skirtingų priežasčių, plačiau -
[[Wikipedia:Puslapių rakinimas|Puslapių rakinimas]].
Rekomenduojami formatai yra: JPEG - fotografijoms, PNG -
schemoms ir kitiems ikoniniams paveikslėliams, OGG - garsams.
Prašome failus vardinti vienareikšmiai, kad nekiltų painiavos.
-Norėdami panaudoti įkeltą paveikslėlį straipsnyje, naudokite tokio tipo nuorodas -
+Norėdami panaudoti įkeltą paveikslėlį straipsnyje, naudokite tokio tipo nuorodas -
\'\'\'<nowiki>[[{{ns:6}}:file.jpg]]</nowiki>\'\'\' arba
\'\'\'<nowiki>[[{{ns:6}}:file.png|paveikslėlio pavadinimas]]</nowiki>\'\'\' arba
\'\'\'<nowiki>[[{{ns:-2}}:file.ogg]]</nowiki>\'\'\' garsams.
Du må stadfesta om du verkjeleg vil nyopprette denne sida.',
'recreate' => 'Nyopprett',
'tooltip-recreate' => 'Ved å trykkje på «Nyopprett» vert sida oppretta på nytt.',
-
+
'unit-pixel' => 'px',
);
MAG_NOCONTENTCONVERT => array( 0, '__NOCONTENTCONVERT__', '__NOCC__'),
MAG_CURRENTWEEK => array( 1, 'CURRENTWEEK' ),
MAG_CURRENTDOW => array( 1, 'CURRENTDOW' ),
- MAG_REVISIONID => array( 1, 'REVISIONID' ),
+ MAG_REVISIONID => array( 1, 'REVISIONID' ),
);
#-------------------------------------------------------------------
Function: $1<br />
Query: $2",
'viewsource' => 'Ver fonte',
-'protectedtext' => "Esta página foi protegida para não permitir edições; existem inúmeros motivos para
+'protectedtext' => "Esta página foi protegida para não permitir edições; existem inúmeros motivos para
ocorrer esta situação, por favor consulte [[Project:Protected page]].
Pode ver e copiar o código fonte desta página:",
'noemail' => "Não existe um endereço de e-mail associado ao utilizador \"$1\".",
'passwordsent' => "Uma nova palavra-chave encontra-se a ser enviada para o endereço de email associado ao utilizador \"$1\".
Por favor, volte a efectuar a autentificação ao recebê-la.",
-'eauthentsent' => "Um email de confirmação foi enviado para o endereço de correio electrónico nomeado.
-Antes de qualquer outro email seja enviado para a conta, terá seguir as instruções no email,
+'eauthentsent' => "Um email de confirmação foi enviado para o endereço de correio electrónico nomeado.
+Antes de qualquer outro email seja enviado para a conta, terá seguir as instruções no email,
de modo a confirmar que a conta é mesmo sua.",
'loginend' => '',
'signupend' => '{{int:loginend}}',
'updated' => '(Actualizado)',
'note' => '<strong>Nota:</strong> ',
'previewnote' => '<strong>Isto é apenas uma previsão, as modificações ainda não foram salvas!</strong>',
-'session_fail_preview' => '<strong>Pedimos desculpas, mas não foi possível processar a sua edição devido à perda de dados da sua sessão.
+'session_fail_preview' => '<strong>Pedimos desculpas, mas não foi possível processar a sua edição devido à perda de dados da sua sessão.
Por favor tente novamente. Caso continue a não funcionar, tente sair e voltar a entrar na sua conta.</strong>',
'previewconflict' => 'Esta previsão reflete o texto que está na área de edição acima e como ele aparecerá se você escolher salvar.',
'importing' => "Importando $1",
Se não deseja ver as suas contribuições alteradas sem consentimento, não as envie para esta Wiki.<br />
Adicionalmente, estar-nos-á a dar a sua palavra em como os teus são da sua autoria, ou copiados por fontes de domínio público ou similares (veja mais detalhes em $1).
<strong>NÃO ENVIE MATERIAL COM DIREITOS DE AUTOR SEM PERMISSÃO!</strong>",
-'longpagewarning' => "<strong>AVISO: Esta página ocupa $1; alguns browsers verificam
+'longpagewarning' => "<strong>AVISO: Esta página ocupa $1; alguns browsers verificam
problemas em editar páginas maiores que 32kb.
Por favor, considere seccionar a página em secções de menor dimensão.</strong>",
'readonlywarning' => '<strong>AVISO: A base de dados foi bloqueada para manutenção, pelo que não poderá salvar a sua edição neste momento. Pode, no entanto, copiar o seu texto num editor externo e guardá-lo para posterior submissão.</strong>',
<input type="hidden" name="num" value="50" />
<input type="hidden" name="ie" value="$2" />
<input type="hidden" name="oe" value="$2" />
-
+
<input type="text" name="q" size="31" maxlength="255" value="$1" />
<input type="submit" name="btnG" value="$3" />
<div>
# group editing
'groups-editgroup' => 'Editar grupo',
'groups-addgroup' => 'Adicionar grupo',
-'groups-editgroup-preamble' => 'If the name or description starts with a colon, the
-remainder will be treated as a message name, and hence the text will be localised
+'groups-editgroup-preamble' => 'If the name or description starts with a colon, the
+remainder will be treated as a message name, and hence the text will be localised
using the MediaWiki namespace',
'groups-editgroup-name' => 'Nome do grupo: ',
'groups-editgroup-description' => 'Group description (max 255 characters):<br />',
'userrights-logcomment' => 'Alterado membro do grupo de $1 para $2',
# Default group names and descriptions
-#
+#
'group-anon-name' => 'Anónimos',
'group-anon-desc' => 'Utilizadores anónimos',
'group-loggedin-name' => 'Utilizador',
"
Utilize o formulário abaixo para carregar novos ficheiros,
para ver ou pesquisar imagens anteriormente carregadas
-consulte a [[Special:Imagelist|lista de ficheiros carregados]],
+consulte a [[Special:Imagelist|lista de ficheiros carregados]],
carregamentos e eliminações são também registados no [[Special:Log|registo do projecto]].
Para incluír a imagem numa página, utilize o link na forma de
-'''[[{{ns:6}}:ficheiro.jpg]]''',
+'''[[{{ns:6}}:ficheiro.jpg]]''',
'''[[{{ns:6}}:ficheiro.png|texto]]''' ou
'''[[{{ns:-2}}:ficheiro.ogg]]''' para uma ligação directa ao ficheiro.",
'uploadlog' => 'registo de carregamento',
para enviar um e-mail a outros utilizadores.",
'emailuser' => 'Contactar este utilizador',
'emailpage' => 'Contactar utilizador',
-'emailpagetext' => 'Se o utilizador introduziu um endereço válido de e-mail
+'emailpagetext' => 'Se o utilizador introduziu um endereço válido de e-mail
nas suas preferências, poderá usar o formulário abaixo para lhe enviar uma mensagem.
-O endereço que introduziu nas suas preferências irá aparecer no campo "From" do e-mail
+O endereço que introduziu nas suas preferências irá aparecer no campo "From" do e-mail
para que o destinatário lhe possa responder.',
'usermailererror' => 'Objecto de correio retornou um erro: ',
'defemailsubject' => "E-mail: {{SITENAME}}",
'movereason' => 'Motivo',
'revertmove' => 'reverter',
'delete_and_move' => 'Eliminar e mover',
-'delete_and_move_text' =>
+'delete_and_move_text' =>
'==Eliminação necesária==
O artigo destinatário "[[$1]]" já existe. Deseja o eliminar de modo a poder mover?',
'delete_and_move_reason' => 'Eliminada para poder mover outra página para este título',
'showhidebots' => '($1 robôs)',
'noimages' => 'Nada para ver.',
-# short names for language variants used for language conversion links.
+# short names for language variants used for language conversion links.
# to disable showing a particular link, set it to 'disable', e.g.
# 'variantname-zh-sg' => 'disable',
'variantname-zh-cn' => 'cn',
'undeleterevisions' => 'В архиве $1 версий',
'undeletehistory' => 'Если вы восстановите страницу, все версии будут также восстановлены, вместе с журналом изменений.
Если с момента удаления была создана новая страница с таким же названием, восстановленные версии будут указаны в журнале изменений перед новыми записями, и текущая версия существующей страницы автоматически заменена не будет.',
-'undeletehistorynoadmin' => 'Статья была удалена. Причина удаления и список участников редактировавших статью до её удаления показаны ниже.
+'undeletehistorynoadmin' => 'Статья была удалена. Причина удаления и список участников редактировавших статью до её удаления показаны ниже.
Текст удалённой статьи могут просмотреть только администраторы.',
'undeleterevision' => 'Стёртая версия от $1',
'undeletebtn' => 'Восстановить!',
'emailfrom' => 'Nga',
'emailmessage' => 'Mesazh',
'emailpage' => 'Dërgo e-mail përdoruesve',
-'emailpagetext' => 'Në qoftë se ky përdorues ka dhënë një adresë të saktë në parapëlqimet, formulari më poshtë do t\'i dërgojë një mesazh.
+'emailpagetext' => 'Në qoftë se ky përdorues ka dhënë një adresë të saktë në parapëlqimet, formulari më poshtë do t\'i dërgojë një mesazh.
Adresa e email-it që keni dhënë në parapëlqimet do të duket si pjesa "From" e adresës së mesazhit, kështuqë marrësi do të ketë mundësi tu përgjigjet.',
'emailsend' => 'Dërgo',
shkoni tek [[Speciale:Imagelist|lista e figurave të dhëna]].
Dhëniet dhe grisjet janë të rregjistruara në [[Speciale:Log|faqen e rregjistrave]].
-Përdorni formularin e më poshtëm për të dhënë skedarë të figurave të reja për tu përdorur në illustrimet e artikujve. Për shumicën e shfletuesve, do të shihni një "Browse..." buton, i cili do të hapi dialogun standart të skedarëve të operating system që përdorni.
+Përdorni formularin e më poshtëm për të dhënë skedarë të figurave të reja për tu përdorur në illustrimet e artikujve. Për shumicën e shfletuesve, do të shihni një "Browse..." buton, i cili do të hapi dialogun standart të skedarëve të operating system që përdorni.
Për të vendosur një figurë në një artikull, përdorni lidhjen sipas formës \'\'\'<nowiki>[[figura:skedar.jpg]]</nowiki>\'\'\' ose \'\'\'<nowiki>[[figura:skedar.png|tekst përshkrues]]</nowiki>\'\'\'
ose \'\'\'<nowiki>[[media:skedar.ogg]]</nowiki> të tjerë.
'Monobook.js' => '
/* tooltips and access keys */
ta = new Object();
-ta[\'pt-userpage\'] = new Array(\'.\',\'Моја корисничка страница\');
-ta[\'pt-anonuserpage\'] = new Array(\'.\',\'Корисничка страна за ИП коју мењате као\');
-ta[\'pt-mytalk\'] = new Array(\'n\',\'Моја страна за разговор\');
-ta[\'pt-anontalk\'] = new Array(\'n\',\'Разговор о прилозима са ове ИП адресе\');
-ta[\'pt-preferences\'] = new Array(\'\',\'Моја корисничка подешавања\');
-ta[\'pt-watchlist\'] = new Array(\'l\',\'Списак чланака које надгледате.\');
-ta[\'pt-mycontris\'] = new Array(\'y\',\'Списак мојих прилога\');
-ta[\'pt-login\'] = new Array(\'o\',\'Пријава није обавезна, али доноси много користи.\');
-ta[\'pt-anonlogin\'] = new Array(\'o\',\'Пријава није обавезна, али доноси много користи.\');
-ta[\'pt-logout\'] = new Array(\'o\',\'Одјава са Википедије\');
-ta[\'ca-talk\'] = new Array(\'t\',\'Разговори о садржају чланка\');
-ta[\'ca-edit\'] = new Array(\'e\',\'Можете да уређујете овај чланак!\');
-ta[\'ca-addsection\'] = new Array(\'+\',\'Додајте свој коментар.\');
-ta[\'ca-viewsource\'] = new Array(\'e\',\'Овај чланак је закључан.\');
-ta[\'ca-history\'] = new Array(\'h\',\'Претходне верзије садржаја чланка.\');
-ta[\'ca-protect\'] = new Array(\'=\',\'Заштити страницу од будућих измена\');
-ta[\'ca-delete\'] = new Array(\'d\',\'Брисање странице\');
-ta[\'ca-undelete\'] = new Array(\'d\',\'Враћање измена које су начињене пре брисања странице.\');
-ta[\'ca-move\'] = new Array(\'m\',\'Померање странице\');
-ta[\'ca-nomove\'] = new Array(\'\',\'Немате дозволу за померање ове странице\');
-ta[\'ca-watch\'] = new Array(\'w\',\'Додавање странице на Ваш списак надгладања.\');
-ta[\'ca-unwatch\'] = new Array(\'w\',\'Уклањање ове странице са Вашег списка надгледања.\');
-ta[\'search\'] = new Array(\'f\',\'Претраживање Википедије\');
-ta[\'p-logo\'] = new Array(\'\',\'Главна страна\');
-ta[\'n-mainpage\'] = new Array(\'z\',\'Посетите главну страну\');
-ta[\'n-portal\'] = new Array(\'\',\'Разговор о било чему што се тиче Википедије.\');
-ta[\'n-currentevents\'] = new Array(\'\',\'Подаци о ономе на чему се тренутно ради.\');
-ta[\'n-recentchanges\'] = new Array(\'r\',\'Списак скорашњих измена на Википедији\');
-ta[\'n-randompage\'] = new Array(\'x\',\'Учитавање случајне странице\');
-ta[\'n-help\'] = new Array(\'\',\'Научите да уређујете Википедију!\');
-ta[\'n-sitesupport\'] = new Array(\'\',\'Подржите нас\');
-ta[\'t-whatlinkshere\'] = new Array(\'j\',\'Списак свих чланака који су повезани са овим\');
-ta[\'t-recentchangeslinked\'] = new Array(\'k\',\'Скорашње измене чланака на којима се налази линк ка овом чланку \');
-ta[\'feed-rss\'] = new Array(\'\',\'RSS за ову страницу\');
-ta[\'feed-atom\'] = new Array(\'\',\'Atom за ову страницу\');
-ta[\'t-contributions\'] = new Array(\'\',\'Списак прилога овог корисника\');
-ta[\'t-emailuser\'] = new Array(\'\',\'Слање електронског писма овом кориснику\');
-ta[\'t-upload\'] = new Array(\'u\',\'Слање слика и медија фајлова\');
-ta[\'t-specialpages\'] = new Array(\'q\',\'Списак свих специјалних страница\');
-ta[\'ca-nstab-main\'] = new Array(\'c\',\'Видети садржај чланка\');
-ta[\'ca-nstab-user\'] = new Array(\'c\',\'Видети корисничку страницу\');
-ta[\'ca-nstab-media\'] = new Array(\'c\',\'Видети медија фајл\');
-ta[\'ca-nstab-special\'] = new Array(\'\',\'Ово је специјална страница и зато је не можете самостално уређивати.\');
-ta[\'ca-nstab-wp\'] = new Array(\'c\',\'Видети пројекат страницу\');
-ta[\'ca-nstab-image\'] = new Array(\'c\',\'Видети страницу слике\');
-ta[\'ca-nstab-mediawiki\'] = new Array(\'c\',\'Видети системску поруку\');
-ta[\'ca-nstab-template\'] = new Array(\'c\',\'Видети шаблон\');
-ta[\'ca-nstab-help\'] = new Array(\'c\',\'Видети страницу за помоћ\');
+ta[\'pt-userpage\'] = new Array(\'.\',\'Моја корисничка страница\');
+ta[\'pt-anonuserpage\'] = new Array(\'.\',\'Корисничка страна за ИП коју мењате као\');
+ta[\'pt-mytalk\'] = new Array(\'n\',\'Моја страна за разговор\');
+ta[\'pt-anontalk\'] = new Array(\'n\',\'Разговор о прилозима са ове ИП адресе\');
+ta[\'pt-preferences\'] = new Array(\'\',\'Моја корисничка подешавања\');
+ta[\'pt-watchlist\'] = new Array(\'l\',\'Списак чланака које надгледате.\');
+ta[\'pt-mycontris\'] = new Array(\'y\',\'Списак мојих прилога\');
+ta[\'pt-login\'] = new Array(\'o\',\'Пријава није обавезна, али доноси много користи.\');
+ta[\'pt-anonlogin\'] = new Array(\'o\',\'Пријава није обавезна, али доноси много користи.\');
+ta[\'pt-logout\'] = new Array(\'o\',\'Одјава са Википедије\');
+ta[\'ca-talk\'] = new Array(\'t\',\'Разговори о садржају чланка\');
+ta[\'ca-edit\'] = new Array(\'e\',\'Можете да уређујете овај чланак!\');
+ta[\'ca-addsection\'] = new Array(\'+\',\'Додајте свој коментар.\');
+ta[\'ca-viewsource\'] = new Array(\'e\',\'Овај чланак је закључан.\');
+ta[\'ca-history\'] = new Array(\'h\',\'Претходне верзије садржаја чланка.\');
+ta[\'ca-protect\'] = new Array(\'=\',\'Заштити страницу од будућих измена\');
+ta[\'ca-delete\'] = new Array(\'d\',\'Брисање странице\');
+ta[\'ca-undelete\'] = new Array(\'d\',\'Враћање измена које су начињене пре брисања странице.\');
+ta[\'ca-move\'] = new Array(\'m\',\'Померање странице\');
+ta[\'ca-nomove\'] = new Array(\'\',\'Немате дозволу за померање ове странице\');
+ta[\'ca-watch\'] = new Array(\'w\',\'Додавање странице на Ваш списак надгладања.\');
+ta[\'ca-unwatch\'] = new Array(\'w\',\'Уклањање ове странице са Вашег списка надгледања.\');
+ta[\'search\'] = new Array(\'f\',\'Претраживање Википедије\');
+ta[\'p-logo\'] = new Array(\'\',\'Главна страна\');
+ta[\'n-mainpage\'] = new Array(\'z\',\'Посетите главну страну\');
+ta[\'n-portal\'] = new Array(\'\',\'Разговор о било чему што се тиче Википедије.\');
+ta[\'n-currentevents\'] = new Array(\'\',\'Подаци о ономе на чему се тренутно ради.\');
+ta[\'n-recentchanges\'] = new Array(\'r\',\'Списак скорашњих измена на Википедији\');
+ta[\'n-randompage\'] = new Array(\'x\',\'Учитавање случајне странице\');
+ta[\'n-help\'] = new Array(\'\',\'Научите да уређујете Википедију!\');
+ta[\'n-sitesupport\'] = new Array(\'\',\'Подржите нас\');
+ta[\'t-whatlinkshere\'] = new Array(\'j\',\'Списак свих чланака који су повезани са овим\');
+ta[\'t-recentchangeslinked\'] = new Array(\'k\',\'Скорашње измене чланака на којима се налази линк ка овом чланку \');
+ta[\'feed-rss\'] = new Array(\'\',\'RSS за ову страницу\');
+ta[\'feed-atom\'] = new Array(\'\',\'Atom за ову страницу\');
+ta[\'t-contributions\'] = new Array(\'\',\'Списак прилога овог корисника\');
+ta[\'t-emailuser\'] = new Array(\'\',\'Слање електронског писма овом кориснику\');
+ta[\'t-upload\'] = new Array(\'u\',\'Слање слика и медија фајлова\');
+ta[\'t-specialpages\'] = new Array(\'q\',\'Списак свих специјалних страница\');
+ta[\'ca-nstab-main\'] = new Array(\'c\',\'Видети садржај чланка\');
+ta[\'ca-nstab-user\'] = new Array(\'c\',\'Видети корисничку страницу\');
+ta[\'ca-nstab-media\'] = new Array(\'c\',\'Видети медија фајл\');
+ta[\'ca-nstab-special\'] = new Array(\'\',\'Ово је специјална страница и зато је не можете самостално уређивати.\');
+ta[\'ca-nstab-wp\'] = new Array(\'c\',\'Видети пројекат страницу\');
+ta[\'ca-nstab-image\'] = new Array(\'c\',\'Видети страницу слике\');
+ta[\'ca-nstab-mediawiki\'] = new Array(\'c\',\'Видети системску поруку\');
+ta[\'ca-nstab-template\'] = new Array(\'c\',\'Видети шаблон\');
+ta[\'ca-nstab-help\'] = new Array(\'c\',\'Видети страницу за помоћ\');
ta[\'ca-nstab-category\'] = new Array(\'c\',\'Видети страницу категорије\');',
'about' => 'О...',
'aboutpage' => '{{ns:4}}:О',
'apr' => 'апр',
'april' => 'април',
'article' => 'Чланак',
-'articleexists' => 'Страница под тим именом већ постоји, или је
+'articleexists' => 'Страница под тим именом већ постоји, или је
име које сте изабрали неисправно.
Молимо изаберите друго име.',
'articlepage' => 'Погледај чланак',
'mailmypassword' => 'Пошаљи ми нову лозинку',
'mailnologin' => 'Нема адресе за слање',
'mailnologintext' => 'Морате бити [[Special:Userlogin|пријављени]]
-и имати исправну адресу е-поште у вашим [[Special:Preferences|подешавањима]]
+и имати исправну адресу е-поште у вашим [[Special:Preferences|подешавањима]]
да бисте слали електронску пошту другим корисницима.',
'mainpage' => 'Главна страна',
'mainpagedocfooter' => 'Молимо видите [http://meta.wikimedia.org/wiki/MediaWiki_i18n документацију о подешавању интерфејса вашим потребама] и [http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide кориснички водич] за коришћење и помоћ при конфигурисању.',
'noemailtext' => 'Овај корисник није навео исправну адресу е-поште,
или је изабрао да не прима е-пошту од других корисника.',
'noemailtitle' => 'Нема адресе е-поште',
-'nogomatch' => 'Не постоји страница са оваквим насловом.
+'nogomatch' => 'Не постоји страница са оваквим насловом.
-Можете [[$1|написати чланак]] са овим насловом.
+Можете [[$1|написати чланак]] са овим насловом.
Молимо Вас претражите Википедију, пре креирања чланка да бисмо избегли дуплирање већ постојећег.',
'nohistory' => 'Не постоји историја измена за ову страницу.',
'searchquery' => 'Тражили сте "<a href="/wiki/$1">$1</a>" <a href="/wiki/Special:Allpages/$1">[Садржај]</a>',
'searchresults' => 'Резултати претраге',
'searchresultshead' => 'Подешавања резултата претраге',
-'searchresulttext' => '<!--
+'searchresulttext' => '<!--
За више информација о претраживању Википедије, погледајте [[{{ns:4}}:Тражење|Претраживање Википедије]].
-->',
'selectnewerversionfordiff' => 'Изабери новију верзију за упоређивање',
'perfcached' => 'Veriler daha önceden hazırlanmış olabilir. Bu sebeple güncel olmayabilir!',
'perfdisabled' => 'Özür dileriz! Bu özellik, veritabanını kullanılamayacak derecede yavaşlattığı için, geçici olarak kullanımdan çıkarıldı.',
'viewsource' => 'Kaynağı gör',
-'protectedtext' => 'Bu sayfa değiştirilmemesi için \'\'\'koruma altına alınmıştır\'\'\'. Bunun bir çok değişik sebebi olabilir. [[{{ns:4}}:Koruma altına alınmış sayfa|Koruma altına alınma sebepleri]] ile ilgili sayfaya gözatınız.
+'protectedtext' => 'Bu sayfa değiştirilmemesi için \'\'\'koruma altına alınmıştır\'\'\'. Bunun bir çok değişik sebebi olabilir. [[{{ns:4}}:Koruma altına alınmış sayfa|Koruma altına alınma sebepleri]] ile ilgili sayfaya gözatınız.
Bu sayfanın kaynak koduna bakıp kopyalayabilirsiniz:',
'logouttitle' => 'Oturumu kapat',
'welcomecreation' => '== Hoşgeldin, $1! ==
-Artık \'\'\'kayıtlı bir kullanıcısınız\'\'\'.
+Artık \'\'\'kayıtlı bir kullanıcısınız\'\'\'.
-Hemen \'\'\'sayfa yazmaya/değiştirmeye\'\'\' başlayabilirsiniz.
+Hemen \'\'\'sayfa yazmaya/değiştirmeye\'\'\' başlayabilirsiniz.
Soldaki [[Yardım:İçindekiler|yardıma]] tıklayarak işe başlayın. Kolay gelsin.',
'loginpagetitle' => 'Oturum aç',
'editconflict' => 'Değişiklik çakışması: $1',
'editing' => '"$1" sayfasını değiştirmektesiniz',
'editingsection' => '"$1" sayfasında bölüm değiştirmektesiniz',
-'explainconflict' => 'Siz sayfayı değiştirirken başka biri de değişiklik yaptı.
-Yukarıdaki yazı sayfanın şu anki halini göstermektedir.
+'explainconflict' => 'Siz sayfayı değiştirirken başka biri de değişiklik yaptı.
+Yukarıdaki yazı sayfanın şu anki halini göstermektedir.
Sizin değişiklikleriniz alta gösterilmiştir. Son değişiklerinizi yazının içine eklemeniz gerekecektir. "Sayfayı kaydet"e bastığınızda <b>sadece</b> yukarıdaki yazı kaydedilecektir. <br />',
'yourtext' => 'Sizin metniniz',
'editingold' => '\'\'\'Dikkat: Sayfanın eski bir sürümünde değişiklik yapmaktasınız. Kaydettiğinizde bu tarihli sürümden günümüze kadar olan değişiklikler yok olacaktır.\'\'\'',
Önceden yüklenmiş resimleri görmek için [[Special:Imagelist|resim listesine]] bakın,
yüklenenler ve silinmişler [[Special:Log/upload|yükleme kaydısayfasında da]] görülebilir.
-Sayfaya resim koymak için
+Sayfaya resim koymak için
'''<nowiki>[[{{ns:6}}:Örnek.jpg]]</nowiki>''',
'''<nowiki>[[{{ns:6}}:Örnek.png|açıklama]]</nowiki>''' veya doğrudan bağlantı için
'''<nowiki>[[{{ns:-2}}:Örnek.ogg]]</nowiki>''' .",
'fileexists' => 'Bu isimde bir dosya mevcut. Eğer değiştirmekten emin değilseniz ilk önce $1 dosyasına bir gözatın.',
'fileuploaded' => '$1 dosyası başarı ile yüklendi.
-Lütfen $2 bağlantısını takip ederek dosya ile ilgili açıklama yazısı yazınız. Dosya nerden geldi, kim tarafından ne zaman oluşturuldu ya da hakında bildiğiniz diğer bilgiler gibi.
+Lütfen $2 bağlantısını takip ederek dosya ile ilgili açıklama yazısı yazınız. Dosya nerden geldi, kim tarafından ne zaman oluşturuldu ya da hakında bildiğiniz diğer bilgiler gibi.
Eğer bu bir resim ise <tt><nowiki>[[Resim:$1|thumb|açıklama]]</nowiki></tt> şeklinde sayfaya yerleştirebilirsiniz. (açıklama yerine resim ile ilgili yazı yazınız)',
'uploadwarning' => 'Yükleme uyarısı',
'categoriespagetext' => 'Vikide aşağıdaki kategoriler mevcuttur.',
'version' => 'Sürüm',
'log' => 'Kayıtlar',
-'alllogstext' => 'Yükleme, silme, koruma altına alma, erişim engelleme ve yönetici hareketlerinin tümünün kayıtları.
+'alllogstext' => 'Yükleme, silme, koruma altına alma, erişim engelleme ve yönetici hareketlerinin tümünün kayıtları.
Kayıt tipini, kullanıcı ismini, sayfa ismini girerek listeyi daraltabilirsiniz.',
# Special:Allpages
'emailuser' => 'Kullanıcıya e-posta gönder',
'emailpage' => 'Kullanıcıya e-posta gönder',
'emailpagetext' => 'Aşağıdaki form ile, eğer kullanıcı geçerli bir e-posta adresi belirtmişse, kullanıcıya e-posta gönderebilirsiniz.
-
+
Yanıt alabilmeniz için "From" (Kimden) kısmına tercih formunda belirttiğiniz e-posta adresiniz otomatik olarak eklenecektir.',
'defemailsubject' => '{{SITENAME}} e-posta',
'noemailtitle' => 'e-posta adresi yok',
'unwatch' => 'Sayfa izlemeyi durdur',
'unwatchthispage' => 'Sayfa izlemeyi durdur',
'watchnochange' => 'Gösterilen zaman aralığında izleme listenizdeki sayfaların hiçbiri güncellenmemiş.',
-'watchdetails' => '* Tartışma sayfaları hariç $1 sayfa izleme listenizdedir
+'watchdetails' => '* Tartışma sayfaları hariç $1 sayfa izleme listenizdedir
* [[Special:Watchlist/edit|İzleme listesinin tamamını göster ve yapılandır]]',
'wlheader-showupdated' => '* Son ziyaretinizden sonraki sayfa değişikleri \'\'\'kalın\'\'\' olarak gösterilmiştir.',
'watchmethod-recent' => 'son değişiklikler arasında izledğiniz sayfalar aranıyor',
'watchmethod-list' => 'izleme listenizdeki sayfalar kontrol ediliyor',
'removechecked' => 'İşaretli sayfaları izleme listesinden sil',
'watchlistcontains' => 'İzleme listenizde $1 sayfa var.',
-'watcheditlist' => 'İzlediğiniz sayfaların alfabetik listesi aşağıdadır.
+'watcheditlist' => 'İzlediğiniz sayfaların alfabetik listesi aşağıdadır.
Sayfaları izleme listesinden çıkarmak için yanlarındaki
-kutucukları işaretleyip sayfanın altındaki \'işaretlenenleri sil\'
+kutucukları işaretleyip sayfanın altındaki \'işaretlenenleri sil\'
düğmesini tıklayınız.',
'removingchecked' => 'İşaretlenen sayfalar izleme listesinden siliniyor...',
'wlnote' => 'Son <b>$2</b> saatte yapılan $1 değişiklik aşağıdadır.',
e-posta: $PAGEEDITOR_EMAIL
Viki: $PAGEEDITOR_WIKI
-Bahsi geçen sayfayı ziyaret etmediğiniz sürece sayfayla ilgili başka değişiklik uyarısı gönderilmeyecektir. Uyarı ayarlarını izleme listenizdeki tüm sayfalar için değiştirebilirsiniz.
+Bahsi geçen sayfayı ziyaret etmediğiniz sürece sayfayla ilgili başka değişiklik uyarısı gönderilmeyecektir. Uyarı ayarlarını izleme listenizdeki tüm sayfalar için değiştirebilirsiniz.
{{SITENAME}} uyarı sistemi.
<pre>
*/
-/* Kısa yol tuşları ve yardım balonları */
-ta = new Object();
-ta[\'pt-userpage\'] = new Array(\'.\',\'Kişisel sayfam\');
-ta[\'pt-anonuserpage\'] = new Array(\'.\',\'The user page for the ip you\'re editing as\');
-ta[\'pt-mytalk\'] = new Array(\'n\',\'Mesaj sayfam\');
-ta[\'pt-anontalk\'] = new Array(\'n\',\'Bu IP adresinden yapılmış değişiklikleri tartış\');
-ta[\'pt-preferences\'] = new Array(\'\',\'Ayarlarım\');
-ta[\'pt-watchlist\'] = new Array(\'l\',\'İzlemeye aldığım sayfalar\');
-ta[\'pt-mycontris\'] = new Array(\'y\',\'Yaptığım katkıların listesi\');
-ta[\'pt-login\'] = new Array(\'o\',\'Oturum açmanız tavsiye olunur ama mecbur değilsiniz.\');
-ta[\'pt-anonlogin\'] = new Array(\'o\',\'Oturum açmanız tavsiye olunur ama mecbur değilsiniz.\');
-ta[\'pt-logout\'] = new Array(\'o\',\'Sistemden çık\');
-ta[\'ca-talk\'] = new Array(\'t\',\'İçerik ile ilgili görüş belirt\');
-ta[\'ca-edit\'] = new Array(\'e\',\'Bu sayfayı değiştirebilirsiniz. Kaydetmeden önce önizleme yapmayı unutmayın.\');
-ta[\'ca-addsection\'] = new Array(\'+\',\'Bu tartışmaya yorum ekleyin.\');
-ta[\'ca-viewsource\'] = new Array(\'e\',\'Bu sayfa kormu altında. Kaynak kodunu sadece görebilirsiniz. Değiştiremezsiniz.\');
-ta[\'ca-history\'] = new Array(\'h\',\'Bu sayfanın geçmiş versiyonları.\');
-ta[\'ca-protect\'] = new Array(\'=\',\'Bu sayfayı koru\');
-ta[\'ca-delete\'] = new Array(\'d\',\'Sayfayı sil\');
-ta[\'ca-undelete\'] = new Array(\'d\',\'Sayfayı silinmeden önceki haline geri getirin\');
-ta[\'ca-move\'] = new Array(\'m\',\'Sayfanın adını değiştir\');
-ta[\'ca-nomove\'] = new Array(\'\',\'Bu sayfanın adını değiştirmeye yetkiniz yok\');
-ta[\'ca-watch\'] = new Array(\'w\',\'Bu sayfayı izlemeye al\');
-ta[\'ca-unwatch\'] = new Array(\'w\',\'Bu sayfayı izlemeyi bırakın\');
-ta[\'search\'] = new Array(\'f\',\'Bu vikide arama yap\');
-ta[\'p-logo\'] = new Array(\'\',\'Ana sayfa\');
-ta[\'n-mainpage\'] = new Array(\'z\',\'Başlangıç sayfasına dönün\');
-ta[\'n-portal\'] = new Array(\'\',\'Proje üzerine, ne nerdedir, neler yapılabilir\');
-ta[\'n-currentevents\'] = new Array(\'\',\'Güncel olaylarla ilgili son bilgiler\');
-ta[\'n-recentchanges\'] = new Array(\'r\',\'Vikide yapılmış son değişikliklerin listesi.\');
-ta[\'n-randompage\'] = new Array(\'x\',\'Rastgele bir maddeye gidin\');
-ta[\'n-help\'] = new Array(\'\',\'Yardım almak için.\');
-ta[\'n-sitesupport\'] = new Array(\'\',\'Maddi destek\');
-ta[\'t-whatlinkshere\'] = new Array(\'j\',\'Bu sayfaya bağlantı vermiş diğer viki sayfalarının listesi\');
-ta[\'t-recentchangeslinked\'] = new Array(\'k\',\'Bu sayfaya bağlantı veren sayfalardaki son değişiklikler\');
-ta[\'feed-rss\'] = new Array(\'\',\'Bu sayfa için RSS beslemesi\');
-ta[\'feed-atom\'] = new Array(\'\',\'Bu sayfa için atom beslemesi\');
-ta[\'t-contributions\'] = new Array(\'\',\'Kullanıcının katkı listesini gör\');
-ta[\'t-emailuser\'] = new Array(\'\',\'Kullanıcıya e-posta gönder\');
-ta[\'t-upload\'] = new Array(\'u\',\'Sisteme resim ya da medya dosyaları yükleyin\');
-ta[\'t-specialpages\'] = new Array(\'q\',\'Tüm özel sayfaların listesini göster\');
-ta[\'ca-nstab-main\'] = new Array(\'c\',\'Sayfayı göster\');
-ta[\'ca-nstab-user\'] = new Array(\'c\',\'Kullanıcı sayfasını göster\');
-ta[\'ca-nstab-media\'] = new Array(\'c\',\'Medya sayfasını göster\');
-ta[\'ca-nstab-special\'] = new Array(\'\',\'Bu özel sayfa olduğu için değişiklik yapamazsınız.\');
-ta[\'ca-nstab-wp\'] = new Array(\'a\',\'Proje sayfasını göster\');
-ta[\'ca-nstab-image\'] = new Array(\'c\',\'Resim sayfasını göster\');
-ta[\'ca-nstab-mediawiki\'] = new Array(\'c\',\'Sistem mesajını göster\');
-ta[\'ca-nstab-template\'] = new Array(\'c\',\'Şablonu göster\');
-ta[\'ca-nstab-help\'] = new Array(\'c\',\'Yardım sayfasını görmek için tıklayın\');
+/* Kısa yol tuşları ve yardım balonları */
+ta = new Object();
+ta[\'pt-userpage\'] = new Array(\'.\',\'Kişisel sayfam\');
+ta[\'pt-anonuserpage\'] = new Array(\'.\',\'The user page for the ip you\'re editing as\');
+ta[\'pt-mytalk\'] = new Array(\'n\',\'Mesaj sayfam\');
+ta[\'pt-anontalk\'] = new Array(\'n\',\'Bu IP adresinden yapılmış değişiklikleri tartış\');
+ta[\'pt-preferences\'] = new Array(\'\',\'Ayarlarım\');
+ta[\'pt-watchlist\'] = new Array(\'l\',\'İzlemeye aldığım sayfalar\');
+ta[\'pt-mycontris\'] = new Array(\'y\',\'Yaptığım katkıların listesi\');
+ta[\'pt-login\'] = new Array(\'o\',\'Oturum açmanız tavsiye olunur ama mecbur değilsiniz.\');
+ta[\'pt-anonlogin\'] = new Array(\'o\',\'Oturum açmanız tavsiye olunur ama mecbur değilsiniz.\');
+ta[\'pt-logout\'] = new Array(\'o\',\'Sistemden çık\');
+ta[\'ca-talk\'] = new Array(\'t\',\'İçerik ile ilgili görüş belirt\');
+ta[\'ca-edit\'] = new Array(\'e\',\'Bu sayfayı değiştirebilirsiniz. Kaydetmeden önce önizleme yapmayı unutmayın.\');
+ta[\'ca-addsection\'] = new Array(\'+\',\'Bu tartışmaya yorum ekleyin.\');
+ta[\'ca-viewsource\'] = new Array(\'e\',\'Bu sayfa kormu altında. Kaynak kodunu sadece görebilirsiniz. Değiştiremezsiniz.\');
+ta[\'ca-history\'] = new Array(\'h\',\'Bu sayfanın geçmiş versiyonları.\');
+ta[\'ca-protect\'] = new Array(\'=\',\'Bu sayfayı koru\');
+ta[\'ca-delete\'] = new Array(\'d\',\'Sayfayı sil\');
+ta[\'ca-undelete\'] = new Array(\'d\',\'Sayfayı silinmeden önceki haline geri getirin\');
+ta[\'ca-move\'] = new Array(\'m\',\'Sayfanın adını değiştir\');
+ta[\'ca-nomove\'] = new Array(\'\',\'Bu sayfanın adını değiştirmeye yetkiniz yok\');
+ta[\'ca-watch\'] = new Array(\'w\',\'Bu sayfayı izlemeye al\');
+ta[\'ca-unwatch\'] = new Array(\'w\',\'Bu sayfayı izlemeyi bırakın\');
+ta[\'search\'] = new Array(\'f\',\'Bu vikide arama yap\');
+ta[\'p-logo\'] = new Array(\'\',\'Ana sayfa\');
+ta[\'n-mainpage\'] = new Array(\'z\',\'Başlangıç sayfasına dönün\');
+ta[\'n-portal\'] = new Array(\'\',\'Proje üzerine, ne nerdedir, neler yapılabilir\');
+ta[\'n-currentevents\'] = new Array(\'\',\'Güncel olaylarla ilgili son bilgiler\');
+ta[\'n-recentchanges\'] = new Array(\'r\',\'Vikide yapılmış son değişikliklerin listesi.\');
+ta[\'n-randompage\'] = new Array(\'x\',\'Rastgele bir maddeye gidin\');
+ta[\'n-help\'] = new Array(\'\',\'Yardım almak için.\');
+ta[\'n-sitesupport\'] = new Array(\'\',\'Maddi destek\');
+ta[\'t-whatlinkshere\'] = new Array(\'j\',\'Bu sayfaya bağlantı vermiş diğer viki sayfalarının listesi\');
+ta[\'t-recentchangeslinked\'] = new Array(\'k\',\'Bu sayfaya bağlantı veren sayfalardaki son değişiklikler\');
+ta[\'feed-rss\'] = new Array(\'\',\'Bu sayfa için RSS beslemesi\');
+ta[\'feed-atom\'] = new Array(\'\',\'Bu sayfa için atom beslemesi\');
+ta[\'t-contributions\'] = new Array(\'\',\'Kullanıcının katkı listesini gör\');
+ta[\'t-emailuser\'] = new Array(\'\',\'Kullanıcıya e-posta gönder\');
+ta[\'t-upload\'] = new Array(\'u\',\'Sisteme resim ya da medya dosyaları yükleyin\');
+ta[\'t-specialpages\'] = new Array(\'q\',\'Tüm özel sayfaların listesini göster\');
+ta[\'ca-nstab-main\'] = new Array(\'c\',\'Sayfayı göster\');
+ta[\'ca-nstab-user\'] = new Array(\'c\',\'Kullanıcı sayfasını göster\');
+ta[\'ca-nstab-media\'] = new Array(\'c\',\'Medya sayfasını göster\');
+ta[\'ca-nstab-special\'] = new Array(\'\',\'Bu özel sayfa olduğu için değişiklik yapamazsınız.\');
+ta[\'ca-nstab-wp\'] = new Array(\'a\',\'Proje sayfasını göster\');
+ta[\'ca-nstab-image\'] = new Array(\'c\',\'Resim sayfasını göster\');
+ta[\'ca-nstab-mediawiki\'] = new Array(\'c\',\'Sistem mesajını göster\');
+ta[\'ca-nstab-template\'] = new Array(\'c\',\'Şablonu göster\');
+ta[\'ca-nstab-help\'] = new Array(\'c\',\'Yardım sayfasını görmek için tıklayın\');
ta[\'ca-nstab-category\'] = new Array(\'c\',\'Kategori sayfasını göster\');
/*
'confirmemail' => 'E-posta adresini onayla',
'confirmemail_text' => 'Viki\'nin e-posta işlevlerini kullanmadan önce e-posta adresinizin
doğrulanması gerekiyor. Adresinize onay e-postası göndermek için aşağıdaki
-butonu tıklayın. Gönderilecek iletide adresinizi onaylamak için tarayıcınızla
+butonu tıklayın. Gönderilecek iletide adresinizi onaylamak için tarayıcınızla
erişebileceğiniz, onay kodu içeren bir bağlantı olacak.',
'confirmemail_send' => 'Onay kodu gönder',
'confirmemail_sent' => 'Onay e-postası gönderildi.',
'confirmemail_loggedin' => 'E-posta adresiniz onaylandı.',
'confirmemail_error' => 'Onayınız bilinmeyen bir hata nedeniyle kaydedilemedi.',
'confirmemail_subject' => '{{SITENAME}} e-posta adres onayı.',
-'confirmemail_body' => '$1 internet adresinden yapılan erişimle {{SITENAME}}\'da
-bu e-posta adresi ile ilişkilendirilen $2 kullanıcı hesabı
-açıldı.
+'confirmemail_body' => '$1 internet adresinden yapılan erişimle {{SITENAME}}\'da
+bu e-posta adresi ile ilişkilendirilen $2 kullanıcı hesabı
+açıldı.
Bu e-posta adresinin bahsi geçen kullanıcı hesabına ait olduğunu
-onaylamak ve {{SITENAME}}\'daki e-posta işlevlerini aktif hale
+onaylamak ve {{SITENAME}}\'daki e-posta işlevlerini aktif hale
getirmek için aşağıdakı bağlantıyı tıklayın.
$3
}
function uc( $str, $first = false ) {
- if ( function_exists( 'mb_strtoupper' ) )
+ if ( function_exists( 'mb_strtoupper' ) )
return $first ? mb_strtoupper( mb_substr( $str, 0, 1 ) ) . mb_substr( $str, 1 ) : mb_strtoupper( $str );
else {
global $wikiUpperChars;
MAG_SERVERNAME => array( 0, 'SERVERNAME' , 'TÊNMÁYCHỦ' ),
MAG_SCRIPTPATH => array( 0, 'SCRIPTPATH' , '' ),
MAG_GRAMMAR => array( 0, 'GRAMMAR:' , 'NGỮPHÁP' ),
- MAG_NOTITLECONVERT => array( 0, '__NOTITLECONVERT__',
+ MAG_NOTITLECONVERT => array( 0, '__NOTITLECONVERT__',
'__NOTC__', '__KHÔNGCHUYỂNTÊN__'),
- MAG_NOCONTENTCONVERT => array( 0, '__NOCONTENTCONVERT__',
+ MAG_NOCONTENTCONVERT => array( 0, '__NOCONTENTCONVERT__',
'__NOCC__', '__KHÔNGCHUYỂNNỘIDUNG__'),
MAG_CURRENTWEEK => array( 1, 'CURRENTWEEK' , 'TUẦNNÀY' ),
MAG_CURRENTDOW => array( 1, 'CURRENTDOW' ),
'subcategorycount' => 'Thể loại này có $1 tiểu thể loại.',
'subcategorycount1' => 'Thể loại này có $1 tiểu thể loại.',
'allarticles' => 'Mọi bài',
-'linktrail' =>
+'linktrail' =>
"/^([a-zàâçéèêîôûäëïöüùÇÉÂÊÎÔÛÄËÏÖÜÀÈÙ]+)(.*)$/sD",
'mainpage' => 'Trang đầu',
'mainpagetext' => 'Phần mềm {{SITENAME}} đã cài đặt.',
'nocookieslogin' => " Xin bật cookies và đăng nhập lại.",
'noname' => "Chưa nhập tên.",
'loginsuccesstitle' => "Đăng nhập thành công.",
-'loginsuccess' => "Bạn đã đăng nhập vào {{SITENAME}} với tên
+'loginsuccess' => "Bạn đã đăng nhập vào {{SITENAME}} với tên
\"$1\".",
'nosuchuser' => "Thành viên \"$1\" không tồn tại. Xin kiểm tra lại tên, hoặc mở tài khoản mới.",
'nosuchusershort' => 'Không có « $1 ». Xin kiểm tra lại.',
'largefile' => 'Kích thước tập tin không nên vượt quá 100Kb.',
'successfulupload' => 'Đã tải xong',
'fileuploaded' => "Tập tin \"$1\" đã được tải lên thành công.
-Xin hãy theo liên kết: $2 đến trang mô tả và điền vào thông tin về tập tin, chẳng hạn như nó đến từ đâu, được tạo ra khi nào và bởi ai, và các chi tiết khác mà bạn biết về nó.
-Nếu đây là hình ảnh, bạn có thể cho vào trong trang như sau:
+Xin hãy theo liên kết: $2 đến trang mô tả và điền vào thông tin về tập tin, chẳng hạn như nó đến từ đâu, được tạo ra khi nào và bởi ai, và các chi tiết khác mà bạn biết về nó.
+Nếu đây là hình ảnh, bạn có thể cho vào trong trang như sau:
<tt><nowiki>[[Image:$1|thumb|Mô tả hình]]</nowiki></tt>.",
'uploadwarning' => 'Chú ý!',
'savefile' => 'Lưu tệp tin',
'autoblocker' => "Bị tự động cấm vì dùng chung địa chỉ IP với \"$1\". Lý do \"$2\".",
'blocklogpage' => 'Nhật trình cấm',
'blocklogentry' => 'đã cấm "$1", thời hạn $2',
-'blocklogtext' => 'Nhật trình lưu những lần cấm và bỏ cấm. Các địa chỉ IP bị cấm tự động không được liệt kê. Xem thêm
+'blocklogtext' => 'Nhật trình lưu những lần cấm và bỏ cấm. Các địa chỉ IP bị cấm tự động không được liệt kê. Xem thêm
[[Đặc_biệt:Ipblocklist|danh sách cấm]].',
'unblocklogentry' => 'đã hết cấm "$1"',
'range_block_disabled' => 'Không được cấm hàng loạt.',
Fonccion: $1<br />
Cweraedje: $2',
'viewsource' => 'Vey côde sourdant',
-'protectedtext' => 'Cisse pådje chal a stî protedjeye siconte des candjmints;
+'protectedtext' => 'Cisse pådje chal a stî protedjeye siconte des candjmints;
i gn a sacwantès råjhons po çoula, loukîz
[[{{ns:4}}:Pådje protedjeye]] s\' i vs plait.
'yournick' => 'Vosse no metou (po les sinateures)',
'email' => 'Emile',
'emailforlost' => 'Les tchamps avou ene sitoele (*) èn sont nén obligatweres.<br />
-L\' adresse emile, si vos ndè dnez ene, vos permetrè di rçure et
-d\' evoyî des emiles å dtruviè di cisse waibe chal, sins vos dveur
-diner voste adresse emile, çoula vos srè eto foirt ahessåve si vos rovyîz
+L\' adresse emile, si vos ndè dnez ene, vos permetrè di rçure et
+d\' evoyî des emiles å dtruviè di cisse waibe chal, sins vos dveur
+diner voste adresse emile, çoula vos srè eto foirt ahessåve si vos rovyîz
måy vosse sicret (on novea scret vos pôrè-st esse evoyî pa emile).<br />
Vosse vraiy no, si vos l\' dinez, pôrè esse eployî po mete a costé
di vos ovraedjes.',
'editingcomment' => 'Candjant $1 (comintaire)',
'editconflict' => 'Conflit inte deus candjmints: $1',
'explainconflict' => 'Ene sakî a candjî l\' pådje do tins ki vos estîz a scrire.
-Li boesse di tecse do dzeur mostere li tecse del pådje come il est
+Li boesse di tecse do dzeur mostere li tecse del pådje come il est
pol moumint sol sierveu. Li tecse da vosse est sol boesse di tecse do dzo.
-Les diferinces sont håynêyes å mitan. Vos dvoz mete vos candjmints dins
+Les diferinces sont håynêyes å mitan. Vos dvoz mete vos candjmints dins
l\' tecse d\' asteure (å dzeur) si vos lez vloz co evoyî.
<b>Seulmint</b> li tecse do dzeur serè candjî cwand vos clitchroz sol
boton «Schaper l\' pådje».<br />',
Si vos n\' voloz nén ki vosse tecse poye esse candjî eyet
spårdou pa tot l\' minme kî, adon nel evoyîz nén chal.
<br />
-Vos nos acertinez eto ki vos avoz scrît l\' tecse
-vos minme, oudonbén l\' avoz copyî d\' on sourdant libe
+Vos nos acertinez eto ki vos avoz scrît l\' tecse
+vos minme, oudonbén l\' avoz copyî d\' on sourdant libe
(dominne publik ou on sourdant pareymint libe).
<br />
\'\'\'N\' EVOYÎZ NÉN DES TECSES DIZO ABONDROETS SINS PERMISSION!\'\'\'',
Si vos n\' voloz nén scrire des årtikes ki polèt esse
candjîs pa des ôtes, adon nels evoyîz nén chal.
<br />
-Vos nos acertinez eto ki vos avoz scrît l\' tecse
-vos minme, oudonbén l\' avoz copyî d\' on sourdant libe
+Vos nos acertinez eto ki vos avoz scrît l\' tecse
+vos minme, oudonbén l\' avoz copyî d\' on sourdant libe
(veyoz $1 po pus di racsegnes).
<br />
<strong>N\' EVOYÎZ NÉN DES TECSES DIZO ABONDROETS SINS PERMISSION!</strong>',
'uploadnologin' => 'Nén elodjî',
'uploadnologintext' => 'I vs fåt esse [[Special:Userlogin|elodjî]] por
vos pleur eberweter des fitchîs.',
-'upload_directory_read_only' => 'Li sierveu waibe èn pout nén scrire sol ridant d\' eberwetaedje ($1).',
+'upload_directory_read_only' => 'Li sierveu waibe èn pout nén scrire sol ridant d\' eberwetaedje ($1).',
'uploaderror' => 'Aroke d\' eberwetaedje',
-'uploadtext' =>
+'uploadtext' =>
"Eployîz les boesses d' intrêye chal pa dzo po-z eberweter des noveas fitchîs d' imådjes po vos årtikes. Sol plupårt des betchteus, vos voeroz on boton «Foyter...» (ou «Browse...») ki vs permetrè di foyter dins les ridants del deure plake da vosse po tchoezi l' fitchî, çou ki rimplirè otomaticmint li tchamp do no do fitchî k' est a costé.
Po håyner ou cweri des imådjes k' ont ddja stî rçuvowes, alez sol [[Special:Imagelist|djivêye des imådjes dedja eberwetêyes]]. Les eberwetaedjes et disfaçaedjes sont eto metous èn on [[Special:Log/upload|djournå des eberwetaedjes]].
Po håyner l' imådje dins èn årtike, eployîz on loyén del foûme
-'''<nowiki>[[</nowiki>{{ns:6}}<nowiki>:fitchî.jpg]]</nowiki>''' ou
+'''<nowiki>[[</nowiki>{{ns:6}}<nowiki>:fitchî.jpg]]</nowiki>''' ou
'''<nowiki>[[</nowiki>{{ns:6}}<nowiki>:fitchî.png|thumb|tecse a mete padzo]]</nowiki>''' ou co
'''<nowiki>[[</nowiki>{{ns:-2}}<nowiki>:fitchî.ogg]]</nowiki>''' po les sons.",
'watchnologintext' => 'I vs fåt esse [[Special:Userlogin|elodjî]] po pleur candjî vosse djivêye des pådjes a shuve.',
'addedwatch' => 'Radjouté ås shuvous',
'addedwatchtext' => 'Li pådje «$1» a stî radjoutêye a vosse [[Special:Watchlist|djivêye des pådjes a shuve]].
-Tos les candjmints k\' i gn årè di cisse pådje chal,
+Tos les candjmints k\' i gn årè di cisse pådje chal,
eyet di si pådje di copene, seront håynés chal, eyet li pådje serè metowe e \'\'\'cråssès letes\'\'\'
el [[Special:Recentchanges|djivêye des dierins candjmints]] po k\' ça soeye pus åjhey por vos del rimårker.
<p>
'imagereverted' => 'Li rmetaedje del modêye di dvant a stî comifåt.',
'cantrollback' => 'Dji n\' sai disfé les candjmints; li dierin contribouweu est li seu oteur po cist årtike ci.',
'alreadyrolled' => 'Dji n\' sai disfé li dierin candjmint di [[$1]]
-fwait pa [[User:$2|$2]] ([[User talk:$2|Copene]]);
-ene sakî d\' ôte a ddja candjî l\' årtike ou ddja rmetou l\' modêye di dvant.
+fwait pa [[User:$2|$2]] ([[User talk:$2|Copene]]);
+ene sakî d\' ôte a ddja candjî l\' årtike ou ddja rmetou l\' modêye di dvant.
Li dierin candjmint a stî fwait pa [[User:$3|$3]] ([[User talke:$3|Copene]]).',
# only shown if there is an edit comment
di cisse chal, les rapexheyès modêyes seront metowes e l\' istwere mins
c\' est l\' modêye do moumint, et nén l\' cisse rapexheye, ki
srè håynêye.',
-'undeletehistorynoadmin' => 'Cist årtike a stî disfacé. Li råjhon do
+'undeletehistorynoadmin' => 'Cist årtike a stî disfacé. Li råjhon do
disfaçaedje est dnêye chal pa dzo, avou les detays des uzeus k\' ont
candjî l\' pådje divant do disfaçaedje. Li tecse di ces modêyes disfacêyes
ni pout esse veyou ki des manaedjeus.',
'user_rights_set' => '<b>Les droets po l\' uzeu «$1» ont stî metous a djoû</b>',
'set_rights_fail' => '<b>Les droets po l\' uzeu «$1» n\' ont nén polou esse definis. (Avoz vs tapé l\' no bén comifåt?)</b>',
'makesysop' => 'Diner a èn uzeu on livea di manaedjeu',
-'already_sysop' => 'Cist uzeu ci a ddja l\' livea di manaedjeu',
-'already_bureaucrat' => 'Cist uzeu ci a ddja l\' livea di mwaisse-manaedjeu',
+'already_sysop' => 'Cist uzeu ci a ddja l\' livea di manaedjeu',
+'already_bureaucrat' => 'Cist uzeu ci a ddja l\' livea di mwaisse-manaedjeu',
'already_steward' => 'Cist uzeu ci a ddja l\' livea di mwaisse-manaedjeu so tos les wikis',
# Move page
rev_timestamp char(14) binary NOT NULL default '',
rev_minor_edit tinyint(1) unsigned NOT NULL default '0',
rev_deleted tinyint(1) unsigned NOT NULL default '0',
-
+
PRIMARY KEY rev_page_id (rev_page, rev_id),
UNIQUE INDEX rev_id (rev_id),
INDEX rev_timestamp (rev_timestamp),
CREATE TABLE $pagelinks (
-- Key to the page_id of the page containing the link.
pl_from int(8) unsigned NOT NULL default '0',
-
+
-- Key to page_namespace/page_title of the target page.
-- The target page may or may not exist, and due to renames
-- and deletions may refer to different page records as time
-- goes by.
pl_namespace int NOT NULL default '0',
pl_title varchar(255) binary NOT NULL default '',
-
+
UNIQUE KEY pl_from(pl_from,pl_namespace,pl_title),
KEY (pl_namespace,pl_title)
img_user int(5) unsigned NOT NULL default '0',
img_user_text varchar(255) binary NOT NULL default '',
img_timestamp char(14) binary NOT NULL default '',
-
+
PRIMARY KEY img_name (img_name),
INDEX img_size (img_size),
INDEX img_timestamp (img_timestamp)
CREATE TABLE $1 (
-- Base filename: key to image.img_name
oi_name varchar(255) binary NOT NULL default '',
-
+
-- Filename of the archived file.
-- This is generally a timestamp and '!' prepended to the base name.
oi_archive_name varchar(255) binary NOT NULL default '',
-
+
-- Other fields as in image...
oi_size int(8) unsigned NOT NULL default 0,
oi_width int(5) NOT NULL default 0,
"CREATE TABLE $watchlist_temp (
-- Key to user_id
wl_user int(5) unsigned NOT NULL,
-
+
-- Key to page_namespace/page_title
-- Note that users may watch patches which do not exist yet,
-- or existed in the past but have been deleted.
wl_namespace int NOT NULL default '0',
wl_title varchar(255) binary NOT NULL default '',
-
+
-- Timestamp when user was last sent a notification e-mail;
-- cleared when the user visits the page.
-- FIXME: add proper null support etc
wl_notificationtimestamp varchar(14) binary NOT NULL default '0',
-
+
UNIQUE KEY (wl_user, wl_namespace, wl_title),
KEY namespace_title (wl_namespace,wl_title)
-- action field, but only the type controls categorization.
log_type char(10) NOT NULL default '',
log_action char(10) NOT NULL default '',
-
+
-- Timestamp. Duh.
log_timestamp char(14) NOT NULL default '19700101000000',
-
+
-- The user who performed this action; key to user_id
log_user int unsigned NOT NULL default 0,
-
+
-- Key to the page affected. Where a user is the target,
-- this will point to the user page.
log_namespace int NOT NULL default 0,
log_title varchar(255) binary NOT NULL default '',
-
+
-- Freeform text. Interpreted as edit history comments.
log_comment varchar(255) NOT NULL default '',
-
+
-- LF separated list of miscellaneous parameters
log_params blob NOT NULL default '',
ar_namespace int NOT NULL default '0',
ar_title varchar(255) binary NOT NULL default '',
ar_text mediumblob NOT NULL default '',
-
+
ar_comment tinyblob NOT NULL default '',
ar_user int(5) unsigned NOT NULL default '0',
ar_user_text varchar(255) binary NOT NULL,
ar_timestamp char(14) binary NOT NULL default '',
ar_minor_edit tinyint(1) NOT NULL default '0',
-
+
ar_flags tinyblob NOT NULL default '',
ar_rev_id int(8) unsigned,
ar_text_id int(8) unsigned,
-
+
KEY name_title_timestamp (ar_namespace,ar_title,ar_timestamp)
) TYPE=InnoDB
CREATE TABLE $1 (
-- Key to page_id of the page containing the image / media link.
il_from int(8) unsigned NOT NULL default '0',
-
+
-- Filename of target image.
-- This is also the page_title of the file's description page;
-- all such pages are in namespace 6 (NS_IMAGE).
il_to varchar(255) binary NOT NULL default '',
-
+
UNIQUE KEY il_from(il_from,il_to),
KEY (il_to)
cl_to varchar(255) binary NOT NULL default '',
cl_sortkey varchar(86) binary NOT NULL default '',
cl_timestamp timestamp NOT NULL,
-
+
UNIQUE KEY cl_from(cl_from,cl_to),
KEY cl_sortkey(cl_to,cl_sortkey),
KEY cl_timestamp(cl_to,cl_timestamp)
rc_id int(8) NOT NULL auto_increment,
rc_timestamp varchar(14) binary NOT NULL default '',
rc_cur_time varchar(14) binary NOT NULL default '',
-
+
rc_user int(10) unsigned NOT NULL default '0',
rc_user_text varchar(255) binary NOT NULL default '',
-
+
rc_namespace int NOT NULL default '0',
rc_title varchar(255) binary NOT NULL default '',
-
+
rc_comment varchar(255) binary NOT NULL default '',
rc_minor tinyint(3) unsigned NOT NULL default '0',
-
+
rc_bot tinyint(3) unsigned NOT NULL default '0',
rc_new tinyint(3) unsigned NOT NULL default '0',
-
+
rc_cur_id int(10) unsigned NOT NULL default '0',
rc_this_oldid int(10) unsigned NOT NULL default '0',
rc_last_oldid int(10) unsigned NOT NULL default '0',
-
+
rc_type tinyint(3) unsigned NOT NULL default '0',
rc_moved_to_ns tinyint(3) unsigned NOT NULL default '0',
rc_moved_to_title varchar(255) binary NOT NULL default '',
-
+
rc_patrolled tinyint(3) unsigned NOT NULL default '0',
-
+
rc_ip char(15) NOT NULL default '',
-
+
PRIMARY KEY rc_id (rc_id),
INDEX rc_timestamp (rc_timestamp),
INDEX rc_namespace_title (rc_namespace, rc_title),
CREATE TABLE $1 (
-- A key name, generally the base name of of the special page.
qc_type char(32) NOT NULL,
-
+
-- Some sort of stored value. Sizes, counts...
qc_value int(5) unsigned NOT NULL default '0',
-
+
-- Target namespace+title
qc_namespace int NOT NULL default '0',
qc_title char(255) binary NOT NULL default '',
-
+
KEY (qc_type,qc_value)
) TYPE=InnoDB
/**
* Script to initialise the MediaWiki namespace
*
- * This script is included from update.php and install.php. Do not run it
+ * This script is included from update.php and install.php. Do not run it
* by itself.
*
* @deprecated
global $wgLanguageNames;
global $IP;
- # overwrite language conversion option so that all variants
+ # overwrite language conversion option so that all variants
# of the messages are initialised
$wgDisableLangConversion = false;
$fname = 'initialiseMessages';
$ns = NS_MEDIAWIKI;
# cur_user_text responsible for the modifications
- # Don't change it unless you're prepared to update the DBs accordingly, otherwise the
+ # Don't change it unless you're prepared to update the DBs accordingly, otherwise the
# default messages won't be overwritte
$username = 'MediaWiki default';
die( "Usage: php addwiki.php <language> <site> <dbname>\n" );
}
-addWiki( $args[0], $args[1], $args[2] );
+addWiki( $args[0], $args[1], $args[2] );
# -----------------------------------------------------------------
==Sister projects==
[http://meta.wikipedia.org Meta-Wikipedia] | [http://www.wiktionary.org Wikitonary] | [http://www.wikibooks.org Wikibooks] | [http://www.wikinews.org Wikinews] | [http://www.wikiquote.org Wikiquote] | [http://www.wikisource.org Wikisource]
-See the [http://www.wikipedia.org Wikipedia portal] for other language Wikipedias.
+See the [http://www.wikipedia.org Wikipedia portal] for other language Wikipedias.
[[aa:]]
[[af:]]
fwrite( $logfile, "* $source → $dest\n" );
-fwrite( $sqlfile,
+fwrite( $sqlfile,
"-- Changing attribution SQL file
-- Generated with attribute.php
-- $source -> $dest ($uid)
/**
* Copyright (C) 2005 Brion Vibber <brion@pobox.com>
* http://www.mediawiki.org/
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* Usage: php cleanupCaps.php [--dry-run]
* Options:
* --dry-run don't actually try moving them
- *
+ *
* Copyright (C) 2005 Brion Vibber <brion@pobox.com>
* http://www.mediawiki.org/
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* Usage: php cleanupTitles.php [--dry-run]
* Options:
* --dry-run don't actually try moving them
- *
+ *
* Copyright (C) 2005 Brion Vibber <brion@pobox.com>
* http://www.mediawiki.org/
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
$tuplesAdded = 0; # no tuples added to INSERT yet
while ( $row = $dbw->fetchObject($res) ) {
- $fromTitle = $row->l_from;
+ $fromTitle = $row->l_from;
if ( array_key_exists( $fromTitle, $ids ) ) { # valid title
$from = $ids[$fromTitle];
$to = $row->l_to;
# And convert the rest...
$this->convertTable( 'ipblocks', 'ipb_id', array( 'ipb_reason' ) );
- $this->convertTable( 'user', 'user_id',
+ $this->convertTable( 'user', 'user_id',
array( 'user_name', 'user_real_name', 'user_options' ),
'user_touched' );
$this->convertTable( 'page', 'page_id',
*
* The goal is to get a list of messages not yet localised in a languageXX.php
* file using the language.php file as reference.
- *
+ *
* The script then print a list of wgAllMessagesXX keys that aren't localised, a
* percentage of messages correctly localised and the number of messages to be
* translated.
- *
+ *
* @package MediaWiki
* @subpackage Maintenance
*/
$referenceMessages = $wgAllMessagesEn;
$referenceLanguage = 'En';
$referenceFilename = 'Language'.$referenceLanguage.'.php';
-/** Language messages we will test. */
+/** Language messages we will test. */
$testMessages = array();
$testLanguage = '';
/** whereas we use an external language file */
/**
* Copyright (C) 2005 Brion Vibber <brion@pobox.com>
* http://www.mediawiki.org/
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Copy commons images instead of symlinking
var $forceCopy = false;
- # Make links assuming the script path is in the same directory as
+ # Make links assuming the script path is in the same directory as
# the destination
var $alternateScriptPath = false;
}
}
- /**
- * Write a set of articles specified by start and end page_id
+ /**
+ * Write a set of articles specified by start and end page_id
* Skip categories and images, they will be done separately
*/
function doArticles( $start, $end = false ) {
$title = Title::newFromID( $id );
if ( $title ) {
$ns = $title->getNamespace() ;
- if ( $ns != NS_CATEGORY && $title->getPrefixedDBkey() != $mainPage ) {
+ if ( $ns != NS_CATEGORY && $title->getPrefixedDBkey() != $mainPage ) {
$this->doArticle( $title );
}
}
$this->setupGlobals();
- /**
- * Dump image description pages that don't have an associated article, but do
+ /**
+ * Dump image description pages that don't have an associated article, but do
* have a local image
*/
$dbr =& wfGetDB( DB_SLAVE );
print "Done $i of $num\r";
}
$title = Title::makeTitle( NS_IMAGE, $row->img_name );
- if ( $title->getArticleID() ) {
+ if ( $title->getArticleID() ) {
// Already done by dumpHTML
continue;
}
$this->setupGlobals();
$dbr =& wfGetDB( DB_SLAVE );
- $res = $dbr->select( 'page', array( 'page_namespace', 'page_title' ),
+ $res = $dbr->select( 'page', array( 'page_namespace', 'page_title' ),
array( 'page_is_redirect' => 1 ), $fname );
$num = $dbr->numRows( $res );
print "$num redirects to do...\n";
if ( !$this->setupDone ) {
$this->oldCopyrightIcon = $wgCopyrightIcon;
}
- $wgCopyrightIcon = str_replace( 'src="/images',
+ $wgCopyrightIcon = str_replace( 'src="/images',
'src="' . htmlspecialchars( $wgScriptPath ) . '/images', $this->oldCopyrightIcon );
* This is necessary even if you intend to distribute all of commons, because
* the directory contents is used to work out which image description pages
* are needed.
- *
+ *
* Also copies math images
*
*/
function copyImages( $images ) {
global $wgSharedUploadPath, $wgSharedUploadDirectory, $wgMathPath, $wgMathDirectory;
# Find shared uploads and copy them into the static directory
- $sharedPathLength = strlen( $wgSharedUploadPath );
+ $sharedPathLength = strlen( $wgSharedUploadPath );
$mathPathLength = strlen( $wgMathPath );
foreach ( $images as $escapedImage => $dummy ) {
$image = urldecode( $escapedImage );
if ( $title->getDBkey() == '' ) {
$url = str_replace( '$1', "../$iw/index.html", $wgArticlePath );
} else {
- $url = str_replace( '$1', "../$iw/" . wfUrlencode( $this->getHashedFilename( $title ) ),
+ $url = str_replace( '$1', "../$iw/" . wfUrlencode( $this->getHashedFilename( $title ) ),
$wgArticlePath );
}
return false;
return 'index.html';
}
- return $this->getHashedDirectory( $title ) . '/' .
+ return $this->getHashedDirectory( $title ) . '/' .
$this->getFriendlyName( $dbkey ) . '.html';
}
$dest = 'static';
}
-$wgHTMLDump = new DumpHTML( array(
- 'dest' => $dest,
+$wgHTMLDump = new DumpHTML( array(
+ 'dest' => $dest,
'forceCopy' => $options['force-copy'],
'alternateScriptPath' => $options['interlang'],
'interwiki' => $options['interlang'],
/**
* Copyright (C) 2005 Brion Vibber <brion@pobox.com>
* http://www.mediawiki.org/
- *
+ *
* Quick demo hack to generate a plaintext link dump,
* per the proposed wiki link database standard:
* http://www.usemod.com/cgi-bin/mb.pl?LinkDatabase
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
}
if( $row->rc_this_oldid ) {
- $s = $dbr->selectRow( 'old', array( 'old_id as id','old_timestamp as timestamp',
- 'old_user as user', 'old_user_text as user_text', 'old_comment as comment',
+ $s = $dbr->selectRow( 'old', array( 'old_id as id','old_timestamp as timestamp',
+ 'old_user as user', 'old_user_text as user_text', 'old_comment as comment',
'old_text as text', 'old_flags as flags' ),
array( 'old_id' => $row->rc_this_oldid ) );
$out .= revision2xml( $s, true, false );
/**
* Copyright (C) 2005 Brion Vibber <brion@pobox.com>
* http://www.mediawiki.org/
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* are evaluated separately, so blocks need to be input without a line break.
* Fatal errors such as use of undeclared functions can kill the shell.
*
- * To get decent line editing behavior, you should compile PHP with support
+ * To get decent line editing behavior, you should compile PHP with support
* for GNU readline (pass --with-readline to configure).
*
* @package MediaWiki
* If the namespace isn't listed on the priority list return the
* default priority for the namespace, varies depending on whether it's
* a talkpage or not.
- *
+ *
* @param int $namespace The namespace to get the priority for
*
* @return string
$fname = 'GenerateSitemap::getPageRes';
return $this->dbr->select( 'page',
- array(
+ array(
'page_namespace',
'page_title',
'page_touched',
function write( &$handle, $str ) {
if ( $this->compress )
gzwrite( $handle, $str );
- else
+ else
fwrite( $handle, $str );
}
return
"\t<sitemap>\n" .
"\t\t<loc>$filename</loc>\n" .
- "\t\t<lastmod>{$this->timestamp}</lastmod>\n" .
+ "\t\t<lastmod>{$this->timestamp}</lastmod>\n" .
"\t</sitemap>\n";
}
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
}
function wfUnescapeWikiText( $text ) {
- $text = str_replace(
+ $text = str_replace(
array( '[', '|', ''', 'ISBN ', '://' , "\n=", '{{' ),
array( '[', '|', "'", 'ISBN ' , '://' , "\n=", '{{' ),
$text );
<?php
# MediaWiki 'phase 2' to current format import script
# (import format current as of 1.2.0, March 2004)
-#
+#
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# Portions by Lee Daniel Crocker, 2002
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* @return string A dummy header
*/
function poHeader() {
-return
+return
'# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2005 MediaWiki
# This file is distributed under the same license as the MediaWiki package.
# Move a batch of pages
# Usage: php moveBatch.php [-u <user>] [-r <reason>] [-i <interval>] <listfile>
-# where
-# <listfile> is a file where each line has two titles separated by a pipe
+# where
+# <listfile> is a file where each line has two titles separated by a pipe
# character. The first title is the source, the second is the destination.
# <user> is the username
# <reason> is the move reason
# This will be used as the default for all files that don't have a package,
# it's useful to set it to something like 'untagged' to hunt down and fix files
# that don't have a package name declared.
-$pdOthers = " -dn MediaWiki";
-$pdOthers .= ' --title "MediaWiki generated documentation"';
+$pdOthers = " -dn MediaWiki";
+$pdOthers .= ' --title "MediaWiki generated documentation"';
$pdOthers .= ' --output "HTML:Smarty:HandS"'; #,HTML:Smarty:HandS"'; ###### HTML:frames:DOM/earthli
$pdOthers .= ' --ignore AdminSettings.php,LocalSettings.php,tests/LocalTestSettings.php';
$pdOthers .= ' --parseprivate on';
case 1:
$command .= "-d $mwPathI";
break;
-case 2:
+case 2:
$command .= "-d $mwPathL";
break;
case 3:
<?php
# Copyright (C) 2005 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
$title = Title::makeTitle( $row->namespace, $row->title );
echo "... *** using suffixed form [[" . $title->getPrefixedText() . "]] ***\n";
}
- $tables = $this->newSchema()
+ $tables = $this->newSchema()
? array( 'page' )
: array( 'cur', 'old' );
foreach( $tables as $table ) {
<?php
# Copyright (C) 2005 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
while( $row = $dbw->fetchObject( $result ) ) {
$result2 = $dbw->query( "
SELECT MAX(rev_timestamp) as max_timestamp
- FROM $revision
+ FROM $revision
WHERE rev_page=$row->page_id
" );
$row2 = $dbw->fetchObject( $result2 );
$wikisql_pass = `wikisql_pass`;
if ( @$argv[1] == 'yaseo' ) {
- $hosts = array(
+ $hosts = array(
'localhost',
'211.115.107.158',
'211.115.107.159',
'211.115.107.157',
);
} else {
- $hosts = array(
+ $hosts = array(
'localhost',
'207.142.131.194',
'207.142.131.195',
<?php
# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
'img_width' => 1941,
'img_height' => 220,
'img_bits' => 24,
- 'img_media_type' => MEDIATYPE_BITMAP,
- 'img_major_mime' => "image",
- 'img_minor_mime' => "jpeg",
+ 'img_media_type' => MEDIATYPE_BITMAP,
+ 'img_major_mime' => "image",
+ 'img_minor_mime' => "jpeg",
) );
$setupDB = true;
}
function wellFormed( $text ) {
- $html =
+ $html =
$this->hackDocType() .
'<html>' .
$text .
}
function wfParserTestHook( $in, $argv ) {
- if ( count( $argv ) )
+ if ( count( $argv ) )
return "<pre>\n" . print_r( $argv, true ) . '</pre>';
else
return $in;
* Options:
* --missing Crawl the uploads dir for images without records, and
* add them only.
- *
+ *
* Copyright (C) 2005 Brion Vibber <brion@pobox.com>
* http://www.mediawiki.org/
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Multi-language sites
# db suffix => db suffix, iw prefix, hostname
- $sites = array(
+ $sites = array(
'wiki' => new Site( 'wiki', 'w', 'wikipedia.org' ),
'wiktionary' => new Site( 'wiktionary', 'wikt', 'wiktionary.org' ),
'wikiquote' => new Site( 'wikiquote', 'q', 'wikiquote.org' ),
$dblist = array_map( "trim", file( "/home/wikipedia/common/all.dblist" ) );
# Special-case hostnames
- $specials = array(
+ $specials = array(
'sourceswiki' => 'sources.wikipedia.org',
'quotewiki' => 'wikiquote.org',
'textbookwiki' => 'wikibooks.org',
# Language aliases, usually configured as redirects to the real wiki in apache
# Interlanguage links are made directly to the real wiki
- # Something horrible happens if you forget to list an alias here, I can't
+ # Something horrible happens if you forget to list an alias here, I can't
# remember what
$languageAliases = array(
'zh-cn' => 'zh',
$host = $specials[$db];
$sql .= "\n--$host\n\n";
$sql .= "USE $db;\n" .
- "TRUNCATE TABLE interwiki;\n" .
+ "TRUNCATE TABLE interwiki;\n" .
"INSERT INTO interwiki (iw_prefix, iw_url, iw_local) VALUES \n";
$first = true;
# Intermap links
foreach ( $iwArray as $iwEntry ) {
# Suppress links with the same name as the site
- if ( ( $suffix == 'wiki' && $iwEntry['iw_prefix'] != 'wikipedia' ) ||
- ( $suffix != 'wiki' && $suffix != $iwEntry['iw_prefix'] ) )
+ if ( ( $suffix == 'wiki' && $iwEntry['iw_prefix'] != 'wikipedia' ) ||
+ ( $suffix != 'wiki' && $suffix != $iwEntry['iw_prefix'] ) )
{
$sql .= makeLink( $iwEntry, $first, $db );
}
}
# Extra links
- foreach ( $extraLinks as $link ){
+ foreach ( $extraLinks as $link ){
$sql .= makeLink( $link, $first, $db );
}
$sql .= ";\n\n";
* @todo document
* @package MediaWiki
* @subpackage Maintenance
- */
+ */
/** */
require_once( "commandLine.inc" );
if ( $newOnly ) {
print "Refreshing links from ";
$res = $dbr->select( 'page',
- array( 'page_id' ),
+ array( 'page_id' ),
array(
'page_is_new' => 1,
"page_id > $start" ),
$dbw =& wfGetDB( DB_WRITE );
- $linksTables = array(
+ $linksTables = array(
'pagelinks' => 'pl_from',
'imagelinks' => 'il_from',
'categorylinks' => 'cl_from',
define( 'ACTION_REPORT', 0 );
define( 'ACTION_DELETE', 1 );
-# Count the number of edits the specified user has made
+# Count the number of edits the specified user has made
function CountEdits( $user_id ) {
# We've *got* to pull this stuff off the master. If the user *has* made an edit, but it hasn't
# been replicated to the slaves yet, we'll end up falsely marking them as inactive. This could
* This is an experimental list. It will later be used with a script to split
* the languages files in several parts then the message system will only load
* in memory the parts which are actually needed.
- *
+ *
* Generated using: grep -r foobar *
- *
+ *
* $commonMsg is the default array. Other arrays will only be loaded if needed.
*/
$installerMsg = array (
* splitLanguageFiles
* Should read each of the languages files then split them in several subpart
* under ./languages/XX/ according to the arrays in splitLanguageFiles.inc .
- *
+ *
* Also need to rewrite the wfMsg system / message-cache.
*/
}
# Update text row
- $dbw->update( 'text',
+ $dbw->update( 'text',
array( /* SET */
'old_flags' => $flags,
'old_text' => $compress
define( 'LS_CHUNKED', 1 );
/** @todo document */
-function compressWithConcat( $startId, $maxChunkSize, $maxChunkFactor, $factorThreshold, $beginDate,
+function compressWithConcat( $startId, $maxChunkSize, $maxChunkFactor, $factorThreshold, $beginDate,
$endDate, $extdb="", $maxPageId = false )
{
$fname = 'compressWithConcat';
# Get all articles by page_id
if ( !$maxPageId ) {
$maxPageId = $dbr->selectField( 'page', 'max(page_id)', '', $fname );
- }
+ }
print "Starting from $startId of $maxPageId\n";
$pageConds = array();
if ( $beginDate ) {
$conds[] = "rev_timestamp>'" . $beginDate . "'";
- }
+ }
if ( $endDate ) {
$conds[] = "rev_timestamp<'" . $endDate . "'";
}
for ( $pageId = $startId; $pageId <= $maxPageId; $pageId++ ) {
wfWaitForSlaves( 10 );
- $pageRes = $dbr->select( 'page', array('page_id', 'page_namespace', 'page_title'),
+ $pageRes = $dbr->select( 'page', array('page_id', 'page_namespace', 'page_title'),
$pageConds + array('page_id' => $pageId), $fname );
if ( $dbr->numRows( $pageRes ) == 0 ) {
continue;
# Load revisions
$revRes = $dbw->select( $tables, $fields,
- array( 'rev_page' => $pageRow->page_id ) + $conds,
+ array( 'rev_page' => $pageRow->page_id ) + $conds,
$fname,
$revLoadOptions
);
# Get text
if ( $loadStyle == LS_INDIVIDUAL ) {
- $textRow = $dbw->selectRow( 'text',
+ $textRow = $dbw->selectRow( 'text',
array( 'old_flags', 'old_text' ),
array( 'old_id' => $oldid ),
$fname,
}
# Store External Storage URLs instead of Stub placeholders
foreach ($stubs as $stub) {
- if ($stub===false)
+ if ($stub===false)
continue;
# $stored should provide base path to a BLOB
$url = $stored."/".$stub->getHash();
<?php
/**
* Compress the text of a wiki
- *
+ *
* @package MediaWiki
* @subpackage Maintenance
*/
/** */
/**
- * Usage:
+ * Usage:
*
* Non-wikimedia
* php compressOld.php [options...]
die();
}
-$defaults = array(
+$defaults = array(
't' => 'concat',
'c' => 20,
's' => 0,
$success = true;
if ( $options['t'] == 'concat' ) {
- $success = compressWithConcat( $options['s'], $options['c'], $options['f'], $options['h'], $options['b'],
+ $success = compressWithConcat( $options['s'], $options['c'], $options['f'], $options['h'], $options['b'],
$options['e'], $options['extdb'], $options['endid'] );
} else {
compressOldPages( $options['s'], $options['extdb'] );
-}
+}
if ( $success ) {
print "Done.\n";
wfWaitForSlaves( 5 );
}
$row = $dbw->selectRow( 'text', array( 'old_flags', 'old_text' ),
- array(
+ array(
'old_id' => $id,
"old_flags NOT LIKE '%external%'",
), $fname );
# Resolve stubs
$flags = explode( ',', $row->old_flags );
- if ( in_array( 'object', $flags )
- && substr( $row->old_text, 0, strlen( STUB_HEADER ) ) === STUB_HEADER )
+ if ( in_array( 'object', $flags )
+ && substr( $row->old_text, 0, strlen( STUB_HEADER ) ) === STUB_HEADER )
{
resolveStub( $id, $row->old_text, $row->old_flags );
continue;
} else {
$flags = "{$row->old_flags},external";
}
- $dbw->update( 'text',
+ $dbw->update( 'text',
array( 'old_flags' => $flags, 'old_text' => $url ),
array( 'old_id' => $id ), $fname );
}
}
# Get the (maybe) external row
- $externalRow = $dbr->selectRow( 'text', array( 'old_text' ),
+ $externalRow = $dbr->selectRow( 'text', array( 'old_text' ),
array( 'old_id' => $stub->mOldId, "old_flags LIKE '%external%'" ),
- $fname
+ $fname
);
if ( !$externalRow ) {
# Update the row
$dbw->update( 'text',
array( /* SET */
- 'old_flags' => $newFlags,
+ 'old_flags' => $newFlags,
'old_text' => $externalRow->old_text . '/' . $stub->mHash
- ),
- array( /* WHERE */
- 'old_id' => $id
- ), $fname
+ ),
+ array( /* WHERE */
+ 'old_id' => $id
+ ), $fname
);
}
?>
output( "\n" );
} else {
# Get cur row
- $curRow = $dbw->selectRow( 'cur', array( 'cur_namespace', 'cur_title', 'cur_text' ),
+ $curRow = $dbw->selectRow( 'cur', array( 'cur_namespace', 'cur_title', 'cur_text' ),
array( 'cur_id' => $row->rc_cur_id ), $fname, 'FOR UPDATE' );
if ( $curRow ) {
$titleObj = Title::makeTitle( $curRow->cur_namespace, $curRow->cur_title );
$start = @file_get_contents( $posFile );
if ( !$start ) {
$start = wfTimestamp( TS_MW, time() - 86400 );
- }
+ }
}
if ( isset( $options['l'] ) ) {
sleep( 1 );
}
}
- $wgDatabase->insert( 'templatelinks',
- array(
+ $wgDatabase->insert( 'templatelinks',
+ array(
'tl_from' => $row->pl_from,
'tl_namespace' => $row->pl_namespace,
'tl_title' => $row->pl_title,
$wgDatabase->freeResult( $res );
} else {
// Fast update
- $wgDatabase->insertSelect( 'templatelinks', 'pagelinks',
- array(
+ $wgDatabase->insertSelect( 'templatelinks', 'pagelinks',
+ array(
'tl_from' => 'pl_from',
- 'tl_namespace' => 'pl_namespace',
- 'tl_title' => 'pl_title'
+ 'tl_namespace' => 'pl_namespace',
+ 'tl_title' => 'pl_title'
), array(
'pl_namespace' => 10
), $fname
<?php
# Copyright (C) 2005 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<?php
# Copyright (C) 2005 Brion Vibber <brion@pobox.com>
# http://www.mediawiki.org/
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
$rt = $wgTitle->getPrefixedURL();
if ( 0 == strcasecmp( urlencode( $lo ), $rt ) ) {
$q = "";
- } else {
- $q = "returnto={$rt}";
+ } else {
+ $q = "returnto={$rt}";
}
$s = "" .
$s .= $this->menuHead( "qbpageoptions" );
$s .= $this->talkLink()
- . $sep . $this->commentLink()
+ . $sep . $this->commentLink()
. $sep . $this->printableLink();
if ( $wgUser->isLoggedIn() ) {
$s .= $sep . $this->watchThisPage();
. $this->historyLink()
. $sep . $this->whatLinksHere()
. $sep . $this->watchPageLinksLink();
-
+
if( $tns == NS_USER || $tns == NS_USER_TALK ) {
$id=User::idFromName($wgTitle->getText());
if ($id != 0) {
}
$s .= $this->menuHead( "qbspecialpages" )
- . $this->specialLink( "newpages" )
- . $sep . $this->specialLink( "imagelist" )
- . $sep . $this->specialLink( "statistics" )
+ . $this->specialLink( "newpages" )
+ . $sep . $this->specialLink( "imagelist" )
+ . $sep . $this->specialLink( "statistics" )
. $sep . $this->bugReportsLink();
if ( $wgUser->isLoggedIn() && $wgEnableUploads ) {
$s .= $sep . $this->specialLink( "upload" );
?><span id="feed-<?php echo htmlspecialchars($key) ?>"><a href="<?php
echo htmlspecialchars($feed['href']) ?>"><?php echo htmlspecialchars($feed['text'])?></a> </span>
<?php } ?></li><?php
- }
+ }
foreach( array('contributions', 'blockip', 'emailuser', 'upload', 'specialpages') as $special ) {
<?php
-/**
+/**
* Default skin for HTML dumps, based on MonoBook.php
*/
if ( isset( $wgHTMLDump ) ) {
$content_actions['current'] = array(
'text' => wfMsg( 'currentrev' ),
- 'href' => str_replace( '$1', wfUrlencode( $this->mTitle->getPrefixedDBkey() ),
+ 'href' => str_replace( '$1', wfUrlencode( $this->mTitle->getPrefixedDBkey() ),
$wgHTMLDump->oldArticlePath ),
'class' => false
);
<?php if($this->data['userjs' ]) { ?><script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('userjs' ) ?>"></script><?php } ?>
<?php if($this->data['userjsprev']) { ?><script type="<?php $this->text('jsmimetype') ?>"><?php $this->html('userjsprev') ?></script><?php } ?>
</head>
- <body
+ <body
<?php if($this->data['nsclass' ]) { ?>class="<?php $this->text('nsclass') ?>"<?php } ?>>
<div id="globalWrapper">
<div id="column-content">
<?php
-/**
- * PHP script to stream out an image thumbnail.
- * If the file exists, we make do with abridged MediaWiki initialisation.
+/**
+ * PHP script to stream out an image thumbnail.
+ * If the file exists, we make do with abridged MediaWiki initialisation.
*/
define( 'MEDIAWIKI', true );