localizing submit message text in javascript using resource loader

bug 49162

Change-Id: I528344369341d8c43f196b5d52fd47ae6012521e
This commit is contained in:
Wikinaut 2013-06-05 02:24:18 +02:00
parent ecc5d56a0e
commit ad55b3419a
2 changed files with 5 additions and 2 deletions

View file

@ -31,7 +31,7 @@ if( !defined( 'MEDIAWIKI' ) ) {
$wgExtensionCredits['parserhook'][] = array(
'path' => __FILE__,
'name' => 'AJAX Poll',
'version' => '1.82 20130531',
'version' => '1.83 20130605',
'author' => array( 'Dariusz Siedlecki', 'Jack Phoenix', 'Thomas Gries' ),
'descriptionmsg' => 'ajaxpoll-desc',
'url' => 'https://www.mediawiki.org/wiki/Extension:AJAX_Poll',
@ -58,6 +58,9 @@ $wgResourceModules['ext.ajaxpoll'] = $myResourceTemplate + array(
'ajaxpoll.css',
),
'dependencies' => array(
),
'messages' => array(
'ajaxpoll-submitting',
)
);

View file

@ -30,7 +30,7 @@ $(".ajaxpoll-answer-name label")
$this.find(".ajaxpoll-hover-vote").addClass("ajaxpoll-checkevent");
$this.find("input").prop("checked","checked");
$( "#ajaxpoll-ajax-"+poll )
.html("Please wait, submitting your vote.")
.text( mw.message( 'ajaxpoll-submitting' ) )
.css("display","inline-block");
if (useAjax){
sajax_do_call(