From 4b45cd438f9ee166d64cd459accc0af08998bb0f Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Thu, 16 May 2024 17:34:36 +0200 Subject: [PATCH] Use the Translated namespace in the metadata panel Bug: T365124 Change-Id: Ibf932f266a66ce34909290a6441a87caeec05431 --- resources/mmv/ui/mmv.ui.metadataPanel.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/mmv/ui/mmv.ui.metadataPanel.js b/resources/mmv/ui/mmv.ui.metadataPanel.js index cfe2426a2..5a7ef81f7 100644 --- a/resources/mmv/ui/mmv.ui.metadataPanel.js +++ b/resources/mmv/ui/mmv.ui.metadataPanel.js @@ -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' );