r102989 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102988‎ | r102989 | r102990 >
Date:15:35, 14 November 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Update documentation and formatting
Modified paths:
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -239,7 +239,7 @@
240240 # == Configuration variables ==
241241
242242 # === Basic configuration ===
243 -
 243+# <source lang=php>
244244 /**
245245 * Language code for message documentation. Suggested values are qqq or info.
246246 * If set to false (default), message documentation feature is disabled.
@@ -364,9 +364,9 @@
365365 */
366366 $wgTranslatePermissionUrl = 'Project:Translator';
367367
368 -
 368+# </source>
369369 # === Page translation feature ===
370 -
 370+# <source lang=php>
371371 /**
372372 * Enable page translation feature.
373373 *
@@ -384,7 +384,9 @@
385385 */
386386 $wgPageTranslationNamespace = 1198;
387387
 388+# </source>
388389 # === Message group configuration ===
 390+# <source lang=php>
389391
390392 /**
391393 * Two-dimensional array of languages that cannot be translated.
@@ -515,15 +517,18 @@
516518 $wgTranslateGroupFiles = array();
517519
518520 /**
519 - * List of possible message group review workflow states.
 521+ * List of possible message group review workflow states. Users who have
 522+ * translate-groupreview right can set this in Special:Translate.
 523+ * The state is visible in Special:Translate, Special:MessageGroupStats and
 524+ * Special:LanguageStats.
520525 * Up two 32 characters each.
521526 * Example: array( 'new', 'needs_proofreading', 'ready', 'published', );
522527 */
523528 $wgTranslateWorkflowStates = false;
524529
525 -
 530+# </source>
526531 # === System setup related configuration ===
527 -
 532+# <source lang=php>
528533 /**
529534 * Location of your extensions, if not the default. Only matters
530535 * if you are localising your own extensions with this extension.
@@ -541,10 +546,11 @@
542547 * FileCachedMessageIndex needs $wgCacheDirectory to be functional.
543548 */
544549 $wgTranslateMessageIndex = array( 'CachedMessageIndex' );
545 -# $wgTranslateMessageIndex = array( 'FileCachedMessageIndex' );
 550+// $wgTranslateMessageIndex = array( 'FileCachedMessageIndex' );
546551
 552+# </source>
547553 # ==== PHPlot ====
548 -
 554+# <source lang=php>
549555 /**
550556 * For Special:TranslationStats PHPlot is needed to produce graphs.
551557 * Set this the location of phplot.php.
@@ -561,8 +567,9 @@
562568 */
563569 $wgTranslatePHPlotFont = '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf';
564570
 571+# </source>
565572 # ==== YAML driver ====
566 -
 573+# <source lang=php>
567574 /**
568575 * Currently supported YAML drivers are spyc and syck and sycl-pecl.
569576 *
@@ -585,6 +592,8 @@
586593 */
587594 $wgTranslateYamlLibrary = 'spyc';
588595
 596+# </source>
 597+
589598 /** @cond cli_support */
590599 if ( !defined( 'TRANSLATE_CLI' ) ) {
591600 function STDOUT() { }

Status & tagging log