From 439dc7585749556ae250c3d87ab1ab6154d3294f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 29 Sep 2015 02:35:06 +0200 Subject: [PATCH] OOjs UI: Backport 4fbbc737c86b500c11bbb471ec1001c50ab8853c 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 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/lib/oojs-ui/oojs-ui.js b/resources/lib/oojs-ui/oojs-ui.js index 2565fb5ea2..a00b973fb6 100644 --- a/resources/lib/oojs-ui/oojs-ui.js +++ b/resources/lib/oojs-ui/oojs-ui.js @@ -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 } ); -- 2.20.1