Nischayn22 has uploaded a new change for review.

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


Change subject: (bug 43483) remove usage of lego.
......................................................................

(bug 43483) remove usage of lego.

Change-Id: If396da6655e998a4bca481fa43fa38afd7b85f77
---
M MoodBar.i18n.php
M MoodBar.php
M modules/ext.moodBar/ext.moodBar.core.js
3 files changed, 5 insertions(+), 22 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MoodBar 
refs/changes/40/50040/1

diff --git a/MoodBar.i18n.php b/MoodBar.i18n.php
index aed5e8e..dc56645 100644
--- a/MoodBar.i18n.php
+++ b/MoodBar.i18n.php
@@ -47,9 +47,7 @@
        'moodbar-what-content' => 'This feature is designed to help the 
community understand the experience of people editing the site.
 For more information, please visit the $1.',
        'moodbar-what-link' => 'feature page',
-       'moodbar-privacy' => 'By submitting, you agree to transparency under 
these $1.',
-       'moodbar-privacy-link' => 'terms',
-       'moodbar-privacy-link-title' => 'Terms of Use',
+       'moodbar-privacy' => 'By submitting, you agree to transparency under 
these [$1  Terms of Use].',
        'moodbar-fbd-link-title' => 'feedback',
        'moodbar-disable-link' => "I'm not interested. Please disable this 
feature.",
        'moodbar-form-title' => 'Because...',
@@ -266,14 +264,11 @@
        'moodbar-what-content' => '$1 is the message 
{{msg-mw|moodbar-what-link}} which links to the page [[mw:MoodBar|MoodBar]] on 
MediaWiki.org.',
        'moodbar-what-link' => 'This is the link embedded as parameter $1 in 
{{msg-mw|moodbar-what-content}}.',
        'moodbar-privacy' => 'Parameters:
-*$1 - a link having the anchor text {{msg-mw|moodbar-privacy-link}}
+*$1 - an external link 
 
 The link is to the privacy policy of the wiki.
 
 See [[Thread:Support/About MediaWiki:Moodbar-privacy/en (2)/reply 
(4)|discussion]].',
-       'moodbar-privacy-link' => 'This is the anchor text being used in the 
link replacing $1 in the message {{msg-mw|moodbar-privacy}}',
-       'moodbar-privacy-link-title' => 'This is the title of the anchor link 
being used for the privacy message.
-{{Identical|Terms of use}}',
        'moodbar-fbd-link-title' => 'This is the link text of $FBD-LINK in 
{{msg-mw|moodbar-success-subtitle}}. Shown after leaving moodbar feedback.',
        'moodbar-form-note-dynamic' => 'Parameters:
 * $1 - number of characters, can be used for PLURAL',
diff --git a/MoodBar.php b/MoodBar.php
index 0c528e5..5e76937 100644
--- a/MoodBar.php
+++ b/MoodBar.php
@@ -158,8 +158,6 @@
                'moodbar-form-policy-label',
                'moodbar-form-submit',
                'moodbar-privacy',
-               'moodbar-privacy-link',
-               'moodbar-privacy-link-title',
                'moodbar-disable-link',
                'moodbar-loading-title',
                'moodbar-error-title',
diff --git a/modules/ext.moodBar/ext.moodBar.core.js 
b/modules/ext.moodBar/ext.moodBar.core.js
index 8d2f20b..9f16d42 100644
--- a/modules/ext.moodBar/ext.moodBar.core.js
+++ b/modules/ext.moodBar/ext.moodBar.core.js
@@ -309,19 +309,9 @@
                                .find( '.mw-moodBar-privacy' )
                                        .html(
                                                function() {
-                                                       var message, 
linkMessage, linkTitle, link;
-
-                                                       message = mw.msg( 
'moodbar-privacy' );
-                                                       linkMessage = mw.msg( 
'moodbar-privacy-link' );
-                                                       linkTitle = mw.msg( 
'moodbar-privacy-link-title' );
-                                                       link = mw.html.element( 
'a', {
-                                                                       'href': 
mb.conf.privacyUrl,
-                                                                       
'title': linkTitle,
-                                                                       
'target': '_blank'
-                                                               }, linkMessage 
);
-
-                                                       return mw.html.escape( 
message )
-                                                               .replace( 
/\$1/, link );
+                                                       var message;
+                                                       message = mw.message( 
'moodbar-privacy', mb.conf.privacyUrl ).parse();
+                                                       return message;
                                                }
                                        )
                                        .end()

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If396da6655e998a4bca481fa43fa38afd7b85f77
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MoodBar
Gerrit-Branch: master
Gerrit-Owner: Nischayn22 <[email protected]>

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

Reply via email to