mw.ForeignStructuredUpload: Mark description as being in source wiki's content language
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 26 Oct 2015 17:08:36 +0000 (18:08 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 26 Oct 2015 17:08:36 +0000 (18:08 +0100)
Bug: T116395
Change-Id: Id701ee053be226e9ed1791cbb59459d372ac7255

resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js

index 86fb91b..01917f8 100644 (file)
         * @inheritdoc
         */
        mw.ForeignStructuredUpload.BookletLayout.prototype.getText = function () {
-               this.upload.addDescription( 'en', this.descriptionWidget.getValue() );
+               var language = mw.config.get( 'wgContentLanguage' );
+               this.upload.addDescription( language, this.descriptionWidget.getValue() );
                this.upload.setDate( this.dateWidget.getValue() );
                this.upload.addCategories( this.categoriesWidget.getItemsData() );
                return this.upload.getText();