Comments to help understand the message localizer

Change-Id: Ic7c9a12a78f358d11d997abf9a3a8e996f451c8f
This commit is contained in:
Adam Wight 2019-12-04 17:54:35 +01:00
parent 336dd4a27c
commit b575835c63

View file

@ -7,6 +7,9 @@ use Message;
use MessageLocalizer;
use MessageSpecifier;
/**
* Interface abstracts everything a Cite needs to do with languages.
*/
class ReferenceMessageLocalizer implements MessageLocalizer {
/**
* @var Language
@ -30,6 +33,9 @@ class ReferenceMessageLocalizer implements MessageLocalizer {
/**
* This is the method for getting translated interface messages.
*
* Note that it returns messages coerced to a specific language, the content language
* rather than the UI language.
*
* @see https://www.mediawiki.org/wiki/Manual:Messages_API
* @see Message::__construct
*