diff --git a/modules/ve-mw/ui/inspectors/ve.ui.MWGalleryInspector.js b/modules/ve-mw/ui/inspectors/ve.ui.MWGalleryInspector.js index 252a09ac89..4b3367a361 100644 --- a/modules/ve-mw/ui/inspectors/ve.ui.MWGalleryInspector.js +++ b/modules/ve-mw/ui/inspectors/ve.ui.MWGalleryInspector.js @@ -43,7 +43,7 @@ ve.ui.MWGalleryInspector.static.modelClasses = [ ve.dm.MWGalleryNode ]; /** */ ve.ui.MWGalleryInspector.prototype.getInputPlaceholder = function () { // 'File:' is always in content language - return mw.config.get( 'wgFormattedNamespaces' )[ '6' ] + ':' + + return mw.config.get( 'wgFormattedNamespaces' )[ mw.config.get( 'wgNamespaceIds' ).file ] + ':' + ve.msg( 'visualeditor-mwgalleryinspector-placeholder' ); };