From: Bartosz DziewoƄski Date: Tue, 29 Sep 2015 00:35:06 +0000 (+0200) Subject: OOjs UI: Backport 4fbbc737c86b500c11bbb471ec1001c50ab8853c X-Git-Tag: 1.31.0-rc.0~8900 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=439dc7585749556ae250c3d87ab1ab6154d3294f;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 } );