OOjs UI: Backport 4fbbc737c86b500c11bbb471ec1001c50ab8853c
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 29 Sep 2015 00:35:06 +0000 (02:35 +0200)
committerOri.livneh <ori@wikimedia.org>
Mon, 23 Nov 2015 22:26:50 +0000 (22:26 +0000)
We totally forgot to use a localisation message we carefully introduced.
We're even sending the message to the client correctly, just not using it.
Has plenty of translations and this is a really annoying kind of issue
to notice on a non-English wiki.

Change-Id: Ifc2cb5ac5930c8d3c4b0da295d5d868d442630b2

resources/lib/oojs-ui/oojs-ui.js

index 2565fb5..a00b973 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Local backports:
+ *
+ * - 4fbbc737c86b500c11bbb471ec1001c50ab8853c
+ *   SelectFileWidget: Use i18n string for button label
+ *   We totally forgot to use a localisation message we carefully introduced.
+ */
+
 /*!
  * OOjs UI v0.13.3
  * https://www.mediawiki.org/wiki/OOjs_UI
@@ -14234,7 +14242,7 @@ OO.ui.SelectFileWidget = function OoUiSelectFileWidget( config ) {
 
        this.selectButton = new OO.ui.ButtonWidget( {
                classes: [ 'oo-ui-selectFileWidget-selectButton' ],
-               label: 'Select a file',
+               label: OO.ui.msg( 'ooui-selectfile-button-select' ),
                disabled: this.disabled || !this.isSupported
        } );