Jack Phoenix has uploaded a new change for review.

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

Change subject: i18n tweaks requested by Sam
......................................................................

i18n tweaks requested by Sam

Change-Id: I29d6e078756bf5560834bac356bc5891e90717aa
---
M backend/spamRegexList.php
M i18n/en.json
2 files changed, 6 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SpamRegex 
refs/changes/56/324856/1

diff --git a/backend/spamRegexList.php b/backend/spamRegexList.php
index 601ea1e..0f13c0f 100644
--- a/backend/spamRegexList.php
+++ b/backend/spamRegexList.php
@@ -130,10 +130,10 @@
                                }
 
                                if ( $row->spam_summary == 1 ) {
-                                       if ( $row->spam_textbox == 1 ) {
-                                               $desc .= $this->context->msg( 
'word-separator' )->escaped();
-                                       }
                                        $desc .= $this->context->msg( 
'spamregex-summary-log' )->plain();
+                                       if ( $row->spam_textbox == 1 ) {
+                                               $desc = $this->context->msg( 
'spamregex-text-and-summary-log' )->plain();
+                                       }
                                }
 
                                $out->addHTML( '<ul>' );
diff --git a/i18n/en.json b/i18n/en.json
index 2df42fb..30417b0 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -30,8 +30,9 @@
        "spamregex-phrase-block-text": "block phrase in page text",
        "spamregex-phrase-block-summary": "block phrase in summary",
        "spamregex-block-submit": "Block&nbsp;this&nbsp;phrase",
-       "spamregex-text": "(Text)",
-       "spamregex-summary-log": "(Summary)",
+       "spamregex-text": "(text)",
+       "spamregex-text-and-summary-log": "(text, summary)",
+       "spamregex-summary-log": "(summary)",
        "action-spamregex": "block spam phrases",
        "right-spamregex": "Block spam phrases through [[Special:SpamRegex]]"
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I29d6e078756bf5560834bac356bc5891e90717aa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SpamRegex
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <j...@countervandalism.net>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to