Merge "Use the Translated namespace in the metadata panel"

This commit is contained in:
jenkins-bot 2024-05-16 23:34:10 +00:00 committed by Gerrit Code Review
commit 0e2b527950

View file

@ -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' );