Raimond Spekking has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/85966


Change subject: Consistency tweaks in preparation for adding extension to 
translatewiki.net
......................................................................

Consistency tweaks in preparation for adding extension to translatewiki.net

* Prefix message keys with extension name to avoid key conflicts with core 
and/ore other extensions
* Add extension description message
* Add message documentation

Change-Id: I3518aa6e59448842ffeffffca98efbe5e3c21e54
---
M BayesianFilter.PageView.php
M BayesianFilter.i18n.php
M BayesianFilter.php
3 files changed, 18 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BayesianFilter 
refs/changes/66/85966/1

diff --git a/BayesianFilter.PageView.php b/BayesianFilter.PageView.php
index e20cbe1..86a8251 100644
--- a/BayesianFilter.PageView.php
+++ b/BayesianFilter.PageView.php
@@ -31,8 +31,8 @@
                                array( 'tabindex' => ++$tabindex, 'id' => 
'wpSpam' )
                        );
                        $attribs = array( 'for' => 'wpSpam' );
-                       $attribs['title'] = $this->msg( 'flag-spam-check-title' 
)->text();
-                       $labelMsg = $this->msg( 'flag-spam-check' )->text();
+                       $attribs['title'] = $this->msg( 
'bayesianfilter-flag-spam-check-title' )->text();
+                       $labelMsg = $this->msg( 
'bayesianfilter-flag-spam-check' )->text();
                        $label = Xml::element( 'label', $attribs, $labelMsg );
                        $checkboxes['flaggedSpam'] = $checkbox . ' ' . 
$label;
                }
diff --git a/BayesianFilter.i18n.php b/BayesianFilter.i18n.php
index 348129a..1a7d221 100644
--- a/BayesianFilter.i18n.php
+++ b/BayesianFilter.i18n.php
@@ -8,9 +8,21 @@
 
 $messages = array();
 
+/**  English
+ * @author Anbhav Agarwal
+ */
 $messages['en'] = array(
-                                               'flag-spam-check-title' => 
"Mark this checkbox if you think that the edit that you are undoing is a spam",
-                                               'flag-spam-check' => "Mark this 
as Spam"
+       'bayesianfilter-desc' => 'Filters wiki text into spam and hams using 
bayesian techniques',
+       'bayesianfilter-flag-spam-check-title' => 'Mark this checkbox if you 
think that the edit that you are undoing is a spam',
+       'bayesianfilter-flag-spam-check' => 'Mark this as spam',
+);
 
-       );
+/** Message documentation (Message documentation)
+ * @author Raimond Spekking
+ */
+$messages['qqq'] = array(
+       'bayesianfilter-desc' => '{{desc|name=Bayesian 
Filter|url=https://www.mediawiki.org/wiki/Extension:BayesianFilter}}',
+       'bayesianfilter-flag-spam-check-title' => 'Title of a checkbox',
+       'bayesianfilter-flag-spam-check' => 'Lable of a checkbox',
+);
 
diff --git a/BayesianFilter.php b/BayesianFilter.php
index 534ad22..4d233a1 100644
--- a/BayesianFilter.php
+++ b/BayesianFilter.php
@@ -12,7 +12,7 @@
        'name'           => 'BayesianFilter',
        'author'         => array( 'Anbhav Agarwal'),
        'url'            => 
'https://www.mediawiki.org/wiki/Extension:BayesianFilter',
-       'descriptionmsg' => 'Filters wiki text into spam and hams using 
bayesian techniques',
+       'descriptionmsg' => 'bayesianfilter-desc',
 );
 
 $dir = __DIR__ . '/';

-- 
To view, visit https://gerrit.wikimedia.org/r/85966
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3518aa6e59448842ffeffffca98efbe5e3c21e54
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BayesianFilter
Gerrit-Branch: master
Gerrit-Owner: Raimond Spekking <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to