r58311 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58310‎ | r58311 | r58312 >
Date:13:14, 29 October 2009
Author:siebrand
Status:deferred (Comments)
Tags:
Comment:
* Some i18n review and preparations for l10n
* stylize.php and trailing/superfluous whitespace removed
Modified paths:
  • /trunk/extensions/Wikilog/SpecialWikilog.php (modified) (history)
  • /trunk/extensions/Wikilog/Wikilog.i18n.magic.php (modified) (history)
  • /trunk/extensions/Wikilog/Wikilog.i18n.php (modified) (history)
  • /trunk/extensions/Wikilog/Wikilog.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogComment.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogCommentsPage.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogFeed.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogHooks.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogItem.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogItemPage.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogLinksUpdate.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogMainPage.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogPager.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogParser.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogQuery.php (modified) (history)
  • /trunk/extensions/Wikilog/WikilogUtils.php (modified) (history)
  • /trunk/extensions/Wikilog/WlCaptchaAdapter.php (modified) (history)
  • /trunk/extensions/Wikilog/WlFeed.body.php (modified) (history)
  • /trunk/extensions/Wikilog/WlFeed.i18n.php (modified) (history)
  • /trunk/extensions/Wikilog/WlFeed.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikilog/WikilogFeed.php
@@ -28,14 +28,12 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /**
3433 * Syndication feed driver. Creates feeds from a list of wikilog articles,
3534 * given a format and a query object.
3635 */
3736 class WikilogFeed
3837 {
39 -
4038 /**
4139 * Feed title (i.e., not Wikilog title). For Special:Wikilog, 'wikilog'
4240 * system message should be used.
@@ -143,7 +141,7 @@
144142 # Try to load the feed from our cache.
145143 $cached = $this->loadFromCache( $feed->getUpdated(), $timekey, $feedkey );
146144
147 - if( is_string( $cached ) ) {
 145+ if ( is_string( $cached ) ) {
148146 wfDebug( "Wikilog: Outputting cached feed\n" );
149147 $feed->httpHeaders();
150148 echo $cached;
@@ -394,7 +392,7 @@
395393 }
396394 if ( $row->wlw_authors ) {
397395 $authors = unserialize( $row->wlw_authors );
398 - foreach( $authors as $user => $userid ) {
 396+ foreach ( $authors as $user => $userid ) {
399397 $usertitle = Title::makeTitle( NS_USER, $user );
400398 $feed->addAuthor( $user, $usertitle->getFullUrl() );
401399 }
@@ -439,17 +437,17 @@
440438 $age = time() - wfTimestamp( TS_UNIX, $tsCache );
441439
442440 if ( $age < $wgFeedCacheTimeout ) {
443 - wfDebug( "Wikilog: loading feed from cache -- ".
444 - "too young: age ($age) < timeout ($wgFeedCacheTimeout) ".
 441+ wfDebug( "Wikilog: loading feed from cache -- " .
 442+ "too young: age ($age) < timeout ($wgFeedCacheTimeout) " .
445443 "($feedkey; $tsCache; $tsData)\n" );
446444 return $messageMemc->get( $feedkey );
447445 } else if ( $tsCache >= $tsData ) {
448 - wfDebug( "Wikilog: loading feed from cache -- ".
449 - "not modified: cache ($tsCache) >= data ($tsData)".
 446+ wfDebug( "Wikilog: loading feed from cache -- " .
 447+ "not modified: cache ($tsCache) >= data ($tsData)" .
450448 "($feedkey)\n" );
451449 return $messageMemc->get( $feedkey );
452450 } else {
453 - wfDebug( "Wikilog: cached feed timestamp check failed -- ".
 451+ wfDebug( "Wikilog: cached feed timestamp check failed -- " .
454452 "cache ($tsCache) < data ($tsData)\n" );
455453 }
456454 }
@@ -481,7 +479,7 @@
482480 $wgOut->addWikiMsg( 'feed-unavailable' );
483481 return false;
484482 }
485 - if( !isset( $wgWikilogFeedClasses[$this->mFormat] ) ) {
 483+ if ( !isset( $wgWikilogFeedClasses[$this->mFormat] ) ) {
486484 wfHttpError( 500, "Internal Server Error", "Unsupported feed type." );
487485 return false;
488486 }
@@ -535,5 +533,4 @@
536534 return $title->getFullUrl();
537535 }
538536 }
539 -
540537 }
Index: trunk/extensions/Wikilog/WikilogQuery.php
@@ -28,27 +28,25 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /**
3433 * Wikilog post SQL query driver.
3534 * This class drives queries for wikilog posts, given the fields to filter.
3635 */
3736 class WikilogItemQuery
3837 {
39 -
4038 # Valid filter values for publish status.
41 - const PS_ALL = 0; ///< Return all items
42 - const PS_PUBLISHED = 1; ///< Return only published items
43 - const PS_DRAFTS = 2; ///< Return only drafts
 39+ const PS_ALL = 0; // /< Return all items
 40+ const PS_PUBLISHED = 1; // /< Return only published items
 41+ const PS_DRAFTS = 2; // /< Return only drafts
4442
4543 # Local variables.
46 - private $mWikilogTitle = NULL; ///< Filter by wikilog.
47 - private $mPubStatus = self::PS_ALL; ///< Filter by published status.
48 - private $mCategory = false; ///< Filter by category.
49 - private $mAuthor = false; ///< Filter by author.
50 - private $mTag = false; ///< Filter by tag.
51 - private $mDate = false; ///< Filter by date.
52 - private $mNeedWikilogParam = false; ///< Need wikilog param in queries.
 44+ private $mWikilogTitle = NULL; // /< Filter by wikilog.
 45+ private $mPubStatus = self::PS_ALL; // /< Filter by published status.
 46+ private $mCategory = false; // /< Filter by category.
 47+ private $mAuthor = false; // /< Filter by author.
 48+ private $mTag = false; // /< Filter by tag.
 49+ private $mDate = false; // /< Filter by date.
 50+ private $mNeedWikilogParam = false; // /< Need wikilog param in queries.
5351
5452 # Options
5553 /** Query options. */
@@ -66,7 +64,7 @@
6765
6866 # If constructed without a title (from Special:Wikilog), it means that
6967 # the listing is global, and needs wikilog parameter to filter.
70 - $this->mNeedWikilogParam = ($wikilogTitle == NULL);
 68+ $this->mNeedWikilogParam = ( $wikilogTitle == NULL );
7169 }
7270
7371 /**
@@ -150,9 +148,9 @@
151149 * during the whole month or year.
152150 */
153151 public function setDate( $year, $month = false, $day = false ) {
154 - $year = ($year > 0 && $year <= 9999) ? $year : false;
155 - $month = ($month > 0 && $month <= 12) ? $month : false;
156 - $day = ($day > 0 && $day <= 31) ? $day : false;
 152+ $year = ( $year > 0 && $year <= 9999 ) ? $year : false;
 153+ $month = ( $month > 0 && $month <= 12 ) ? $month : false;
 154+ $day = ( $day > 0 && $day <= 31 ) ? $day : false;
157155
158156 if ( $year || $month ) {
159157 if ( !$year ) {
@@ -160,13 +158,13 @@
161159 if ( $month > intval( gmdate( 'n' ) ) ) $year--;
162160 }
163161
164 - $date_end = str_pad( $year+1, 4, '0', STR_PAD_LEFT );
 162+ $date_end = str_pad( $year + 1, 4, '0', STR_PAD_LEFT );
165163 $date_start = str_pad( $year, 4, '0', STR_PAD_LEFT );
166164 if ( $month ) {
167 - $date_end = $date_start . str_pad( $month+1, 2, '0', STR_PAD_LEFT );
 165+ $date_end = $date_start . str_pad( $month + 1, 2, '0', STR_PAD_LEFT );
168166 $date_start = $date_start . str_pad( $month, 2, '0', STR_PAD_LEFT );
169167 if ( $day ) {
170 - $date_end = $date_start . str_pad( $day+1, 2, '0', STR_PAD_LEFT );
 168+ $date_end = $date_start . str_pad( $day + 1, 2, '0', STR_PAD_LEFT );
171169 $date_start = $date_start . str_pad( $day, 2, '0', STR_PAD_LEFT );
172170 }
173171 }
@@ -247,46 +245,46 @@
248246
249247 # Customizations.
250248
251 - ## Filter by wikilog name.
 249+ # # Filter by wikilog name.
252250 if ( $this->mWikilogTitle !== NULL ) {
253251 $q_conds['wlp_parent'] = $this->mWikilogTitle->getArticleId();
254252 }
255253
256 - ## Filter by published status.
 254+ # # Filter by published status.
257255 if ( $this->mPubStatus === self::PS_PUBLISHED ) {
258256 $q_conds['wlp_publish'] = 1;
259257 } else if ( $this->mPubStatus === self::PS_DRAFTS ) {
260258 $q_conds['wlp_publish'] = 0;
261259 }
262260
263 - ## Filter by category.
 261+ # # Filter by category.
264262 if ( $this->mCategory ) {
265263 $q_tables[] = 'categorylinks';
266264 $q_joins['categorylinks'] = array( 'JOIN', 'wlp_page = cl_from' );
267265 $q_conds['cl_to'] = $this->mCategory->getDBkey();
268266 }
269267
270 - ## Filter by author.
 268+ # # Filter by author.
271269 if ( $this->mAuthor ) {
272270 $q_tables[] = 'wikilog_authors';
273271 $q_joins['wikilog_authors'] = array( 'JOIN', 'wlp_page = wla_page' );
274272 $q_conds['wla_author_text'] = $this->mAuthor->getDBkey();
275273 }
276274
277 - ## Filter by tag.
 275+ # # Filter by tag.
278276 if ( $this->mTag ) {
279277 $q_tables[] = 'wikilog_tags';
280278 $q_joins['wikilog_tags'] = array( 'JOIN', 'wlp_page = wlt_page' );
281279 $q_conds['wlt_tag'] = $this->mTag;
282280 }
283281
284 - ## Filter by date.
 282+ # # Filter by date.
285283 if ( $this->mDate ) {
286284 $q_conds[] = 'wlp_pubdate >= ' . $db->addQuotes( $this->mDate->start );
287285 $q_conds[] = 'wlp_pubdate < ' . $db->addQuotes( $this->mDate->end );
288286 }
289287
290 - ## Add last comment timestamp, used in syndication feeds.
 288+ # # Add last comment timestamp, used in syndication feeds.
291289 if ( $opts['last-comment-timestamp'] ) {
292290 $q_tables[] = 'wikilog_comments';
293291 $q_fields[] = 'MAX(wlc_updated) AS _wlp_last_comment_timestamp';
@@ -363,7 +361,4 @@
364362 return self::PS_PUBLISHED;
365363 }
366364 }
367 -
368365 }
369 -
370 -
Index: trunk/extensions/Wikilog/WlFeed.body.php
@@ -28,14 +28,12 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /**
3433 * Syndication base class. This class shares common metadata for both feeds
3534 * (RSS channels) and entries (RSS items).
3635 */
3736 abstract class WlSyndicationBase
3837 {
39 -
4038 /**
4139 * A permanent, universally unique identifier for an entry or feed.
4240 * Required. Corresponds to atom:id and rss:guid (entries only).
@@ -146,7 +144,7 @@
147145 function getLinks( $rel = null ) {
148146 return is_null( $rel ) ? $this->mLinks : $this->mLinks[$rel];
149147 }
150 -
 148+
151149 function setAuthors( $value ) { $this->mAuthors = $value; }
152150 function getAuthors() { return $this->mAuthors; }
153151
@@ -264,7 +262,6 @@
265263
266264 }
267265
268 -
269266 /**
270267 * Syndication feed class. This class represents a feed (Atom) or channel
271268 * (RSS).
@@ -272,7 +269,6 @@
273270 abstract class WlSyndicationFeed
274271 extends WlSyndicationBase
275272 {
276 -
277273 /**
278274 * A text construct that conveys a human-readable description or subtitle
279275 * for the feed. Optional. Corresponds to atom:subtitle and rss:description
@@ -433,7 +429,7 @@
434430 if ( in_array( 'sniff', $this->mQuirks ) ) {
435431 echo "<!--\n" . str_repeat( self::QUIRK_SNIFF_STR, 10 ) . "-->\n";
436432 }
437 -
 433+
438434 if ( !in_array( 'style', $this->mQuirks ) ) {
439435 echo '<?xml-stylesheet type="text/css" href="' .
440436 htmlspecialchars( wfExpandUrl( "$wgStylePath/common/feed.css?$wgStyleVersion" ) ) .
@@ -486,10 +482,8 @@
487483 return NULL;
488484 }
489485 }
490 -
491486 }
492487
493 -
494488 /**
495489 * Syndication entry class. This class represents individual entries (Atom) or
496490 * items (RSS).
@@ -497,7 +491,6 @@
498492 class WlSyndicationEntry
499493 extends WlSyndicationBase
500494 {
501 -
502495 /**
503496 * A date value indicating an instant in time when the entry was published.
504497 */
@@ -569,18 +562,16 @@
570563 /*@}*/
571564 }
572565
573 -
574566 /**
575567 * A text construct, contains human-readable text and is language-sensitive.
576568 * May contain plain text, HTML or XHTML.
577569 */
578570 class WlTextConstruct
579571 {
 572+ const T_TEXT = 'text'; // /< Plain text, no markup.
 573+ const T_HTML = 'html'; // /< Contains HTML markup.
 574+ const T_XHTML = 'xhtml'; // /< Contains XHTML markup.
580575
581 - const T_TEXT = 'text'; ///< Plain text, no markup.
582 - const T_HTML = 'html'; ///< Contains HTML markup.
583 - const T_XHTML = 'xhtml'; ///< Contains XHTML markup.
584 -
585576 /**
586577 * Content language tag.
587578 */
@@ -675,17 +666,14 @@
676667 }
677668 return $content;
678669 }
679 -
680670 }
681671
682 -
683672 /**
684673 * Atom feed class.
685674 */
686675 class WlAtomFeed
687676 extends WlSyndicationFeed
688677 {
689 -
690678 /**
691679 * Returns the default content type for Atom feeds.
692680 */
@@ -842,17 +830,14 @@
843831 function outFooter() {
844832 echo Xml::closeElement( 'feed' ) . "\n";
845833 }
846 -
847834 }
848835
849 -
850836 /**
851837 * RSS feed class.
852838 */
853839 class WlRSSFeed
854840 extends WlSyndicationFeed
855841 {
856 -
857842 /**
858843 * Returns the default content type for RSS feeds.
859844 */
@@ -935,7 +920,7 @@
936921 echo Xml::element( 'language', NULL, $this->getLanguage() ) . "\n";
937922 echo Xml::element( 'lastBuildDate', NULL, $this->formatTime( $this->getUpdated() ) ) . "\n";
938923 echo $this->formatTextData( 'copyright', $this->getRights() );
939 -
 924+
940925 $gtor = $this->getGenerator();
941926 echo Xml::element( 'generator', NULL, "{$gtor['content']} {$gtor['attribs']['version']}" ) . "\n";
942927 }
@@ -1022,7 +1007,7 @@
10231008 } else if ( $entry->getContent() ) {
10241009 $description = $entry->getContent();
10251010 }
1026 -
 1011+
10271012 if ( $description ) {
10281013 if ( $description instanceof WlTextConstruct ) {
10291014 echo Xml::element( 'description', NULL, $description->getHTML() );
@@ -1049,14 +1034,11 @@
10501035 echo Xml::closeElement( 'channel' ) . "\n";
10511036 echo Xml::closeElement( 'rss' ) . "\n";
10521037 }
1053 -
10541038 }
10551039
1056 -
10571040 /**
10581041 * MediaWiki compatibility classes.
10591042 */
1060 -
10611043 class WlFeedItemCompat
10621044 extends WlSyndicationEntry
10631045 {
Index: trunk/extensions/Wikilog/Wikilog.i18n.magic.php
@@ -4,9 +4,9 @@
55 * @addtogroup Extensions
66 */
77
 8+// FIXME: Use $wgExtensionMessagesFiles[] and $magicWords. See f.e. extension ParserFunctions.
89 $words = array();
910
10 -
1111 /**
1212 * English.
1313 * @author Juliano F. Ravasi
@@ -24,7 +24,6 @@
2525 'wlk-hidden' => array( 0, 'hidden' ),
2626 );
2727
28 -
2928 /**
3029 * Portuguese.
3130 * @author Juliano F. Ravasi
@@ -42,7 +41,6 @@
4342 'wlk-hidden' => array( 0, 'oculto', 'hidden' ),
4443 );
4544
46 -
4745 /**
4846 * Brazilian Portuguese.
4947 * @author Juliano F. Ravasi
@@ -59,4 +57,3 @@
6058 'wlk-summary' => array( 1, 'resumo', 'summary' ),
6159 'wlk-hidden' => array( 0, 'oculto', 'hidden' ),
6260 );
63 -
Index: trunk/extensions/Wikilog/Wikilog.php
@@ -28,7 +28,6 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /*
3433 * General extension information.
3534 */
@@ -41,17 +40,15 @@
4241 'url' => 'http://www.mediawiki.org/wiki/Extension:Wikilog',
4342 );
4443
45 -
4644 /*
4745 * Dependencies.
4846 */
49 -require_once( dirname(__FILE__) . '/WlFeed.php' );
 47+require_once( dirname( __FILE__ ) . '/WlFeed.php' );
5048
51 -
5249 /*
5350 * Messages.
5451 */
55 -$dir = dirname(__FILE__) . '/';
 52+$dir = dirname( __FILE__ ) . '/';
5653 $wgExtensionMessagesFiles['Wikilog'] = $dir . 'Wikilog.i18n.php';
5754
5855 /*
@@ -117,7 +114,7 @@
118115 $wgHooks['LanguageGetSpecialPageAliases'][]
119116 = 'WikilogHooks::LanguageGetSpecialPageAliases';
120117 $wgHooks['LanguageGetMagic'][] = 'WikilogHooks::LanguageGetMagic';
121 -$wgHooks['LoadExtensionSchemaUpdates'][]= 'WikilogHooks::ExtensionSchemaUpdates';
 118+$wgHooks['LoadExtensionSchemaUpdates'][] = 'WikilogHooks::ExtensionSchemaUpdates';
122119 $wgHooks['UnknownAction'][] = 'WikilogHooks::UnknownAction';
123120
124121 // WikilogLinksUpdate hooks
@@ -156,7 +153,7 @@
157154 /*
158155 * Default settings.
159156 */
160 -require_once( dirname(__FILE__) . '/WikilogDefaultSettings.php' );
 157+require_once( dirname( __FILE__ ) . '/WikilogDefaultSettings.php' );
161158
162159
163160 /**
@@ -165,8 +162,8 @@
166163 */
167164 class Wikilog
168165 {
169 - ###
170 - ## Setup functions.
 166+ # ##
 167+ # # Setup functions.
171168 #
172169
173170 /**
@@ -180,12 +177,12 @@
181178 global $wgExtraNamespaces, $wgWikilogNamespaces;
182179
183180 if ( $ns < 100 ) {
184 - echo "Wikilog setup: custom namespaces should start ".
 181+ echo "Wikilog setup: custom namespaces should start " .
185182 "at 100 to avoid conflict with standard namespaces.\n";
186183 die( 1 );
187184 }
188 - if ( ($ns % 2) != 0 ) {
189 - echo "Wikilog setup: given namespace ($ns) is not a ".
 185+ if ( ( $ns % 2 ) != 0 ) {
 186+ echo "Wikilog setup: given namespace ($ns) is not a " .
190187 "subject namespace (even number).\n";
191188 die( 1 );
192189 }
@@ -197,12 +194,12 @@
198195 }
199196
200197 $wgExtraNamespaces[$ns ] = $name;
201 - $wgExtraNamespaces[$ns^1] = $talk;
 198+ $wgExtraNamespaces[$ns ^ 1] = $talk;
202199 $wgWikilogNamespaces[] = $ns;
203200 }
204201
205 - ###
206 - ## MediaWiki hooks.
 202+ # ##
 203+ # # MediaWiki hooks.
207204 #
208205
209206 /**
@@ -220,7 +217,7 @@
221218 # Find assigned namespaces and make sure they have subpages
222219 foreach ( $wgWikilogNamespaces as $ns ) {
223220 $wgNamespacesWithSubpages[$ns ] = true;
224 - $wgNamespacesWithSubpages[$ns^1] = true;
 221+ $wgNamespacesWithSubpages[$ns ^ 1] = true;
225222 }
226223
227224 # Work around bug in MediaWiki 1.13 when '?action=render'.
@@ -292,7 +289,7 @@
293290 if ( $target->isTalkPage() && !in_array( 'known', $options ) ) {
294291 $wi = self::getWikilogInfo( $target );
295292 if ( $wi && $wi->isItem() && !$wi->getTrailing() && $wi->getItemTitle()->exists() ) {
296 - if ( ($i = array_search( 'broken', $options )) !== false ) {
 293+ if ( ( $i = array_search( 'broken', $options ) ) !== false ) {
297294 array_splice( $options, $i, 1 );
298295 }
299296 $options[] = 'known';
@@ -312,7 +309,7 @@
313310 $wi = self::getWikilogInfo( $title );
314311 if ( $wi && $wi->isItem() && $wi->getItemTitle()->exists() ) {
315312 $query = '';
316 - if ( ($i = array_search( 'new', $classes )) !== false ) {
 313+ if ( ( $i = array_search( 'new', $classes ) ) !== false ) {
317314 array_splice( $classes, $i, 1 );
318315 }
319316 }
@@ -333,8 +330,8 @@
334331 $action = $wgRequest->getText( 'action' );
335332 if ( $wi->isMain() && $skin->mTitle->quickUserCan( 'edit' ) ) {
336333 $contentActions['wikilog'] = array(
337 - 'class' => ($action == 'wikilog') ? 'selected' : false,
338 - 'text' => wfMsg('wikilog-tab'),
 334+ 'class' => ( $action == 'wikilog' ) ? 'selected' : false,
 335+ 'text' => wfMsg( 'wikilog-tab' ),
339336 'href' => $skin->mTitle->getLocalUrl( 'action=wikilog' )
340337 );
341338 }
@@ -347,8 +344,8 @@
348345 return true;
349346 }
350347
351 - ###
352 - ## Other global wikilog functions.
 348+ # ##
 349+ # # Other global wikilog functions.
353350 #
354351
355352 /**
@@ -369,10 +366,8 @@
370367 return NULL;
371368 }
372369 }
373 -
374370 }
375371
376 -
377372 /**
378373 * Wikilog information class.
379374 * This class represents relationship information about a wikilog article,
@@ -381,14 +376,14 @@
382377 */
383378 class WikilogInfo
384379 {
385 - public $mWikilogName; ///< Wikilog title (textual string).
386 - public $mWikilogTitle; ///< Wikilog main article title object.
387 - public $mItemName; ///< Wikilog post title (textual string).
388 - public $mItemTitle; ///< Wikilog post title object.
389 - public $mItemTalkTitle; ///< Wikilog post talk title object.
 380+ public $mWikilogName; // /< Wikilog title (textual string).
 381+ public $mWikilogTitle; // /< Wikilog main article title object.
 382+ public $mItemName; // /< Wikilog post title (textual string).
 383+ public $mItemTitle; // /< Wikilog post title object.
 384+ public $mItemTalkTitle; // /< Wikilog post talk title object.
390385
391 - public $mIsTalk; ///< Constructed using a talk page title.
392 - public $mTrailing = NULL; ///< Trailing subpage title.
 386+ public $mIsTalk; // /< Constructed using a talk page title.
 387+ public $mTrailing = NULL; // /< Trailing subpage title.
393388
394389 /**
395390 * Constructor.
@@ -436,10 +431,8 @@
437432 function getItemTalkTitle() { return $this->mItemTitle->getTalkPage(); }
438433
439434 function getTrailing() { return $this->mTrailing; }
440 -
441435 }
442436
443 -
444437 /**
445438 * Interface used by article derived classes that implement the "wikilog"
446439 * action handler. That is, pages that can be called with ?action=wikilog.
@@ -448,4 +441,3 @@
449442 {
450443 public function wikilog();
451444 }
452 -
Index: trunk/extensions/Wikilog/WlFeed.php
@@ -28,25 +28,23 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /*
3433 * General extension information.
3534 */
3635 $wgExtensionCredits['other'][] = array(
37 - 'name' => 'WlFeed',
38 - 'version' => '1.0.0',
39 - 'author' => 'Juliano F. Ravasi',
40 - 'description' => 'Enhanced feed generation classes.',
41 - 'descriptionmsg' => 'wlfeed-desc',
42 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Wikilog',
 36+ 'name' => 'WlFeed',
 37+ 'version' => '1.0.0',
 38+ 'author' => 'Juliano F. Ravasi',
 39+ 'description' => 'Enhanced feed generation classes.',
 40+ 'descriptionmsg' => 'wlfeed-desc',
 41+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Wikilog',
4342 );
4443
45 -
4644 /*
4745 * Module autoload information.
4846 */
4947
50 -$dir = dirname(__FILE__) . '/';
 48+$dir = dirname( __FILE__ ) . '/';
5149
5250 $wgExtensionMessagesFiles['WlFeed'] = $dir . 'WlFeed.i18n.php';
5351
@@ -62,7 +60,6 @@
6361 'WlRSSFeedCompat' => $dir . 'WlFeed.body.php'
6462 );
6563
66 -
6764 /*
6865 * Extension setup.
6966 */
@@ -110,5 +107,4 @@
111108 }
112109 }
113110 }
114 -
115111 }
Index: trunk/extensions/Wikilog/SpecialWikilog.php
@@ -28,7 +28,6 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /**
3433 * Special:Wikilog special page.
3534 * The primary function of this special page is to list all wikilog articles
@@ -40,7 +39,6 @@
4140 class SpecialWikilog
4241 extends IncludableSpecialPage
4342 {
44 -
4543 /** Alternate views. */
4644 protected static $views = array( 'summary', 'archives' );
4745
@@ -52,7 +50,7 @@
5351 */
5452 function __construct( ) {
5553 parent::__construct( 'Wikilog' );
56 - wfLoadExtensionMessages('Wikilog');
 54+ wfLoadExtensionMessages( 'Wikilog' );
5755 }
5856
5957 /**
@@ -311,7 +309,7 @@
312310
313311 $align = $wgContLang->isRtl() ? 'left' : 'right';
314312 $fields = self::getQueryFormFields( $opts );
315 - $columns = array_chunk( $fields, (count( $fields ) + 1) / 2, true );
 313+ $columns = array_chunk( $fields, ( count( $fields ) + 1 ) / 2, true );
316314
317315 $out = Xml::openElement( 'table', array( 'width' => '100%' ) ) .
318316 Xml::openElement( 'tr' );
@@ -434,5 +432,4 @@
435433 return false;
436434 }
437435 }
438 -
439436 }
Index: trunk/extensions/Wikilog/WlCaptchaAdapter.php
@@ -28,7 +28,6 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /**
3433 * Singleton class that provides an interface to Captchas implemented
3534 * through the ConfirmEdit extension. Only Captchas derived from
@@ -36,7 +35,6 @@
3736 */
3837 class WlCaptcha
3938 {
40 -
4139 public static $instance = NULL;
4240 public static $initialized = false;
4341
@@ -49,8 +47,8 @@
5048 self::$instance = new WlCaptchaAdapter( $captcha );
5149 } else {
5250 $classname = get_class( $captcha );
53 - trigger_error( "Only captchas derived from SimpleCaptcha ".
54 - "are compatible with Wikilog. The current captcha, ".
 51+ trigger_error( "Only captchas derived from SimpleCaptcha " .
 52+ "are compatible with Wikilog. The current captcha, " .
5553 "{$classname}, isn't compatible.", E_USER_WARNING );
5654 }
5755 }
@@ -78,7 +76,6 @@
7977
8078 }
8179
82 -
8380 /**
8481 * Adapter for SimpleCaptcha derived classes.
8582 *
@@ -91,7 +88,6 @@
9289 */
9390 class WlCaptchaAdapter
9491 {
95 -
9692 public $mCaptcha;
9793
9894 public function __construct( &$captcha ) {
@@ -103,7 +99,7 @@
104100 }
105101
106102 private function doConfirmEdit( $title, $newText, $oldText = NULL ) {
107 - if( $this->shouldCheck( $title, $newText, $oldText ) ) {
 103+ if ( $this->shouldCheck( $title, $newText, $oldText ) ) {
108104 return $this->mCaptcha->passCaptcha();
109105 } else {
110106 wfDebug( "WlCaptchaAdapter: no need to show captcha.\n" );
@@ -115,12 +111,12 @@
116112 global $wgUser, $wgCaptchaWhitelistIP, $wgCaptchaRegexes;
117113 global $wgEmailAuthentication, $ceAllowConfirmedEmail;
118114
119 - if( $wgUser->isAllowed( 'skipcaptcha' ) ) {
 115+ if ( $wgUser->isAllowed( 'skipcaptcha' ) ) {
120116 wfDebug( "WlCaptchaAdapter: user group allows skipping captcha\n" );
121117 return false;
122118 }
123119
124 - if( !empty( $wgCaptchaWhitelistIP ) ) {
 120+ if ( !empty( $wgCaptchaWhitelistIP ) ) {
125121 $ip = wfGetIp();
126122 foreach ( $wgCaptchaWhitelistIP as $range ) {
127123 if ( IP::isInRange( $ip, $range ) ) {
@@ -129,13 +125,13 @@
130126 }
131127 }
132128
133 - if( $wgEmailAuthentication && $ceAllowConfirmedEmail &&
 129+ if ( $wgEmailAuthentication && $ceAllowConfirmedEmail &&
134130 $wgUser->isEmailConfirmed() ) {
135131 wfDebug( "WlCaptchaAdapter: user has confirmed mail, skipping captcha\n" );
136132 return false;
137133 }
138134
139 - if( $this->captchaTriggers( $title, 'edit' ) ) {
 135+ if ( $this->captchaTriggers( $title, 'edit' ) ) {
140136 $this->mCaptcha->trigger = sprintf( "Edit trigger by '%s' at [[%s]]",
141137 $wgUser->getName(), $title->getPrefixedText() );
142138 $this->mCaptcha->action = 'edit';
@@ -143,7 +139,7 @@
144140 return true;
145141 }
146142
147 - if( $this->captchaTriggers( $title, 'create' ) && is_null( $oldText ) ) {
 143+ if ( $this->captchaTriggers( $title, 'create' ) && is_null( $oldText ) ) {
148144 $this->mCaptcha->trigger = sprintf( "Create trigger by '%s' at [[%s]]",
149145 $wgUser->getName(), $title->getPrefixedText() );
150146 $this->mCaptcha->action = 'create';
@@ -151,13 +147,13 @@
152148 return true;
153149 }
154150
155 - if( $this->captchaTriggers( $title, 'addurl' ) ) {
 151+ if ( $this->captchaTriggers( $title, 'addurl' ) ) {
156152 $oldLinks = $this->findLinks( $title, $oldText );
157153 $newLinks = $this->findLinks( $title, $newText );
158154 $unknownLinks = array_filter( $newLinks, array( &$this->mCaptcha, 'filterLink' ) );
159155 $addedLinks = array_diff( $unknownLinks, $oldLinks );
160156 $numLinks = count( $addedLinks );
161 - if( $numLinks > 0 ) {
 157+ if ( $numLinks > 0 ) {
162158 $this->mCaptcha->trigger = sprintf( "%dx url trigger by '%s' at [[%s]]: %s",
163159 $numLinks, $wgUser->getName(), $title->getPrefixedText(),
164160 implode( ", ", $addedLinks ) );
@@ -166,15 +162,15 @@
167163 }
168164 }
169165
170 - if( !empty( $wgCaptchaRegexes ) ) {
171 - foreach( $wgCaptchaRegexes as $regex ) {
 166+ if ( !empty( $wgCaptchaRegexes ) ) {
 167+ foreach ( $wgCaptchaRegexes as $regex ) {
172168 $newMatches = array();
173 - if( preg_match_all( $regex, $newtext, $newMatches ) ) {
 169+ if ( preg_match_all( $regex, $newtext, $newMatches ) ) {
174170 $oldMatches = array();
175171 preg_match_all( $regex, $oldtext, $oldMatches );
176172 $addedMatches = array_diff( $newMatches[0], $oldMatches[0] );
177173 $numHits = count( $addedMatches );
178 - if( $numHits > 0 ) {
 174+ if ( $numHits > 0 ) {
179175 $this->mCaptcha->trigger = sprintf( "%dx %s trigger by '%s' at [[%s]]: %s",
180176 $numHits, $regex, $wgUser->getName(), $title->getPrefixedText(),
181177 implode( ", ", $addedMatches ) );
@@ -209,11 +205,9 @@
210206
211207 public function getCaptchaForm() {
212208 global $wgOut;
213 - return '<div class="captcha">'.
214 - $wgOut->parse( $this->mCaptcha->getMessage( $this->mCaptcha->action ) ).
215 - $this->mCaptcha->getForm().
 209+ return '<div class="captcha">' .
 210+ $wgOut->parse( $this->mCaptcha->getMessage( $this->mCaptcha->action ) ) .
 211+ $this->mCaptcha->getForm() .
216212 '</div>';
217213 }
218 -
219214 }
220 -
Index: trunk/extensions/Wikilog/WikilogMainPage.php
@@ -28,12 +28,10 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 class WikilogMainPage
3433 extends Article
3534 implements WikilogCustomAction
3635 {
37 -
3836 /**
3937 * Alternate views.
4038 */
@@ -337,6 +335,4 @@
338336 public static function getWikilogDataFromId( $dbr, $id ) {
339337 return self::getWikilogData( $dbr, array( 'wlw_page' => $id ) );
340338 }
341 -
342339 }
343 -
Index: trunk/extensions/Wikilog/WikilogCommentsPage.php
@@ -28,7 +28,6 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /**
3433 * Wikilog comments namespace handler class.
3534 *
@@ -48,17 +47,17 @@
4948 extends Article
5049 implements WikilogCustomAction
5150 {
52 - protected $mSkin; ///< Skin used for rendering the page.
53 - protected $mFormOptions; ///< Post comment form fields.
54 - protected $mUserCanPost; ///< User is allowed to post.
55 - protected $mUserCanModerate; ///< User is allowed to moderate.
56 - protected $mPostedComment; ///< Posted comment, from HTTP post data.
57 - protected $mCaptchaForm; ///< Captcha form fields, when saving comment.
58 - protected $mTrailing; ///< Trailing text in comments title page.
 51+ protected $mSkin; // /< Skin used for rendering the page.
 52+ protected $mFormOptions; // /< Post comment form fields.
 53+ protected $mUserCanPost; // /< User is allowed to post.
 54+ protected $mUserCanModerate; // /< User is allowed to moderate.
 55+ protected $mPostedComment; // /< Posted comment, from HTTP post data.
 56+ protected $mCaptchaForm; // /< Captcha form fields, when saving comment.
 57+ protected $mTrailing; // /< Trailing text in comments title page.
5958
60 - public $mItem; ///< Wikilog item the page is associated with.
61 - public $mTalkTitle; ///< Main talk page title.
62 - public $mSingleComment; ///< Used when viewing a single comment.
 59+ public $mItem; // /< Wikilog item the page is associated with.
 60+ public $mTalkTitle; // /< Main talk page title.
 61+ public $mSingleComment; // /< Used when viewing a single comment.
6362
6463 /**
6564 * Constructor.
@@ -224,7 +223,7 @@
225224 }
226225
227226 # Initialize a session, when an anonymous post a comment...
228 - if( session_id() == '' ) {
 227+ if ( session_id() == '' ) {
229228 wfSetupSession();
230229 }
231230
@@ -292,12 +291,12 @@
293292 $html = Xml::openElement( 'div', array( 'class' => 'wl-threads' ) );
294293
295294 foreach ( $comments as $comment ) {
296 - while ( $top > 0 && $comment->mParent != $stack[$top-1] ) {
 295+ while ( $top > 0 && $comment->mParent != $stack[$top - 1] ) {
297296 $html .= Xml::closeElement( 'div' );
298297 array_pop( $stack ); $top--;
299298 }
300299
301 - $html .= Xml::openElement( 'div', array( 'class' => 'wl-thread' ) ).
 300+ $html .= Xml::openElement( 'div', array( 'class' => 'wl-thread' ) ) .
302301 $this->formatComment( $comment );
303302
304303 if ( $comment->mID == $replyTo && $this->mUserCanPost ) {
@@ -351,7 +350,7 @@
352351 $meta = $this->formatCommentMetadata( $comment );
353352 $text = $wgOut->parse( $comment->getText() ); // TODO: Optimize this.
354353 $html =
355 - Xml::tags( 'div', array( 'class' => 'wl-comment-meta' ), $meta ).
 354+ Xml::tags( 'div', array( 'class' => 'wl-comment-meta' ), $meta ) .
356355 Xml::tags( 'div', array( 'class' => 'wl-comment-text' ), $text );
357356 }
358357
@@ -368,13 +367,13 @@
369368 if ( $comment->mUserID ) {
370369 $by = wfMsgExt( 'wikilog-comment-by-user',
371370 array( 'parseinline', 'replaceafter' ),
372 - $this->mSkin->userLink( $comment->mUserID, $comment->mUserText ),
 371+ '<span class="wl-comment-author">' . $this->mSkin->userLink( $comment->mUserID, $comment->mUserText ) . '</span>',
373372 $this->mSkin->userTalkLink( $comment->mUserID, $comment->mUserText )
374373 );
375374 } else {
376375 $by = wfMsgExt( 'wikilog-comment-by-anon',
377376 array( 'parseinline', 'replaceafter' ),
378 - $this->mSkin->userLink( $comment->mUserID, $comment->mUserText ),
 377+ '<span class="wl-comment-author">' . $this->mSkin->userLink( $comment->mUserID, $comment->mUserText ) . '</span>',
379378 $this->mSkin->userTalkLink( $comment->mUserID, $comment->mUserText ),
380379 htmlspecialchars( $comment->mAnonName )
381380 );
@@ -500,7 +499,7 @@
501500 $opts = $this->mFormOptions;
502501
503502 $preview = '';
504 - if ( $comment && $comment->mParent == $parent) {
 503+ if ( $comment && $comment->mParent == $parent ) {
505504 $check = $this->validateComment( $comment );
506505 if ( $check ) {
507506 $preview = Xml::wrapClass( wfMsg( $check ), 'mw-warning', 'div' );
@@ -512,9 +511,9 @@
513512 }
514513
515514 $form =
516 - Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ).
517 - Xml::hidden( 'action', 'wikilog' ).
518 - Xml::hidden( 'wpEditToken', $wgUser->editToken() ).
 515+ Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ) .
 516+ Xml::hidden( 'action', 'wikilog' ) .
 517+ Xml::hidden( 'wpEditToken', $wgUser->editToken() ) .
519518 ( $parent ? Xml::hidden( 'wlParent', $parent ) : '' );
520519
521520 $fields = array();
@@ -532,7 +531,7 @@
533532 $fields[] = array(
534533 Xml::label( wfMsg( 'wikilog-form-name' ), 'wl-name' ),
535534 Xml::input( 'wlAnonName', 25, $opts->consumeValue( 'wlAnonName' ),
536 - array( 'id' => 'wl-name', 'maxlength' => 255 ) ).
 535+ array( 'id' => 'wl-name', 'maxlength' => 255 ) ) .
537536 "<p>{$message}</p>"
538537 );
539538 }
@@ -552,7 +551,7 @@
553552 }
554553
555554 $fields[] = array( '',
556 - Xml::submitbutton( wfMsg( 'wikilog-submit' ), array( 'name' => 'wlActionCommentSubmit' ) ) .'&nbsp;'.
 555+ Xml::submitbutton( wfMsg( 'wikilog-submit' ), array( 'name' => 'wlActionCommentSubmit' ) ) . '&nbsp;' .
557556 Xml::submitbutton( wfMsg( 'wikilog-preview' ), array( 'name' => 'wlActionCommentPreview' ) )
558557 );
559558
@@ -704,5 +703,4 @@
705704
706705 return false;
707706 }
708 -
709707 }
Index: trunk/extensions/Wikilog/WikilogHooks.php
@@ -28,13 +28,11 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /**
3433 * General wikilog hooks.
3534 */
3635 class WikilogHooks
3736 {
38 -
3937 /**
4038 * ArticleEditUpdates hook handler function.
4139 * Performs post-edit updates if article is a wikilog article.
@@ -194,7 +192,7 @@
195193 if ( $oldwl && $newwl ) {
196194 # Moving title between wikilog namespaces.
197195 # Update wikilog data.
198 - wfDebug( __METHOD__ . ": Moving title between wikilog namespaces ".
 196+ wfDebug( __METHOD__ . ": Moving title between wikilog namespaces " .
199197 "($oldns, $newns). Updating wikilog data.\n" );
200198
201199 $wi = Wikilog::getWikilogInfo( $newtitle );
@@ -210,14 +208,14 @@
211209 } else if ( $newwl ) {
212210 # Moving from normal namespace to wikilog namespace.
213211 # Create wikilog data.
214 - wfDebug( __METHOD__ . ": Moving from another namespace to wikilog ".
 212+ wfDebug( __METHOD__ . ": Moving from another namespace to wikilog " .
215213 "namespace ($oldns, $newns). Creating wikilog data.\n" );
216214 # FIXME: This needs a reparse of the wiki text in order to
217215 # populate wikilog metadata. Or forbid this action.
218216 } else if ( $oldwl ) {
219217 # Moving from wikilog namespace to normal namespace.
220218 # Purge wikilog data.
221 - wfDebug( __METHOD__ . ": Moving from wikilog namespace to another ".
 219+ wfDebug( __METHOD__ . ": Moving from wikilog namespace to another " .
222220 "namespace ($oldns, $newns). Purging wikilog data.\n" );
223221 $dbw = wfGetDB( DB_MASTER );
224222 $dbw->delete( 'wikilog_wikilogs', array( 'wlw_page' => $pageid ) );
@@ -265,14 +263,14 @@
266264 static function ExtensionSchemaUpdates() {
267265 global $wgDBtype, $wgExtNewFields, $wgExtPGNewFields, $wgExtNewIndexes, $wgExtNewTables;
268266
269 - $dir = dirname(__FILE__) . '/';
 267+ $dir = dirname( __FILE__ ) . '/';
270268
271 - if( $wgDBtype == 'mysql' ) {
 269+ if ( $wgDBtype == 'mysql' ) {
272270 $wgExtNewTables[] = array( "wikilog_wikilogs", "{$dir}wikilog-tables.sql" );
273271 } else {
274 - /// TODO: PostgreSQL, SQLite, etc...
275 - print "\n".
276 - "Warning: There are no table structures for the Wikilog\n".
 272+ // / TODO: PostgreSQL, SQLite, etc...
 273+ print "\n" .
 274+ "Warning: There are no table structures for the Wikilog\n" .
277275 "extension other than for MySQL at this moment.\n\n";
278276 }
279277 return true;
@@ -289,5 +287,4 @@
290288 }
291289 return true;
292290 }
293 -
294291 }
Index: trunk/extensions/Wikilog/WikilogLinksUpdate.php
@@ -28,10 +28,8 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 class WikilogLinksUpdate
3433 {
35 -
3634 private $mId;
3735 private $mTitle;
3836 private $mDb;
@@ -104,7 +102,7 @@
105103 private function getAuthorInsertions( $existing = array() ) {
106104 $arr = array();
107105 $diffs = array_diff_key( $this->mAuthors, $existing );
108 - foreach( $diffs as $author_text => $author ) {
 106+ foreach ( $diffs as $author_text => $author ) {
109107 $arr[] = array(
110108 'wla_page' => $this->mId,
111109 'wla_author' => $author,
@@ -117,7 +115,7 @@
118116 private function getTagInsertions( $existing = array() ) {
119117 $arr = array();
120118 $diffs = array_diff_key( $this->mTags, $existing );
121 - foreach( $diffs as $tag => $dummy ) {
 119+ foreach ( $diffs as $tag => $dummy ) {
122120 $arr[] = array(
123121 'wlt_page' => $this->mId,
124122 'wlt_tag' => $tag
@@ -157,10 +155,10 @@
158156 }
159157
160158
161 - ###
162 - ## MediaWiki hooks.
 159+ /**
 160+ * MediaWiki hooks.
 161+ */
163162 #
164 -
165163 static function LinksUpdate( &$lupd ) {
166164 if ( isset( $lupd->mParserOutput->mExtWikilog ) ) {
167165 $u = new WikilogLinksUpdate( $lupd, $lupd->mParserOutput->mExtWikilog );
@@ -168,6 +166,4 @@
169167 }
170168 return true;
171169 }
172 -
173170 }
174 -
Index: trunk/extensions/Wikilog/WikilogItemPage.php
@@ -28,7 +28,6 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /**
3433 * Wikilog article namespace handler class.
3534 *
@@ -38,7 +37,6 @@
3938 class WikilogItemPage
4039 extends Article
4140 {
42 -
4341 /**
4442 * Wikilog article item object.
4543 */
@@ -82,7 +80,7 @@
8381
8482 # Display draft notice.
8583 if ( !$this->mItem->getIsPublished() ) {
86 - $wgOut->addHtml( wfMsgWikiHtml( 'wikilog-reading-draft' ) );
 84+ $wgOut->wrapWikiMsg( '<div class="mw-warning">$1</div>', array( 'wikilog-reading-draft' ) );
8785 }
8886
8987 # Item page header.
@@ -130,7 +128,7 @@
131129 # Add feed links.
132130 $links = array();
133131 if ( $wgFeed ) {
134 - foreach( $wgWikilogFeedClasses as $format => $class ) {
 132+ foreach ( $wgWikilogFeedClasses as $format => $class ) {
135133 $wgOut->addLink( array(
136134 'rel' => 'alternate',
137135 'type' => "application/{$format}+xml",
@@ -188,6 +186,4 @@
189187
190188 return parent::preSaveTransform( $text );
191189 }
192 -
193190 }
194 -
Index: trunk/extensions/Wikilog/WikilogParser.php
@@ -28,14 +28,12 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /**
3433 * This class holds the parser functions that hooks into the Parser in order
3534 * to collect Wikilog metadata.
3635 */
3736 class WikilogParser
3837 {
39 -
4038 /**
4139 * True if parsing articles with feed output specific settings.
4240 * This is an horrible hack needed because of many MediaWiki misdesigns.
@@ -138,14 +136,13 @@
139137 global $wgServer;
140138 if ( self::$expandingUrls ) {
141139 $l = strlen( $wgServer );
142 - if ( substr( $url, 0, 2*$l ) == $wgServer.$wgServer ) {
 140+ if ( substr( $url, 0, 2 * $l ) == $wgServer . $wgServer ) {
143141 $url = substr( $url, $l );
144142 }
145143 }
146144 return true;
147145 }
148146
149 -
150147 ###
151148 ## Parser tags and functions
152149 #
@@ -308,7 +305,6 @@
309306 }
310307 }
311308
312 -
313309 ###
314310 ## Wikilog parser settings.
315311 #
@@ -529,10 +525,8 @@
530526 return NULL;
531527 }
532528 }
533 -
534529 }
535530
536 -
537531 /**
538532 * Wikilog parser output. This class is first attached to the Parser as
539533 * $parser->mExtWikilog, and then copied to the parser output
@@ -540,7 +534,6 @@
541535 */
542536 class WikilogParserOutput
543537 {
544 -
545538 /* Item and Wikilog metadata */
546539 public $mSummary = false;
547540 public $mAuthors = array();
@@ -557,10 +550,8 @@
558551 /* Acessor functions, lacking... */
559552 public function getAuthors() { return $this->mAuthors; }
560553 public function getTags() { return $this->mTags; }
561 -
562554 }
563555
564 -
565556 /**
566557 * Since wikilog parses articles with specific options in order to be
567558 * rendered in feeds, it is necessary to store these parsed outputs in
@@ -571,7 +562,6 @@
572563 class WikilogParserCache
573564 extends ParserCache
574565 {
575 -
576566 public static function &singleton() {
577567 static $instance;
578568 if ( !isset( $instance ) ) {
@@ -582,7 +572,7 @@
583573 }
584574
585575 public function getKey( &$article, $popts ) {
586 - if( $popts instanceof User ) // API change in MediaWiki 1.15.
 576+ if ( $popts instanceof User ) // API change in MediaWiki 1.15.
587577 $popts = ParserOptions::newFromUser( $popts );
588578
589579 $user = $popts->mUser;
@@ -591,5 +581,4 @@
592582 $key = wfMemcKey( 'wlcache', 'idhash', "$pageid-$hash" );
593583 return $key;
594584 }
595 -
596585 }
Index: trunk/extensions/Wikilog/Wikilog.i18n.php
@@ -12,532 +12,407 @@
1313 */
1414 $messages['en'] = array(
1515 # Extension information
16 - 'wikilog-desc' => 'Adds blogging features, creating a wiki-blog hybrid.',
17 - 'wikilog-auto' => 'Wikilog Auto', # reserved username
18 - 'right-wl-postcomment' => 'Post comments to wikilog articles',
19 - 'right-wl-moderation' => 'Moderation of wikilog article comments',
 16+ 'wikilog-desc' => 'Adds blogging features, creating a wiki-blog hybrid',
 17+ 'wikilog-auto' => 'Wikilog Auto', # reserved username
 18+ 'right-wl-postcomment' => 'Post comments to wikilog articles',
 19+ 'right-wl-moderation' => 'Moderation of wikilog article comments',
2020
2121 # Special:Wikilog
22 - 'wikilog' => 'Wikilogs', # Page title
23 - 'wikilog-specialwikilog' => 'Wikilog', # Special page name
 22+ 'wikilog' => 'Wikilogs', # Page title
 23+ 'wikilog-specialwikilog' => 'Wikilog', # Special page name
2424
2525 # Logs
26 - 'wikilog-log-pagename' => 'Wikilog actions log',
27 - 'wikilog-log-pagetext' => 'Below is a list of wikilog actions.',
28 - 'wikilog-log-cmt-approve' => 'approved comment [[$1]]',
29 - 'wikilog-log-cmt-reject' => 'rejected comment [[$1]]',
30 - 'wikilog-log-cmt-rejdel' => 'Rejected wikilog comment from [[Special:Contributions/$1|$1]]',
 26+ 'wikilog-log-pagename' => 'Wikilog actions log',
 27+ 'wikilog-log-pagetext' => 'Below is a list of wikilog actions.',
 28+ 'wikilog-log-cmt-approve' => 'approved comment [[$1]]',
 29+ 'wikilog-log-cmt-reject' => 'rejected comment [[$1]]',
 30+ 'wikilog-log-cmt-rejdel' => 'Rejected wikilog comment from [[Special:Contributions/$1|$1]]',
3131
3232 # Wikilog tab
33 - 'wikilog-tab' => 'Wikilog',
34 - 'wikilog-tab-title' => 'Wikilog actions',
35 - 'wikilog-information' => 'Wikilog information',
36 - 'wikilog-post-count-published' =>
37 - 'There are $1 published {{PLURAL:$1|article|articles}} in this wikilog,',
38 - 'wikilog-post-count-drafts' =>
39 - 'plus $1 unpublished (draft) {{PLURAL:$1|article|articles}},',
40 - 'wikilog-post-count-all' =>
41 - 'for a total of $1 {{PLURAL:$1|article|articles}}.',
42 - 'wikilog-new-item' => 'Create new wikilog article',
43 - 'wikilog-new-item-go' => 'Create',
44 - 'wikilog-item-name' => 'Article name:',
 33+ 'wikilog-tab' => 'Wikilog',
 34+ 'wikilog-tab-title' => 'Wikilog actions',
 35+ 'wikilog-information' => 'Wikilog information',
 36+ 'wikilog-post-count-published' => 'There {{PLURAL:$1|is one published article|are $1 published articles}} in this wikilog,',
 37+ 'wikilog-post-count-drafts' => 'There {{PLURAL:$1|is one unpublished (draft) article|are $1 unpublished (draft) articles}},',
 38+ 'wikilog-post-count-all' => 'In total there {{PLURAL:$1|is one article|are $1 articles}}.',
 39+ 'wikilog-new-item' => 'Create new wikilog article',
 40+ 'wikilog-new-item-go' => 'Create',
 41+ 'wikilog-item-name' => 'Article name:',
4542
4643 # Generic strings
47 - 'wikilog-published' => 'Published',
48 - 'wikilog-updated' => 'Updated',
49 - 'wikilog-draft' => 'Draft',
50 - 'wikilog-authors' => 'Authors',
51 - 'wikilog-wikilog' => 'Wikilog',
52 - 'wikilog-title' => 'Title',
53 - 'wikilog-actions' => 'Actions',
54 - 'wikilog-comments' => 'Comments',
55 - 'wikilog-replies' => 'Replies',
56 - 'wikilog-view-archives' => 'Archives',
57 - 'wikilog-view-summary' => 'Summary',
58 - 'wikilog-draft-title-mark' => '(draft)',
59 - 'wikilog-anonymous-mark' => '(anonymous)',
 44+ 'wikilog-published' => 'Published',
 45+ 'wikilog-updated' => 'Updated',
 46+ 'wikilog-draft' => 'Draft',
 47+ 'wikilog-authors' => 'Authors',
 48+ 'wikilog-wikilog' => 'Wikilog',
 49+ 'wikilog-title' => 'Title',
 50+ 'wikilog-actions' => 'Actions',
 51+ 'wikilog-comments' => 'Comments',
 52+ 'wikilog-replies' => 'Replies',
 53+ 'wikilog-view-archives' => 'Archives',
 54+ 'wikilog-view-summary' => 'Summary',
 55+ 'wikilog-draft-title-mark' => '(draft)',
 56+ 'wikilog-anonymous-mark' => '(anonymous)',
6057
6158 # Pager strings
62 - 'wikilog-pager-newer-n' => '← newer $1', # $1 = number of items
63 - 'wikilog-pager-older-n' => 'older $1 →', # $1 = number of items
64 - 'wikilog-pager-newest' => '←← newest',
65 - 'wikilog-pager-oldest' => 'oldest →→',
66 - 'wikilog-pager-prev' => '← previous',
67 - 'wikilog-pager-next' => 'next →',
68 - 'wikilog-pager-first' => '←← first',
69 - 'wikilog-pager-last' => 'last →→',
70 - 'wikilog-pager-empty' =>
71 - '<div class="wl-empty">(no items)</div>',
 59+ 'wikilog-pager-newer-n' => '← newer $1', # $1 = number of items
 60+ 'wikilog-pager-older-n' => 'older $1 →', # $1 = number of items
 61+ 'wikilog-pager-newest' => '←← newest',
 62+ 'wikilog-pager-oldest' => 'oldest →→',
 63+ 'wikilog-pager-prev' => '← previous',
 64+ 'wikilog-pager-next' => 'next →',
 65+ 'wikilog-pager-first' => '←← first',
 66+ 'wikilog-pager-last' => 'last →→',
 67+ 'wikilog-pager-empty' => '(no items)',
7268
7369 # Comments page link text
74 - 'wikilog-no-comments' => 'no comments',
75 - 'wikilog-has-comments' => '{{PLURAL:$1|one comment|$1 comments}}',
 70+ 'wikilog-no-comments' => 'no comments',
 71+ 'wikilog-has-comments' => '{{PLURAL:$1|one comment|$1 comments}}',
7672
7773 # Wikilog item header and footer
7874 # $1 = Wikilog URL, $2 = Wikilog Name, $3 = Item URL, $4 = Item Title
7975 # $5 = Authors, $6 = Publish date, $7 = Comments link
80 - 'wikilog-item-brief-header' => ': <i><small>by $5, from [[$1|$2]], $6, $7.</small></i>',
81 - 'wikilog-item-brief-footer' => '',
82 - 'wikilog-item-more' => '[[$3|→ continue reading...]]',
83 - 'wikilog-item-sub' => '',
84 - 'wikilog-item-header' => '',
85 - 'wikilog-item-footer' => ': <i>&mdash; $5 &#8226; $6 &#8226; $7</i>',
 76+ 'wikilog-item-brief-header' => ': <i><small>by $5, from [[$1|$2]], $6, $7.</small></i>',
 77+ 'wikilog-item-brief-footer' => '',
 78+ 'wikilog-item-more' => '[[$3|→ continue reading...]]',
 79+ 'wikilog-item-sub' => '',
 80+ 'wikilog-item-header' => '',
 81+ 'wikilog-item-footer' => ': <i>&mdash; $5 &#8226; $6 &#8226; $7</i>',
8682
87 - 'wikilog-author-signature' => '[[{{ns:User}}:$1|$1]] ([[{{ns:User_talk}}:$1|talk]])',
 83+ 'wikilog-author-signature' => '[[{{ns:User}}:$1|$1]] ([[{{ns:User_talk}}:$1|talk]])',
8884
8985 # Comments
90 - 'wikilog-comment-by-user' => 'Comment by <span class="wl-comment-author">$1</span> ($2)',
91 - 'wikilog-comment-by-anon' => 'Comment by <span class="wl-comment-author">$3</span> (anonymous)',
92 - 'wikilog-comment-pending' => 'This comment is awaiting approval.',
93 - 'wikilog-comment-deleted' => 'This comment was deleted.',
94 - 'wikilog-comment-edited' => 'This comment was last edited on $1 ($2).', # $1 = date and time, $2 = history link
95 - 'wikilog-comment-autosumm' => 'New comment by $1: $2',
96 - 'wikilog-reply-to-comment' => 'Post a reply to this comment',
97 - 'wikilog-comment-page' => 'Go to this comment\'s page',
98 - 'wikilog-comment-edit' => 'Edit this comment',
99 - 'wikilog-comment-delete' => 'Delete this comment',
100 - 'wikilog-comment-history' => 'View comment history',
101 - 'wikilog-comment-approve' => 'Approve this comment (immediate action)',
102 - 'wikilog-comment-reject' => 'Reject this comment (immediate action)',
103 - 'wikilog-newtalk-text' => '<!-- blank page created by Wikilog -->',
104 - 'wikilog-newtalk-summary' => 'created automatically by wikilog',
 86+ 'wikilog-comment-by-user' => 'Comment by $1 ($2)',
 87+ 'wikilog-comment-by-anon' => 'Comment by $3 (anonymous)',
 88+ 'wikilog-comment-pending' => 'This comment is awaiting approval.',
 89+ 'wikilog-comment-deleted' => 'This comment was deleted.',
 90+ 'wikilog-comment-edited' => 'This comment was last edited on $1 ($2).', # $1 = date and time, $2 = history link
 91+ 'wikilog-comment-autosumm' => 'New comment by $1: $2',
 92+ 'wikilog-reply-to-comment' => 'Post a reply to this comment',
 93+ 'wikilog-comment-page' => "Go to this comment's page",
 94+ 'wikilog-comment-edit' => 'Edit this comment',
 95+ 'wikilog-comment-delete' => 'Delete this comment',
 96+ 'wikilog-comment-history' => 'View comment history',
 97+ 'wikilog-comment-approve' => 'Approve this comment (immediate action)',
 98+ 'wikilog-comment-reject' => 'Reject this comment (immediate action)',
 99+ 'wikilog-newtalk-text' => '<!-- blank page created by Wikilog -->',
 100+ 'wikilog-newtalk-summary' => 'created automatically by wikilog',
105101
106102 # Atom and RSS feeds
107 - 'wikilog-feed-title' => '{{SITENAME}} - $1 [$2]', # $1 = title, $2 = content language
108 - 'wikilog-feed-description' => 'Read the most recent posts in this feed.',
 103+ 'wikilog-feed-title' => '{{SITENAME}} - $1 [$2]', # $1 = title, $2 = content language
 104+ 'wikilog-feed-description' => 'Read the most recent posts in this feed.',
109105
110106 # Item and comments page titles
111 - 'wikilog-title-item-full' => '$1 - $2', #1 = article title, $2 wikilog title
112 - 'wikilog-title-comments' => 'Comments - $1', #1 = article title
 107+ 'wikilog-title-item-full' => '$1 - $2', # 1 = article title, $2 wikilog title
 108+ 'wikilog-title-comments' => 'Comments - $1', # 1 = article title
113109
114110 # Warning and error messages
115 - 'wikilog-error-msg' => 'Wikilog: $1',
116 - 'wikilog-error-title' => 'Wikilog error',
117 - 'wikilog-invalid-param' => 'Invalid parameter: $1.',
118 - 'wikilog-invalid-author' => 'Invalid author: $1.',
119 - 'wikilog-invalid-date' => 'Invalid date: $1.',
120 - 'wikilog-invalid-tag' => 'Invalid tag: $1.',
121 - 'wikilog-invalid-file' => 'Invalid file: $1.',
122 - 'wikilog-file-not-found' => 'Non-existing file: $1.',
123 - 'wikilog-not-an-image' => 'File is not an image: $1.',
124 - 'wikilog-out-of-context' =>
125 - 'Warning: Wikilog tags are being used out of context. ' .
126 - 'They should only be used in articles in the Wikilog namespace.',
127 - 'wikilog-too-many-authors' =>
128 - 'Warning: Too many authors listed in this wikilog post.',
129 - 'wikilog-too-many-tags' =>
130 - 'Warning: Too many tags listed in this wikilog post.',
131 - 'wikilog-comment-is-empty' =>
132 - 'Posted comment is blank.',
133 - 'wikilog-comment-too-long' =>
134 - 'Posted comment is too long.',
135 - 'wikilog-comment-invalid-name' =>
136 - 'Provided name is invalid.',
137 - 'wikilog-no-such-article' =>
138 - 'The requested wikilog article does not exist.',
 111+ 'wikilog-error-msg' => 'Wikilog: $1',
 112+ 'wikilog-error-title' => 'Wikilog error',
 113+ 'wikilog-invalid-param' => 'Invalid parameter: $1.',
 114+ 'wikilog-invalid-author' => 'Invalid author: $1.',
 115+ 'wikilog-invalid-date' => 'Invalid date: $1.',
 116+ 'wikilog-invalid-tag' => 'Invalid tag: $1.',
 117+ 'wikilog-invalid-file' => 'Invalid file: $1.',
 118+ 'wikilog-file-not-found' => 'Non-existing file: $1.',
 119+ 'wikilog-not-an-image' => 'File is not an image: $1.',
 120+ 'wikilog-out-of-context' => 'Warning: Wikilog tags are being used out of context.
 121+They should only be used in articles in the Wikilog namespace.',
 122+ 'wikilog-too-many-authors' => 'Warning: Too many authors listed in this wikilog post.',
 123+ 'wikilog-too-many-tags' => 'Warning: Too many tags listed in this wikilog post.',
 124+ 'wikilog-comment-is-empty' => 'Posted comment is blank.',
 125+ 'wikilog-comment-too-long' => 'Posted comment is too long.',
 126+ 'wikilog-comment-invalid-name' => 'Provided name is invalid.',
 127+ 'wikilog-no-such-article' => 'The requested wikilog article does not exist.',
139128
140 - 'wikilog-reading-draft' =>
141 - '<div class="mw-warning">'.
142 - '<p>This wikilog article is a draft, it was not published yet.</p>'.
143 - '</div>',
 129+ 'wikilog-reading-draft' => 'This wikilog article is a draft, it was not published yet.',
144130
145 - 'wikilog-posting-anonymously' => # $1 = "login" link
146 - 'You are currently not logged in; your comment will be posted '.
147 - 'anonymously, identified by your Internet connection address. '.
148 - 'You should either provide a pseudonym above to identify your '.
149 - 'comment or $1 for it to be properly attributed.',
150 - 'wikilog-anonymous-moderated' =>
151 - 'After you submit your comment, it will not be immediately '.
152 - 'visible on this page. The comment will only appear after it '.
153 - 'is reviewed by a moderator.',
 131+ 'wikilog-posting-anonymously' => 'You are currently not logged in;
 132+your comment will be posted anonymously, identified by your Internet connection address.
 133+You should either provide a pseudonym above to identify your comment or $1 for it to be properly attributed.', # $1 = "login" link
 134+ 'wikilog-anonymous-moderated' => 'After you submit your comment, it will not be immediately visible on this page.
 135+The comment will only appear after it is reviewed by a moderator.',
154136
155137 # Forms
156 - 'wikilog-post-comment' => 'Post a new comment',
157 - 'wikilog-post-reply' => 'Post a new reply',
158 - 'wikilog-form-legend' => 'Search for wikilog posts',
159 - 'wikilog-form-wikilog' => 'Wikilog:',
160 - 'wikilog-form-category' => 'Category:',
161 - 'wikilog-form-name' => 'Name:',
162 - 'wikilog-form-author' => 'Author:',
163 - 'wikilog-form-tag' => 'Tag:',
164 - 'wikilog-form-date' => 'Date:',
165 - 'wikilog-form-status' => 'Status:',
166 - 'wikilog-form-preview' => 'Preview:',
167 - 'wikilog-form-comment' => 'Comment:',
168 - 'wikilog-show-all' => 'All posts',
169 - 'wikilog-show-published' => 'Published',
170 - 'wikilog-show-drafts' => 'Drafts',
171 - 'wikilog-submit' => 'Submit',
172 - 'wikilog-preview' => 'Preview', # verb
173 - 'wikilog-edit-lc' => 'edit', # verb
174 - 'wikilog-reply-lc' => 'reply', # verb
175 - 'wikilog-delete-lc' => 'delete', # verb
176 - 'wikilog-approve-lc' => 'approve', # verb
177 - 'wikilog-reject-lc' => 'reject', # verb
178 - 'wikilog-page-lc' => 'page', # noun
179 - 'wikilog-history-lc' => 'history', # noun
 138+ 'wikilog-post-comment' => 'Post a new comment',
 139+ 'wikilog-post-reply' => 'Post a new reply',
 140+ 'wikilog-form-legend' => 'Search for wikilog posts',
 141+ 'wikilog-form-wikilog' => 'Wikilog:',
 142+ 'wikilog-form-category' => 'Category:',
 143+ 'wikilog-form-name' => 'Name:',
 144+ 'wikilog-form-author' => 'Author:',
 145+ 'wikilog-form-tag' => 'Tag:',
 146+ 'wikilog-form-date' => 'Date:',
 147+ 'wikilog-form-status' => 'Status:',
 148+ 'wikilog-form-preview' => 'Preview:',
 149+ 'wikilog-form-comment' => 'Comment:',
 150+ 'wikilog-show-all' => 'All posts',
 151+ 'wikilog-show-published' => 'Published',
 152+ 'wikilog-show-drafts' => 'Drafts',
 153+ 'wikilog-submit' => 'Submit',
 154+ 'wikilog-preview' => 'Preview', # verb
 155+ 'wikilog-edit-lc' => 'edit', # verb
 156+ 'wikilog-reply-lc' => 'reply', # verb
 157+ 'wikilog-delete-lc' => 'delete', # verb
 158+ 'wikilog-approve-lc' => 'approve', # verb
 159+ 'wikilog-reject-lc' => 'reject', # verb
 160+ 'wikilog-page-lc' => 'page', # noun
 161+ 'wikilog-history-lc' => 'history', # noun
180162
181163 # Other
182164 'wikilog-doc-import-comment' => "Imported Wikilog documentation",
183165
184166 # Untranslatable strings
185 - 'wikilog-summary' => '', # Special page summary
186 - 'wikilog-backlink' => '← $1',
187 - 'wikilog-brackets' => '[$1]',
188 - 'wikilog-navigation-bar' =>
189 - '<div class="$6 visualClear">'.
190 - '<div style="float:left">$1 • $2</div>'.
191 - '<div style="float:right">$3 • $4</div>'.
192 - '<div style="text-align:center">$5</div>'.
 167+ 'wikilog-summary' => '', # Special page summary
 168+ 'wikilog-backlink' => '← $1',
 169+ 'wikilog-brackets' => '[$1]',
 170+ 'wikilog-navigation-bar' =>
 171+ '<div class="$6 visualClear">' .
 172+ '<div style="float:left">$1 • $2</div>' .
 173+ '<div style="float:right">$3 • $4</div>' .
 174+ '<div style="text-align:center">$5</div>' .
193175 '</div>',
194176 );
195177
196 -/** Portuguese (Português)
197 - * @author Juliano F. Ravasi
198 - */
199 -$messages['pt'] = array(
200 - # Extension information
201 - 'wikilog-desc' => 'Adiciona recursos de blog, criando um híbrido wiki-blog.',
202 - 'wikilog-auto' => 'Wikilog Auto', # reserved username
203 - 'right-wl-postcomment' => 'Postar comentários em artigos wikilog',
204 - 'right-wl-moderation' => 'Moderação de comentários de artigos wikilog',
205 -
206 - # Special:Wikilog
207 - 'wikilog' => 'Wikilogs',
208 - 'wikilog-specialwikilog' => 'Wikilog',
209 -
210 - # Logs
211 - 'wikilog-log-pagename' => 'Registro de ações wikilog',
212 - 'wikilog-log-pagetext' => 'Abaixo está uma lista das ações wikilog.',
213 - 'wikilog-log-cmt-approve' => 'aprovou o comentário [[$1]]',
214 - 'wikilog-log-cmt-reject' => 'rejeitou o comentário [[$1]]',
215 - 'wikilog-log-cmt-rejdel' => 'Comentário wikilog de [[Special:Contributions/$1|$1]] rejeitado',
216 -
217 - # Wikilog tab
218 - 'wikilog-tab' => 'Wikilog',
219 - 'wikilog-tab-title' => 'Ações wikilog',
220 - 'wikilog-information' => 'Informações do wikilog',
221 - 'wikilog-post-count-published' =>
222 - 'Há $1 {{PLURAL:$1|artigo publicado|artigos publicados}} neste wikilog,',
223 - 'wikilog-post-count-drafts' =>
224 - 'mais $1 {{PLURAL:$1|artigo não-publicado (rascunho)|artigos não-publicados (rascunhos)}},',
225 - 'wikilog-post-count-all' =>
226 - 'para um total de $1 {{PLURAL:$1|artigo|artigos}}.',
227 - 'wikilog-new-item' => 'Criar novo artigo wikilog',
228 - 'wikilog-new-item-go' => 'Criar',
229 - 'wikilog-item-name' => 'Nome do artigo:',
230 -
231 - # Generic strings
232 - 'wikilog-published' => 'Publicado',
233 - 'wikilog-updated' => 'Atualizado',
234 - 'wikilog-draft' => 'Rascunho',
235 - 'wikilog-authors' => 'Autores',
236 - 'wikilog-wikilog' => 'Wikilog',
237 - 'wikilog-title' => 'Título',
238 - 'wikilog-actions' => 'Ações',
239 - 'wikilog-comments' => 'Comentários',
240 - 'wikilog-replies' => 'Respostas',
241 - 'wikilog-view-archives' => 'Arquivos',
242 - 'wikilog-view-summary' => 'Resumo',
243 - 'wikilog-draft-title-mark' => '(rascunho)',
244 - 'wikilog-anonymous-mark' => '(anônimo)',
245 -
246 - # Pager strings
247 - 'wikilog-pager-newer-n' => '← $1 próximos', # $1 = number of items
248 - 'wikilog-pager-older-n' => '$1 anteriores →', # $1 = number of items
249 - 'wikilog-pager-newest' => '←← mais recentes',
250 - 'wikilog-pager-oldest' => 'mais antigos →→',
251 - 'wikilog-pager-prev' => '← anterior',
252 - 'wikilog-pager-next' => 'próxima →',
253 - 'wikilog-pager-first' => '←← primeira',
254 - 'wikilog-pager-last' => 'última →→',
255 - 'wikilog-pager-empty' =>
256 - '<div class="wl-empty">(não há itens)</div>',
257 -
258 - # Comments page link text
259 - 'wikilog-no-comments' => 'não há comentários',
260 - 'wikilog-has-comments' => '{{PLURAL:$1|um comentário|$1 comentários}}',
261 -
262 - # Wikilog item header and footer
263 - 'wikilog-item-brief-header' => ': <i><small>por $5, em [[$1|$2]], $6, $7.</small></i>',
264 - 'wikilog-item-brief-footer' => '',
265 - 'wikilog-item-more' => '[[$3|→ continuar lendo...]]',
266 - 'wikilog-item-sub' => '',
267 - 'wikilog-item-header' => '',
268 - 'wikilog-item-footer' => ': <i>&mdash; $5 &#8226; $6 &#8226; $7</i>',
269 -
270 - 'wikilog-author-signature' => '[[{{ns:User}}:$1|$1]] ([[{{ns:User_talk}}:$1|discussão]])',
271 -
272 - # Comments
273 - 'wikilog-comment-by-user' => 'Comentário por <span class="wl-comment-author">$1</span> ($2)',
274 - 'wikilog-comment-by-anon' => 'Comentário por <span class="wl-comment-author">$3</span> (anônimo)',
275 - 'wikilog-comment-pending' => 'Este comentário está aguardando aprovação.',
276 - 'wikilog-comment-deleted' => 'Este comentário foi apagado.',
277 - 'wikilog-comment-edited' => 'Este comentário foi editado pela última vez em $1 ($2).', # $1 = date and time, $2 = history link
278 - 'wikilog-comment-autosumm' => 'Novo comentário por $1: $2',
279 - 'wikilog-reply-to-comment' => 'Postar uma resposta a esse comentário',
280 - 'wikilog-comment-page' => 'Ir para a página deste comentário',
281 - 'wikilog-comment-edit' => 'Editar este comentário',
282 - 'wikilog-comment-delete' => 'Apagar este comentário',
283 - 'wikilog-comment-history' => 'Ver histórico do comentário',
284 - 'wikilog-comment-approve' => 'Aprovar este comentário (ação imediata)',
285 - 'wikilog-comment-reject' => 'Rejeitar este comentário (ação imediata)',
286 - 'wikilog-newtalk-text' => '<!-- página em branco criada pelo Wikilog -->',
287 - 'wikilog-newtalk-summary' => 'criado automaticamente pelo wikilog',
288 -
289 - # Atom and RSS feeds
290 - 'wikilog-feed-title' => '{{SITENAME}} - $1 [$2]', # $1 = title, $2 = content language
291 - 'wikilog-feed-description' => 'Leia as postagens mais recentes neste feed.',
292 -
293 - # Item and comments page titles
294 - 'wikilog-title-item-full' => '$1 - $2', #1 = article title, $2 wikilog title
295 - 'wikilog-title-comments' => 'Comentários - $1', #1 = article title
296 -
297 - # Warning and error messages
298 - 'wikilog-error-msg' => 'Wikilog: $1',
299 - 'wikilog-invalid-param' => 'Parâmetro inválido: $1.',
300 - 'wikilog-invalid-author' => 'Autor inválido: $1.',
301 - 'wikilog-invalid-date' => 'Data inválida: $1.',
302 - 'wikilog-invalid-tag' => 'Rótulo inválido: $1.',
303 - 'wikilog-invalid-file' => 'Arquivo inválido: $1.',
304 - 'wikilog-file-not-found' => 'Arquivo não-existente: $1.',
305 - 'wikilog-not-an-image' => 'Arquivo não é uma imagem: $1.',
306 - 'wikilog-out-of-context' =>
307 - 'Aviso: Rótulos wikilog estão sendo utilizados fora de contexto. ' .
308 - 'Eles devem ser usados apenas em artigos no espaço de nomes do Wikilog.',
309 - 'wikilog-too-many-authors' =>
310 - 'Aviso: Autores demais listados nesta postagem wikilog.',
311 - 'wikilog-too-many-tags' =>
312 - 'Aviso: Rótulos demais listados nesta postagem wikilog.',
313 - 'wikilog-comment-is-empty' =>
314 - 'O comentário postado está em branco.',
315 - 'wikilog-comment-too-long' =>
316 - 'O comentário postado é muito longo.',
317 - 'wikilog-comment-invalid-name' =>
318 - 'O nome fornecido é inválido.',
319 - 'wikilog-no-such-article' =>
320 - 'O artigo wikilog solicitado não existe.',
321 -
322 - 'wikilog-reading-draft' =>
323 - '<div class="mw-warning">'.
324 - '<p>Este artigo wikilog é um rascunho, ainda não foi publicado.</p>'.
325 - '</div>',
326 -
327 - 'wikilog-posting-anonymously' => # $1 = "login" link
328 - 'Você não está autenticado neste momento; seu comentário será '.
329 - 'postado anonimamente, identificado pelo endereço de sua conexão '.
330 - 'Internet. Você deve fornecer um pseudônimo acima para '.
331 - 'identificar seu comentário ou $1 para que ele seja creditado '.
332 - 'apropriadamente.',
333 -
334 - 'wikilog-posting-anonymously' =>
335 - "Seu comentário será postado anonimamente. Você pode " .
336 - "$1 para que seu comentário seja identificado.",
337 - 'wikilog-anonymous-moderated' =>
338 - 'Após submeter seu comentário, este não será imediatamente '.
339 - 'visível nesta página. O comentário somente aparecerá após ser '.
340 - 'revisado por um moderador.',
341 -
342 - # Forms
343 - 'wikilog-post-comment' => 'Postar um novo comentário',
344 - 'wikilog-post-reply' => 'Postar uma nova resposta',
345 - 'wikilog-form-legend' => 'Procurar por postagens wikilog',
346 - 'wikilog-form-wikilog' => 'Wikilog:',
347 - 'wikilog-form-category' => 'Categoria:',
348 - 'wikilog-form-name' => 'Nome:',
349 - 'wikilog-form-author' => 'Autor:',
350 - 'wikilog-form-tag' => 'Rótulo:',
351 - 'wikilog-form-date' => 'Data:',
352 - 'wikilog-form-status' => 'Estado:',
353 - 'wikilog-form-preview' => 'Previsão:',
354 - 'wikilog-form-comment' => 'Comentário:',
355 - 'wikilog-show-all' => 'Todas as postagens',
356 - 'wikilog-show-published' => 'Publicados',
357 - 'wikilog-show-drafts' => 'Rascunhos',
358 - 'wikilog-submit' => 'Submeter',
359 - 'wikilog-preview' => 'Previsão', # verb
360 - 'wikilog-edit-lc' => 'editar', # verb
361 - 'wikilog-reply-lc' => 'responder', # verb
362 - 'wikilog-delete-lc' => 'apagar', # verb
363 - 'wikilog-approve-lc' => 'aprovar', # verb
364 - 'wikilog-reject-lc' => 'rejeitar', # verb
365 - 'wikilog-page-lc' => 'página', # noun
366 - 'wikilog-history-lc' => 'histórico', # noun
367 -
368 - # Other
369 - 'wikilog-doc-import-comment' => "Documentação Wikilog importada",
370 -);
371 -
372178 /** German (Deutsch)
373179 * @author Erkan Yilmaz
374180 */
375181 $messages['de'] = array(
376 - # Extension information
377 - 'wikilog-desc' => 'Fügt Blog-Funktionen hinzu, um einen Wiki-Blog Hybrid zu erzeugen.',
378 - 'wikilog-auto' => 'Wikilog Auto', # reserved username
379 - 'right-wl-postcomment' => 'Poste Kommentare zu Wikilog-Beiträgen',
380 - 'right-wl-moderation' => 'Moderation von Kommentaren zu wikilog-Beiträgen',
381 -
382 - # Special:Wikilog
 182+ 'wikilog-desc' => 'Fügt Blog-Funktionen hinzu, um einen Wiki-Blog Hybrid zu erzeugen.',
 183+ 'wikilog-auto' => 'Wikilog Auto', # reserved username
 184+ 'right-wl-postcomment' => 'Poste Kommentare zu Wikilog-Beiträgen',
 185+ 'right-wl-moderation' => 'Moderation von Kommentaren zu wikilog-Beiträgen',
383186 'wikilog' => 'Wikilogs', # Page title
384 - 'wikilog-specialwikilog' => 'Wikilog', # Special page name
385 -
386 - # Logs
387 - ##TRANSLATE## 'wikilog-log-pagename' => 'Wikilog actions log',
388 - ##TRANSLATE## 'wikilog-log-pagetext' => 'Below is a list of wikilog actions.',
389 - ##TRANSLATE## 'wikilog-log-cmt-approve' => 'approved comment [[$1]]',
390 - ##TRANSLATE## 'wikilog-log-cmt-reject' => 'rejected comment [[$1]]',
391 - ##TRANSLATE## 'wikilog-log-cmt-rejdel' => 'Rejected wikilog comment from [[Special:Contributions/$1|$1]]',
392 -
393 - # Wikilog tab
394 - 'wikilog-tab' => 'Wikilog',
395 - 'wikilog-tab-title' => 'Wikilog Aktionen',
396 - 'wikilog-information' => 'Wikilog Information',
397 - 'wikilog-post-count-published' =>
 187+ 'wikilog-specialwikilog' => 'Wikilog', # Special page name
 188+ 'wikilog-tab' => 'Wikilog',
 189+ 'wikilog-tab-title' => 'Wikilog Aktionen',
 190+ 'wikilog-information' => 'Wikilog Information',
 191+ 'wikilog-post-count-published' =>
398192 '$1 {{PLURAL:$1|Beitrag|Beiträge}} wurden in diesem Wikilog veröffentlicht,',
399 - 'wikilog-post-count-drafts' =>
 193+ 'wikilog-post-count-drafts' =>
400194 'plus $1 {{PLURAL:$1|Beitrag|Beiträge}}, die unveröffentlicht (Entwurf) sind,',
401 - 'wikilog-post-count-all' =>
 195+ 'wikilog-post-count-all' =>
402196 'insgesamt gibt es $1 {{PLURAL:$1|Beitrag|Beiträge}}.',
403 - 'wikilog-new-item' => 'Erstelle einen neuen Wikilog-Beitrag',
404 - 'wikilog-new-item-go' => 'Erstellen',
405 - 'wikilog-item-name' => 'Beitrag-Name:',
406 -
407 - # Generic strings
408 - 'wikilog-published' => 'Veröffentlicht',
409 - 'wikilog-updated' => 'Aktualisiert',
410 - 'wikilog-draft' => 'Entwurf',
411 - 'wikilog-authors' => 'Autoren',
412 - 'wikilog-wikilog' => 'Wikilog',
413 - 'wikilog-title' => 'Titel',
414 - 'wikilog-actions' => 'Aktionen',
415 - 'wikilog-comments' => 'Kommentare',
416 - ##TRANSLATE## 'wikilog-replies' => 'Replies',
417 -
418 - 'wikilog-view-archives' => 'Archive',
419 - 'wikilog-view-summary' => 'Zusammenfassung',
420 - 'wikilog-draft-title-mark' => '(Entwurf)',
421 - 'wikilog-anonymous-mark' => '(anonym)',
422 -
423 - # Pager strings
424 - 'wikilog-pager-newer-n' => '← neuere $1', # $1 = number of items
425 - 'wikilog-pager-older-n' => 'ältere $1 →', # $1 = number of items
426 - 'wikilog-pager-newest' => '←← neuester',
427 - 'wikilog-pager-oldest' => 'ältester →→',
428 - 'wikilog-pager-prev' => '← vorheriger',
429 - 'wikilog-pager-next' => 'nächster →',
430 - 'wikilog-pager-first' => '←← erster',
431 - 'wikilog-pager-last' => 'letzter →→',
432 - 'wikilog-pager-empty' =>
433 - '<div class="wl-empty">(keine Beiträge)</div>',
434 -
435 - # Comments page link text
436 - 'wikilog-no-comments' => 'keine Kommentare',
437 - 'wikilog-has-comments' => '{{PLURAL:$1|ein Kommentar|$1 Kommentare}}',
438 -
439 - # Wikilog item header and footer
440 - 'wikilog-item-brief-header' => ': <i><small>von $5, aus [[$1|$2]], $6, $7.</small></i>',
441 - 'wikilog-item-brief-footer' => '',
442 - 'wikilog-item-more' => '[[$3|→ weiterlesen...]]',
443 - 'wikilog-item-sub' => '',
444 - 'wikilog-item-header' => '',
445 - 'wikilog-item-footer' => ': <i>&mdash; $5 &#8226; $6 &#8226; $7</i>',
446 -
447 - 'wikilog-author-signature' => '[[{{ns:User}}:$1|$1]] ([[{{ns:User_talk}}:$1|Diskussion]])',
448 -
449 - # Comments
450 - 'wikilog-comment-by-user' => 'Kommentar von <span class="wl-comment-author">$1</span> ($2)',
451 - 'wikilog-comment-by-anon' => 'Kommentar von <span class="wl-comment-author">$3</span> (anonym)',
452 - 'wikilog-comment-pending' => 'Dieser Kommentar muss noch zugelassen werden.',
453 - 'wikilog-comment-deleted' => 'Dieser Kommentar wurde gelöscht.',
454 - ##TRANSLATE## 'wikilog-comment-edited' => 'This comment was last edited on $1 ($2).', # $1 = date and time, $2 = history link
455 - 'wikilog-comment-autosumm' => 'Neuer Kommentar von $1: $2',
456 - 'wikilog-reply-to-comment' => 'Poste eine Antwort auf diesen Kommentar',
457 - ##TRANSLATE## 'wikilog-comment-page' => 'Go to this comment\'s page',
458 - ##TRANSLATE## 'wikilog-comment-edit' => 'Edit this comment',
459 - ##TRANSLATE## 'wikilog-comment-delete' => 'Delete this comment',
460 - ##TRANSLATE## 'wikilog-comment-history' => 'View comment history',
461 - ##TRANSLATE## 'wikilog-comment-approve' => 'Approve this comment (immediate action)',
462 - ##TRANSLATE## 'wikilog-comment-reject' => 'Reject this comment (immediate action)',
463 - 'wikilog-newtalk-text' => '<!-- leere Seite erzeugt durch Wikilog -->',
464 - 'wikilog-newtalk-summary' => 'automatisch erzeugt durch Wikilog',
465 -
466 - # Atom and RSS feeds
467 - 'wikilog-feed-title' => '{{SITENAME}} - $1 [$2]', # $1 = title, $2 = content language
468 - 'wikilog-feed-description' => 'Lese die neuesten Beiträge in diesem Feed.',
469 -
470 - # Item and comments page titles
471 - 'wikilog-title-item-full' => '$1 - $2', #1 = article title, $2 wikilog title
472 - ##TRANSLATE## 'wikilog-title-comments' => 'Comments - $1', #1 = article title
473 -
474 - # Warning and error messages
475 - 'wikilog-error-msg' => 'Wikilog: $1',
476 - 'wikilog-error-title' => 'Wikilog Fehler',
477 - 'wikilog-invalid-param' => 'Ungültiger Parameter: $1.',
478 - 'wikilog-invalid-author' => 'Ungültiger Autor: $1.',
479 - 'wikilog-invalid-date' => 'Ungültiges Datum: $1.',
480 - 'wikilog-invalid-tag' => 'Ungültiges Tag: $1.',
481 - 'wikilog-invalid-file' => 'Ungültige Datei: $1.',
482 - 'wikilog-file-not-found' => 'Nicht vorhandene Datei: $1.',
483 - 'wikilog-not-an-image' => 'Datei ist kein Bild: $1.',
484 - 'wikilog-out-of-context' =>
 197+ 'wikilog-new-item' => 'Erstelle einen neuen Wikilog-Beitrag',
 198+ 'wikilog-new-item-go' => 'Erstellen',
 199+ 'wikilog-item-name' => 'Beitrag-Name:',
 200+ 'wikilog-published' => 'Veröffentlicht',
 201+ 'wikilog-updated' => 'Aktualisiert',
 202+ 'wikilog-draft' => 'Entwurf',
 203+ 'wikilog-authors' => 'Autoren',
 204+ 'wikilog-wikilog' => 'Wikilog',
 205+ 'wikilog-title' => 'Titel',
 206+ 'wikilog-actions' => 'Aktionen',
 207+ 'wikilog-comments' => 'Kommentare',
 208+ 'wikilog-view-archives' => 'Archive',
 209+ 'wikilog-view-summary' => 'Zusammenfassung',
 210+ 'wikilog-draft-title-mark' => '(Entwurf)',
 211+ 'wikilog-anonymous-mark' => '(anonym)',
 212+ 'wikilog-pager-newer-n' => '← neuere $1', # $1 = number of items
 213+ 'wikilog-pager-older-n' => 'ältere $1 →', # $1 = number of items
 214+ 'wikilog-pager-newest' => '←← neuester',
 215+ 'wikilog-pager-oldest' => 'ältester →→',
 216+ 'wikilog-pager-prev' => '← vorheriger',
 217+ 'wikilog-pager-next' => 'nächster →',
 218+ 'wikilog-pager-first' => '←← erster',
 219+ 'wikilog-pager-last' => 'letzter →→',
 220+ 'wikilog-pager-empty' => '(keine Beiträge)',
 221+ 'wikilog-no-comments' => 'keine Kommentare',
 222+ 'wikilog-has-comments' => '{{PLURAL:$1|ein Kommentar|$1 Kommentare}}',
 223+ 'wikilog-item-brief-header' => ': <i><small>von $5, aus [[$1|$2]], $6, $7.</small></i>',
 224+ 'wikilog-item-brief-footer' => '',
 225+ 'wikilog-item-more' => '[[$3|→ weiterlesen...]]',
 226+ 'wikilog-item-sub' => '',
 227+ 'wikilog-item-header' => '',
 228+ 'wikilog-item-footer' => ': <i>&mdash; $5 &#8226; $6 &#8226; $7</i>',
 229+ 'wikilog-author-signature' => '[[{{ns:User}}:$1|$1]] ([[{{ns:User_talk}}:$1|Diskussion]])',
 230+ 'wikilog-comment-by-user' => 'Kommentar von $1 ($2)',
 231+ 'wikilog-comment-by-anon' => 'Kommentar von $3 (anonym)',
 232+ 'wikilog-comment-pending' => 'Dieser Kommentar muss noch zugelassen werden.',
 233+ 'wikilog-comment-deleted' => 'Dieser Kommentar wurde gelöscht.',
 234+ 'wikilog-comment-autosumm' => 'Neuer Kommentar von $1: $2',
 235+ 'wikilog-reply-to-comment' => 'Poste eine Antwort auf diesen Kommentar',
 236+ 'wikilog-newtalk-text' => '<!-- leere Seite erzeugt durch Wikilog -->',
 237+ 'wikilog-newtalk-summary' => 'automatisch erzeugt durch Wikilog',
 238+ 'wikilog-feed-title' => '{{SITENAME}} - $1 [$2]', # $1 = title, $2 = content language
 239+ 'wikilog-feed-description' => 'Lese die neuesten Beiträge in diesem Feed.',
 240+ 'wikilog-title-item-full' => '$1 - $2', # 1 = article title, $2 wikilog title
 241+ 'wikilog-error-msg' => 'Wikilog: $1',
 242+ 'wikilog-error-title' => 'Wikilog Fehler',
 243+ 'wikilog-invalid-param' => 'Ungültiger Parameter: $1.',
 244+ 'wikilog-invalid-author' => 'Ungültiger Autor: $1.',
 245+ 'wikilog-invalid-date' => 'Ungültiges Datum: $1.',
 246+ 'wikilog-invalid-tag' => 'Ungültiges Tag: $1.',
 247+ 'wikilog-invalid-file' => 'Ungültige Datei: $1.',
 248+ 'wikilog-file-not-found' => 'Nicht vorhandene Datei: $1.',
 249+ 'wikilog-not-an-image' => 'Datei ist kein Bild: $1.',
 250+ 'wikilog-out-of-context' =>
485251 'Warnung: Wikilog Tags werden nicht im Zusammenhang (out of context) benutzt. ' .
486252 'Sie sollten nur in Beiträgen im Wikilog Namensraum benutzt werden.',
487 - 'wikilog-too-many-authors' =>
 253+ 'wikilog-too-many-authors' =>
488254 'Warnung: Zu viele Autoren werden in diesem Wikilog-Beitrag aufgeführt.',
489 - 'wikilog-too-many-tags' =>
 255+ 'wikilog-too-many-tags' =>
490256 'Warnung: Zu viele Tags werden in diesem Wikilog-Beitrag erfasst.',
491 - 'wikilog-comment-is-empty' =>
 257+ 'wikilog-comment-is-empty' =>
492258 'Der gesendete Kommentar ist leer.',
493 - 'wikilog-comment-too-long' =>
 259+ 'wikilog-comment-too-long' =>
494260 'Der gesendete Kommentar ist zu lang.',
495261 'wikilog-comment-invalid-name' =>
496262 'Der angegebene Name ist ungültig.',
497 - ##TRANSLATE## 'wikilog-no-such-article' =>
498 - ##TRANSLATE## 'The requested wikilog article does not exist.',
499 -
500 - 'wikilog-reading-draft' =>
501 - '<div class="mw-warning">'.
502 - '<p>Dieser Wikilog-Beitrag ist ein Entwurf, er wurde noch nicht veröffentlicht.</p>'.
503 - '</div>',
504 -
 263+ 'wikilog-reading-draft' => 'Dieser Wikilog-Beitrag ist ein Entwurf, er wurde noch nicht veröffentlicht.',
505264 'wikilog-posting-anonymously' => # $1 = "Login" link
506 - 'Sie sind zur Zeit nicht eingeloggt; ihr Kommentar wird anonym '.
507 - 'versendet, identifiziert durch ihre Internetverbindungsadresse. '.
508 - 'Sie sollten oben entweder ein Pseudonym angeben, um ihren '.
 265+ 'Sie sind zur Zeit nicht eingeloggt; ihr Kommentar wird anonym ' .
 266+ 'versendet, identifiziert durch ihre Internetverbindungsadresse. ' .
 267+ 'Sie sollten oben entweder ein Pseudonym angeben, um ihren ' .
509268 'Kommentar zu identifizieren oder $1, damit er passend zugeordnet wird.',
510 - ##TRANSLATE## 'wikilog-anonymous-moderated' =>
511 - ##TRANSLATE## 'After you submit your comment, it will not be immediately '.
512 - ##TRANSLATE## 'visible on this page. The comment will only appear after it '.
513 - ##TRANSLATE## 'it is reviewed by a moderator.',
 269+ 'wikilog-post-comment' => 'Poste einen neuen Kommentar',
 270+ 'wikilog-post-reply' => 'Poste eine neue Antwort',
 271+ 'wikilog-form-legend' => 'Suche nach Wikilog-Beiträgen',
 272+ 'wikilog-form-wikilog' => 'Wikilog:',
 273+ 'wikilog-form-category' => 'Kategorie:',
 274+ 'wikilog-form-name' => 'Name:',
 275+ 'wikilog-form-author' => 'Autor:',
 276+ 'wikilog-form-tag' => 'Tag:',
 277+ 'wikilog-form-date' => 'Datum:',
 278+ 'wikilog-form-status' => 'Status:',
 279+ 'wikilog-form-preview' => 'Vorschau:',
 280+ 'wikilog-form-comment' => 'Kommentar:',
 281+ 'wikilog-show-all' => 'Alle Beiträge',
 282+ 'wikilog-show-published' => 'Veröffentlicht',
 283+ 'wikilog-show-drafts' => 'Entwürfe',
 284+ 'wikilog-submit' => 'Abschicken',
 285+ 'wikilog-preview' => 'Vorher betrachten', # verb
 286+ 'wikilog-edit-lc' => 'bearbeiten', # verb
 287+ 'wikilog-reply-lc' => 'antworten', # verb
 288+);
514289
515 - # Forms
516 - 'wikilog-post-comment' => 'Poste einen neuen Kommentar',
517 - 'wikilog-post-reply' => 'Poste eine neue Antwort',
518 - 'wikilog-form-legend' => 'Suche nach Wikilog-Beiträgen',
519 - 'wikilog-form-wikilog' => 'Wikilog:',
520 - 'wikilog-form-category' => 'Kategorie:',
521 - 'wikilog-form-name' => 'Name:',
522 - 'wikilog-form-author' => 'Autor:',
523 - 'wikilog-form-tag' => 'Tag:',
524 - 'wikilog-form-date' => 'Datum:',
525 - 'wikilog-form-status' => 'Status:',
526 - 'wikilog-form-preview' => 'Vorschau:',
527 - 'wikilog-form-comment' => 'Kommentar:',
528 - 'wikilog-show-all' => 'Alle Beiträge',
529 - 'wikilog-show-published' => 'Veröffentlicht',
530 - 'wikilog-show-drafts' => 'Entwürfe',
531 - 'wikilog-submit' => 'Abschicken',
532 - 'wikilog-preview' => 'Vorher betrachten', # verb
533 - 'wikilog-edit-lc' => 'bearbeiten', # verb
534 - 'wikilog-reply-lc' => 'antworten', # verb
535 - ##TRANSLATE## 'wikilog-delete-lc' => 'delete', # verb
536 - ##TRANSLATE## 'wikilog-approve-lc' => 'approve', # verb
537 - ##TRANSLATE## 'wikilog-reject-lc' => 'reject', # verb
538 - ##TRANSLATE## 'wikilog-page-lc' => 'page', # noun
539 - ##TRANSLATE## 'wikilog-history-lc' => 'history',
540 -
541 - # Other
542 - ##TRANSLATE## 'wikilog-doc-import-comment' => "Imported Wikilog documentation",
543 -
 290+/** Portuguese (Português)
 291+ * @author Juliano F. Ravasi
 292+ */
 293+$messages['pt'] = array(
 294+ 'wikilog-desc' => 'Adiciona recursos de blog, criando um híbrido wiki-blog',
 295+ 'wikilog-auto' => 'Wikilog Auto', # reserved username
 296+ 'right-wl-postcomment' => 'Postar comentários em artigos wikilog',
 297+ 'right-wl-moderation' => 'Moderação de comentários de artigos wikilog',
 298+ 'wikilog' => 'Wikilogs',
 299+ 'wikilog-specialwikilog' => 'Wikilog',
 300+ 'wikilog-log-pagename' => 'Registro de ações wikilog',
 301+ 'wikilog-log-pagetext' => 'Abaixo está uma lista das ações wikilog.',
 302+ 'wikilog-log-cmt-approve' => 'aprovou o comentário [[$1]]',
 303+ 'wikilog-log-cmt-reject' => 'rejeitou o comentário [[$1]]',
 304+ 'wikilog-log-cmt-rejdel' => 'Comentário wikilog de [[Special:Contributions/$1|$1]] rejeitado',
 305+ 'wikilog-tab' => 'Wikilog',
 306+ 'wikilog-tab-title' => 'Ações wikilog',
 307+ 'wikilog-information' => 'Informações do wikilog',
 308+ 'wikilog-post-count-published' => 'Há $1 {{PLURAL:$1|artigo publicado|artigos publicados}} neste wikilog,',
 309+ 'wikilog-post-count-drafts' => 'mais $1 {{PLURAL:$1|artigo não-publicado (rascunho)|artigos não-publicados (rascunhos)}},',
 310+ 'wikilog-post-count-all' => 'para um total de $1 {{PLURAL:$1|artigo|artigos}}.',
 311+ 'wikilog-new-item' => 'Criar novo artigo wikilog',
 312+ 'wikilog-new-item-go' => 'Criar',
 313+ 'wikilog-item-name' => 'Nome do artigo:',
 314+ 'wikilog-published' => 'Publicado',
 315+ 'wikilog-updated' => 'Atualizado',
 316+ 'wikilog-draft' => 'Rascunho',
 317+ 'wikilog-authors' => 'Autores',
 318+ 'wikilog-wikilog' => 'Wikilog',
 319+ 'wikilog-title' => 'Título',
 320+ 'wikilog-actions' => 'Ações',
 321+ 'wikilog-comments' => 'Comentários',
 322+ 'wikilog-replies' => 'Respostas',
 323+ 'wikilog-view-archives' => 'Arquivos',
 324+ 'wikilog-view-summary' => 'Resumo',
 325+ 'wikilog-draft-title-mark' => '(rascunho)',
 326+ 'wikilog-anonymous-mark' => '(anônimo)',
 327+ 'wikilog-pager-newer-n' => '← $1 próximos', # $1 = number of items
 328+ 'wikilog-pager-older-n' => '$1 anteriores →', # $1 = number of items
 329+ 'wikilog-pager-newest' => '←← mais recentes',
 330+ 'wikilog-pager-oldest' => 'mais antigos →→',
 331+ 'wikilog-pager-prev' => '← anterior',
 332+ 'wikilog-pager-next' => 'próxima →',
 333+ 'wikilog-pager-first' => '←← primeira',
 334+ 'wikilog-pager-last' => 'última →→',
 335+ 'wikilog-pager-empty' => '(não há itens)',
 336+ 'wikilog-no-comments' => 'não há comentários',
 337+ 'wikilog-has-comments' => '{{PLURAL:$1|um comentário|$1 comentários}}',
 338+ 'wikilog-item-brief-header' => ': <i><small>por $5, em [[$1|$2]], $6, $7.</small></i>',
 339+ 'wikilog-item-brief-footer' => '',
 340+ 'wikilog-item-more' => '[[$3|→ continuar lendo...]]',
 341+ 'wikilog-item-sub' => '',
 342+ 'wikilog-item-header' => '',
 343+ 'wikilog-item-footer' => ': <i>&mdash; $5 &#8226; $6 &#8226; $7</i>',
 344+ 'wikilog-author-signature' => '[[{{ns:User}}:$1|$1]] ([[{{ns:User_talk}}:$1|discussão]])',
 345+ 'wikilog-comment-by-user' => 'Comentário por $1 ($2)',
 346+ 'wikilog-comment-by-anon' => 'Comentário por $3 (anônimo)',
 347+ 'wikilog-comment-pending' => 'Este comentário está aguardando aprovação.',
 348+ 'wikilog-comment-deleted' => 'Este comentário foi apagado.',
 349+ 'wikilog-comment-edited' => 'Este comentário foi editado pela última vez em $1 ($2).', # $1 = date and time, $2 = history link
 350+ 'wikilog-comment-autosumm' => 'Novo comentário por $1: $2',
 351+ 'wikilog-reply-to-comment' => 'Postar uma resposta a esse comentário',
 352+ 'wikilog-comment-page' => 'Ir para a página deste comentário',
 353+ 'wikilog-comment-edit' => 'Editar este comentário',
 354+ 'wikilog-comment-delete' => 'Apagar este comentário',
 355+ 'wikilog-comment-history' => 'Ver histórico do comentário',
 356+ 'wikilog-comment-approve' => 'Aprovar este comentário (ação imediata)',
 357+ 'wikilog-comment-reject' => 'Rejeitar este comentário (ação imediata)',
 358+ 'wikilog-newtalk-text' => '<!-- página em branco criada pelo Wikilog -->',
 359+ 'wikilog-newtalk-summary' => 'criado automaticamente pelo wikilog',
 360+ 'wikilog-feed-title' => '{{SITENAME}} - $1 [$2]', # $1 = title, $2 = content language
 361+ 'wikilog-feed-description' => 'Leia as postagens mais recentes neste feed.',
 362+ 'wikilog-title-item-full' => '$1 - $2', # 1 = article title, $2 wikilog title
 363+ 'wikilog-title-comments' => 'Comentários - $1', # 1 = article title
 364+ 'wikilog-error-msg' => 'Wikilog: $1',
 365+ 'wikilog-invalid-param' => 'Parâmetro inválido: $1.',
 366+ 'wikilog-invalid-author' => 'Autor inválido: $1.',
 367+ 'wikilog-invalid-date' => 'Data inválida: $1.',
 368+ 'wikilog-invalid-tag' => 'Rótulo inválido: $1.',
 369+ 'wikilog-invalid-file' => 'Arquivo inválido: $1.',
 370+ 'wikilog-file-not-found' => 'Arquivo não-existente: $1.',
 371+ 'wikilog-not-an-image' => 'Arquivo não é uma imagem: $1.',
 372+ 'wikilog-out-of-context' => 'Aviso: Rótulos wikilog estão sendo utilizados fora de contexto. ' .
 373+ 'Eles devem ser usados apenas em artigos no espaço de nomes do Wikilog.',
 374+ 'wikilog-too-many-authors' => 'Aviso: Autores demais listados nesta postagem wikilog.',
 375+ 'wikilog-too-many-tags' => 'Aviso: Rótulos demais listados nesta postagem wikilog.',
 376+ 'wikilog-comment-is-empty' => 'O comentário postado está em branco.',
 377+ 'wikilog-comment-too-long' => 'O comentário postado é muito longo.',
 378+ 'wikilog-comment-invalid-name' => 'O nome fornecido é inválido.',
 379+ 'wikilog-no-such-article' => 'O artigo wikilog solicitado não existe.',
 380+ 'wikilog-reading-draft' => 'Este artigo wikilog é um rascunho, ainda não foi publicado.',
 381+ 'wikilog-posting-anonymously' => # $1 = "login" link
 382+ 'Você não está autenticado neste momento; seu comentário será ' .
 383+ 'postado anonimamente, identificado pelo endereço de sua conexão ' .
 384+ 'Internet. Você deve fornecer um pseudônimo acima para ' .
 385+ 'identificar seu comentário ou $1 para que ele seja creditado ' .
 386+ 'apropriadamente.',
 387+ 'wikilog-posting-anonymously' =>
 388+ "Seu comentário será postado anonimamente. Você pode " .
 389+ "$1 para que seu comentário seja identificado.",
 390+ 'wikilog-anonymous-moderated' =>
 391+ 'Após submeter seu comentário, este não será imediatamente ' .
 392+ 'visível nesta página. O comentário somente aparecerá após ser ' .
 393+ 'revisado por um moderador.',
 394+ 'wikilog-post-comment' => 'Postar um novo comentário',
 395+ 'wikilog-post-reply' => 'Postar uma nova resposta',
 396+ 'wikilog-form-legend' => 'Procurar por postagens wikilog',
 397+ 'wikilog-form-wikilog' => 'Wikilog:',
 398+ 'wikilog-form-category' => 'Categoria:',
 399+ 'wikilog-form-name' => 'Nome:',
 400+ 'wikilog-form-author' => 'Autor:',
 401+ 'wikilog-form-tag' => 'Rótulo:',
 402+ 'wikilog-form-date' => 'Data:',
 403+ 'wikilog-form-status' => 'Estado:',
 404+ 'wikilog-form-preview' => 'Previsão:',
 405+ 'wikilog-form-comment' => 'Comentário:',
 406+ 'wikilog-show-all' => 'Todas as postagens',
 407+ 'wikilog-show-published' => 'Publicados',
 408+ 'wikilog-show-drafts' => 'Rascunhos',
 409+ 'wikilog-submit' => 'Submeter',
 410+ 'wikilog-preview' => 'Previsão', # verb
 411+ 'wikilog-edit-lc' => 'editar', # verb
 412+ 'wikilog-reply-lc' => 'responder', # verb
 413+ 'wikilog-delete-lc' => 'apagar', # verb
 414+ 'wikilog-approve-lc' => 'aprovar', # verb
 415+ 'wikilog-reject-lc' => 'rejeitar', # verb
 416+ 'wikilog-page-lc' => 'página', # noun
 417+ 'wikilog-history-lc' => 'histórico', # noun
 418+ 'wikilog-doc-import-comment' => "Documentação Wikilog importada",
544419 );
Index: trunk/extensions/Wikilog/WikilogItem.php
@@ -28,28 +28,26 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /**
3433 * Wikilog article database entry.
3534 */
3635 class WikilogItem
3736 {
38 -
3937 /**
4038 * General data about the article.
4139 */
42 - public $mID = NULL; ///< Article ID.
43 - public $mName = NULL; ///< Article title text (as in DB).
44 - public $mTitle = NULL; ///< Article Title object.
45 - public $mParent = NULL; ///< Parent wikilog article ID.
46 - public $mParentName = NULL; ///< Parent wikilog title text.
47 - public $mParentTitle = NULL; ///< Parent wikilog Title object.
48 - public $mPublish = NULL; ///< Article is published.
49 - public $mPubDate = NULL; ///< Date the article was published.
50 - public $mUpdated = NULL; ///< Date the article was last updated.
51 - public $mAuthors = array(); ///< Array of authors.
52 - public $mTags = array(); ///< Array of tags.
53 - public $mNumComments = NULL; ///< Cached number of comments.
 40+ public $mID = NULL; // /< Article ID.
 41+ public $mName = NULL; // /< Article title text (as in DB).
 42+ public $mTitle = NULL; // /< Article Title object.
 43+ public $mParent = NULL; // /< Parent wikilog article ID.
 44+ public $mParentName = NULL; // /< Parent wikilog title text.
 45+ public $mParentTitle = NULL; // /< Parent wikilog Title object.
 46+ public $mPublish = NULL; // /< Article is published.
 47+ public $mPubDate = NULL; // /< Date the article was published.
 48+ public $mUpdated = NULL; // /< Date the article was last updated.
 49+ public $mAuthors = array(); // /< Array of authors.
 50+ public $mTags = array(); // /< Array of tags.
 51+ public $mNumComments = NULL; // /< Cached number of comments.
5452
5553 /**
5654 * Constructor.
@@ -173,7 +171,7 @@
174172 }
175173
176174 $comments = array();
177 - foreach( $result as $row ) {
 175+ foreach ( $result as $row ) {
178176 $comment = WikilogComment::newFromRow( $this, $row );
179177 if ( $row->page_latest ) {
180178 $rev = Revision::newFromId( $row->page_latest );
@@ -278,8 +276,8 @@
279277 extract( $dbr->tableNames( 'wikilog_posts', 'page' ) );
280278 return array(
281279 'tables' =>
282 - "{$wikilog_posts} ".
283 - "LEFT JOIN {$page} AS w ON (w.page_id = wlp_parent) ".
 280+ "{$wikilog_posts} " .
 281+ "LEFT JOIN {$page} AS w ON (w.page_id = wlp_parent) " .
284282 "LEFT JOIN {$page} AS p ON (p.page_id = wlp_page) ",
285283 'fields' => array(
286284 'wlp_page',
@@ -298,5 +296,4 @@
299297 )
300298 );
301299 }
302 -
303300 }
Index: trunk/extensions/Wikilog/WikilogPager.php
@@ -28,7 +28,6 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /**
3433 * Common wikilog pager interface.
3534 */
@@ -38,7 +37,6 @@
3938 function getNavigationBar( $class = 'wl-navbar-any' );
4039 }
4140
42 -
4341 /**
4442 * Summary pager.
4543 *
@@ -55,13 +53,12 @@
5654 extends ReverseChronologicalPager
5755 implements WikilogPager
5856 {
59 -
6057 # Override default limits.
6158 public $mLimitsShown = array( 5, 10, 20, 50 );
6259
6360 # Local variables.
64 - protected $mQuery = NULL; ///< Wikilog item query data
65 - protected $mIncluding = false; ///< If pager is being included
 61+ protected $mQuery = NULL; // /< Wikilog item query data
 62+ protected $mIncluding = false; // /< If pager is being included
6663
6764 /**
6865 * Constructor.
@@ -126,7 +123,7 @@
127124 }
128125
129126 function getEmptyBody() {
130 - return wfMsgExt( 'wikilog-pager-empty', array( 'parsemag' ) );
 127+ return '<div class="wl-empty">' . wfMsgExt( 'wikilog-pager-empty', array( 'parsemag' ) ) . "</div>";
131128 }
132129
133130 function getNavigationBar( $class = 'wl-navbar-any' ) {
@@ -185,7 +182,7 @@
186183
187184 # Title heading, with link.
188185 $heading = $skin->makeKnownLinkObj( $item->mTitle, $item->mName .
189 - ( $item->getIsPublished() ? '' : ' '. wfMsgForContent( 'wikilog-draft-title-mark' ) ) );
 186+ ( $item->getIsPublished() ? '' : ' ' . wfMsgForContent( 'wikilog-draft-title-mark' ) ) );
190187 $result .= "<h2>{$heading}</h2>\n";
191188
192189 # Item header.
@@ -261,14 +258,12 @@
262259 */
263260 private function editLink( $title ) {
264261 $skin = $this->getSkin();
265 - $url = $skin->makeKnownLinkObj( $title, wfMsg('wikilog-edit-lc'), 'action=edit' );
 262+ $url = $skin->makeKnownLinkObj( $title, wfMsg( 'wikilog-edit-lc' ), 'action=edit' );
266263 $result = wfMsg( 'editsection-brackets', $url );
267264 return "<span class=\"editsection\">$result</span>";
268265 }
269 -
270266 }
271267
272 -
273268 /**
274269 * Template pager.
275270 *
@@ -292,7 +287,6 @@
293288 class WikilogTemplatePager
294289 extends WikilogSummaryPager
295290 {
296 -
297291 protected $mTemplate, $mTemplateTitle;
298292
299293 /**
@@ -369,10 +363,8 @@
370364
371365 return $this->parse( $text );
372366 }
373 -
374367 }
375368
376 -
377369 /**
378370 * Archives pager.
379371 *
@@ -384,10 +376,9 @@
385377 extends TablePager
386378 implements WikilogPager
387379 {
388 -
389380 # Local variables.
390 - protected $mQuery = NULL; ///< Wikilog item query data
391 - protected $mIncluding = false; ///< If pager is being included
 381+ protected $mQuery = NULL; // /< Wikilog item query data
 382+ protected $mIncluding = false; // /< If pager is being included
392383
393384 /**
394385 * Constructor.
@@ -539,7 +530,7 @@
540531 $fields = array();
541532
542533 $fields['wlp_pubdate'] = wfMsgHtml( 'wikilog-published' );
543 -// $fields['wlp_updated'] = wfMsgHtml( 'wikilog-updated' );
 534+ // $fields['wlp_updated'] = wfMsgHtml( 'wikilog-updated' );
544535 $fields['wlp_authors'] = wfMsgHtml( 'wikilog-authors' );
545536
546537 if ( !$this->mQuery->isSingleWikilog() )
@@ -590,9 +581,7 @@
591582 */
592583 private function editLink( $title ) {
593584 $skin = $this->getSkin();
594 - $url = $skin->makeKnownLinkObj( $title, wfMsg('wikilog-edit-lc'), 'action=edit' );
 585+ $url = $skin->makeKnownLinkObj( $title, wfMsg( 'wikilog-edit-lc' ), 'action=edit' );
595586 return wfMsg( 'wikilog-brackets', $url );
596587 }
597 -
598588 }
599 -
Index: trunk/extensions/Wikilog/WlFeed.i18n.php
@@ -7,21 +7,18 @@
88
99 $messages = array();
1010
11 -
1211 /** English
1312 * @author Juliano F. Ravasi
1413 */
1514 $messages['en'] = array(
1615 # Extension description
17 - 'wlfeed-desc' => 'Enhanced feed generation classes.',
 16+ 'wlfeed-desc' => 'Enhanced feed generation classes',
1817 );
1918
20 -
2119 /** Portuguese
2220 * @author Juliano F. Ravasi
2321 */
2422 $messages['pt'] = array(
2523 # Extension description
26 - 'wlfeed-desc' => 'Classes aprimoradas para geração de feeds.',
 24+ 'wlfeed-desc' => 'Classes aprimoradas para geração de feeds',
2725 );
28 -
Index: trunk/extensions/Wikilog/WikilogUtils.php
@@ -34,7 +34,6 @@
3535 */
3636 class WikilogUtils
3737 {
38 -
3938 /**
4039 * Retrieves an article parsed output either from parser cache or by
4140 * parsing it again. If parsing again, stores it back into parser cache.
@@ -130,20 +129,20 @@
131130 $fh_diff = array_diff_key( $wgParser->mFunctionHooks, $newparser->mFunctionHooks );
132131
133132 if ( !empty( $th_diff ) || !empty( $tt_diff ) || !empty( $fh_diff ) ) {
134 - wfDebug("*** Wikilog WARNING: Detected broken extensions installed. "
 133+ wfDebug( "*** Wikilog WARNING: Detected broken extensions installed. "
135134 . "A second instance of the parser is not properly initialized. "
136 - . "The following hooks are missing:\n");
 135+ . "The following hooks are missing:\n" );
137136 if ( !empty( $th_diff ) ) {
138137 $hooks = implode( ', ', array_keys( $th_diff ) );
139 - wfDebug("*** Tag hooks: $hooks.\n");
 138+ wfDebug( "*** Tag hooks: $hooks.\n" );
140139 }
141140 if ( !empty( $tt_diff ) ) {
142141 $hooks = implode( ', ', array_keys( $tt_diff ) );
143 - wfDebug("*** Transparent tag hooks: $hooks.\n");
 142+ wfDebug( "*** Transparent tag hooks: $hooks.\n" );
144143 }
145144 if ( !empty( $fh_diff ) ) {
146145 $hooks = implode( ', ', array_keys( $fh_diff ) );
147 - wfDebug("*** Function hooks: $hooks.\n");
 146+ wfDebug( "*** Function hooks: $hooks.\n" );
148147 }
149148 return false;
150149 } else {
@@ -282,7 +281,7 @@
283282 $rows = array();
284283 foreach ( $fields as $field ) {
285284 if ( is_array( $field ) ) {
286 - $row = Xml::tags( 'td', array( 'class' => 'mw-label' ), $field[0] ).
 285+ $row = Xml::tags( 'td', array( 'class' => 'mw-label' ), $field[0] ) .
287286 Xml::tags( 'td', array( 'class' => 'mw-input' ), $field[1] );
288287 } else {
289288 $row = Xml::tags( 'td', array( 'class' => 'mw-input',
@@ -294,5 +293,4 @@
295294 implode( "\n", $rows ) );
296295 return $form;
297296 }
298 -
299297 }
Index: trunk/extensions/Wikilog/WikilogComment.php
@@ -28,19 +28,17 @@
2929 if ( !defined( 'MEDIAWIKI' ) )
3030 die();
3131
32 -
3332 /**
3433 * Wikilog article comment database entry.
3534 */
3635 class WikilogComment
3736 {
38 -
3937 /**
4038 * Comment statuses.
4139 */
42 - const S_OK = 'OK'; ///< Comment is published.
43 - const S_PENDING = 'PENDING'; ///< Comment is pending moderation.
44 - const S_DELETED = 'DELETED'; ///< Comment was removed.
 40+ const S_OK = 'OK'; // /< Comment is published.
 41+ const S_PENDING = 'PENDING'; // /< Comment is pending moderation.
 42+ const S_DELETED = 'DELETED'; // /< Comment was removed.
4543
4644 /**
4745 * Mapping of comment statuses to readable messages. System messages are
@@ -60,19 +58,19 @@
6159 /**
6260 * General data about the comment.
6361 */
64 - public $mID = NULL; ///< Comment ID.
65 - public $mParent = NULL; ///< Parent comment ID.
66 - public $mThread = NULL; ///< Comment thread.
67 - public $mUserID = NULL; ///< Comment author user id.
68 - public $mUserText = NULL; ///< Comment author user name.
69 - public $mAnonName = NULL; ///< Comment anonymous author name.
70 - public $mStatus = NULL; ///< Comment status.
71 - public $mTimestamp = NULL; ///< Date the comment was published.
72 - public $mUpdated = NULL; ///< Date the comment was last updated.
73 - public $mCommentPage = NULL; ///< Comment page id.
74 - public $mCommentTitle = NULL; ///< Comment page title.
75 - public $mCommentRev = NULL; ///< Comment revision id.
76 - public $mText = NULL; ///< Comment text.
 62+ public $mID = NULL; // /< Comment ID.
 63+ public $mParent = NULL; // /< Parent comment ID.
 64+ public $mThread = NULL; // /< Comment thread.
 65+ public $mUserID = NULL; // /< Comment author user id.
 66+ public $mUserText = NULL; // /< Comment author user name.
 67+ public $mAnonName = NULL; // /< Comment anonymous author name.
 68+ public $mStatus = NULL; // /< Comment status.
 69+ public $mTimestamp = NULL; // /< Date the comment was published.
 70+ public $mUpdated = NULL; // /< Date the comment was last updated.
 71+ public $mCommentPage = NULL; // /< Comment page id.
 72+ public $mCommentTitle = NULL; // /< Comment page title.
 73+ public $mCommentRev = NULL; // /< Comment revision id.
 74+ public $mText = NULL; // /< Comment text.
7775
7876 /**
7977 * Whether the text was changed, and thus a database update is required.
@@ -258,7 +256,7 @@
259257 public function getAutoSummary() {
260258 global $wgContLang;
261259 $user = $this->mUserID ? $this->mUserText : $this->mAnonName;
262 - $summ = $wgContLang->truncate( str_replace("\n", ' ', $this->mText),
 260+ $summ = $wgContLang->truncate( str_replace( "\n", ' ', $this->mText ),
263261 max( 0, 200 - strlen( wfMsgForContent( 'wikilog-comment-autosumm' ) ) ),
264262 '...' );
265263 return wfMsgForContent( 'wikilog-comment-autosumm', $user, $summ );
@@ -483,7 +481,7 @@
484482 extract( $dbr->tableNames( 'wikilog_comments', 'page' ) );
485483 return array(
486484 'tables' =>
487 - "{$wikilog_comments} ".
 485+ "{$wikilog_comments} " .
488486 "LEFT JOIN {$page} ON (page_id = wlc_comment_page)",
489487 'fields' => array(
490488 'wlc_id',
@@ -503,5 +501,4 @@
504502 )
505503 );
506504 }
507 -
508505 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r58345Fix doxygen breakage per CR on r58311siebrand22:28, 29 October 2009
r58580* remove comma from 'wikilog-post-count-published' which I accidentally left ...siebrand13:14, 5 November 2009

Comments

#Comment by Juliano (talk | contribs)   22:19, 29 October 2009

Siebrand, thanks for the reformatting!

There is only one issue. Many documentation comments, originally "///< ", were changed to "// /< ". This breaks Doxygen parsing:

http://www.stack.nl/~dimitri/doxygen/docblocks.html#memberdoc

#Comment by Siebrand (talk | contribs)   22:26, 29 October 2009

I missed that. I've used stylize.php (trunk/tools/coding-tools/). Tim Starling has written it. If you can patch it, please do, as I have observed it doing the same for "###" -> "# ##", which I have corrected in at least one instance. I didn't know that "///" had a meaning in doxygen. I'll see if I can fix that.

Status & tagging log