summaryrefslogtreecommitdiff
path: root/resources/src/jquery/jquery.confirmable.mediawiki.js
diff options
context:
space:
mode:
Diffstat (limited to 'resources/src/jquery/jquery.confirmable.mediawiki.js')
-rw-r--r--resources/src/jquery/jquery.confirmable.mediawiki.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/resources/src/jquery/jquery.confirmable.mediawiki.js b/resources/src/jquery/jquery.confirmable.mediawiki.js
new file mode 100644
index 00000000..d4a106e3
--- /dev/null
+++ b/resources/src/jquery/jquery.confirmable.mediawiki.js
@@ -0,0 +1,14 @@
+/*!
+ * jQuery confirmable plugin customization for MediaWiki
+ *
+ * This file serves to inject our localised messages into it.
+ */
+
+( function ( mw, $ ) {
+ $.fn.confirmable.defaultOptions.i18n = {
+ space: mw.message( 'word-separator' ).text(),
+ confirm: mw.message( 'confirmable-confirm', mw.user ).text(),
+ yes: mw.message( 'confirmable-yes' ).text(),
+ no: mw.message( 'confirmable-no' ).text()
+ };
+}( mediaWiki, jQuery ) );