From: umherirrender Date: Sat, 16 Nov 2013 11:37:25 +0000 (+0100) Subject: Add used message keys to ContentHandler::getLocalizedName X-Git-Tag: 1.31.0-rc.0~18102^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=5ecaf91e77f1c5467635d19bafeb8eb275bc9970;p=lhc%2Fweb%2Fwiklou.git Add used message keys to ContentHandler::getLocalizedName Change-Id: Ide072627e87c94da5a180d8d00aa38683af44f4e --- 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 );