From 5ecaf91e77f1c5467635d19bafeb8eb275bc9970 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 16 Nov 2013 12:37:25 +0100 Subject: [PATCH] Add used message keys to ContentHandler::getLocalizedName Change-Id: Ide072627e87c94da5a180d8d00aa38683af44f4e --- includes/content/ContentHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/content/ContentHandler.php b/includes/content/ContentHandler.php index 8991290e7d..89ef4e42f9 100644 --- a/includes/content/ContentHandler.php +++ b/includes/content/ContentHandler.php @@ -354,6 +354,8 @@ abstract class ContentHandler { * @throws MWException if the model id isn't known. */ public static function getLocalizedName( $name ) { + // Messages: content-model-wikitext, content-model-text, + // content-model-javascript, content-model-css $key = "content-model-$name"; $msg = wfMessage( $key ); -- 2.20.1