mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-27 09:30:02 +00:00
Merge "Use the Translated namespace in the metadata panel"
This commit is contained in:
commit
0e2b527950
|
@ -412,7 +412,11 @@ const TruncatableTextField = require( './mmv.ui.truncatableTextField.js' );
|
|||
* @param {string} filename The file name to set, without prefix
|
||||
*/
|
||||
setFileName( filename ) {
|
||||
this.$filenamePrefix.text( 'File:' );
|
||||
this.$filenamePrefix.text(
|
||||
mw.config.get( 'wgFormattedNamespaces' )[
|
||||
mw.config.get( 'wgNamespaceIds' ).file
|
||||
] + ':'
|
||||
);
|
||||
this.$filename.text( filename );
|
||||
|
||||
this.$filenameLi.removeClass( 'empty' );
|
||||
|
|
Loading…
Reference in a new issue