Template:Optin/Default: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 16:
</ul>
<div class="optin-no-prompt" data-is-translated="</html>{{IsTranslated|Template:OptinText/PromptNo|{{int:lang}}}}<html>">
<div class="optin-no-prompt__no">{{Translated|Template:OptinText/PromptNo}}</div>
<div class="optin-no-prompt__yes">{{Translated|Template:OptinText/PromptYes}}</div>
</div>
<div class="optin-smallprint links-in-new-tab">
Line 109:
/* Called by Common.js */
function initOptin() {
var language = mw.config.get('wgUserLanguage');
var optinNoPrompts = {
'en' : {
'no' : "πŸ˜” Sorry to hear that. We don't email often; would you consider changing your mind?",
'yes' : "😍 Thanks for changing your mind! We'll respect your inbox."
},
'it' : {
'no' : "πŸ˜” È un vero peccato. Non inviamo e-mail frequentemente; prenderesti in considerazione la possibilitΓ  di cambiare idea?",
'yes' : "😍 Grazie per aver cambiato idea! Avremo molto rispetto della tua casella di posta."
}
};
optinNoPrompts['en-gb'] = optinNoPrompts['en'];
 
// Only do all this if we have translated prompts
if ( $('.optin-no-prompt').data('is-translated') === 'yes' ) {
if ( optinNoPrompts[language] ) {
$('.optin-no-prompt__no').text( optinNoPrompts[language].no );
$('.optin-no-prompt__yes').text( optinNoPrompts[language].yes );
 
$('.optin-options').on('click', function(){
if ( $('#optin-no').is(':checked') ) {