From e7d3dec07693f2a93f00f6c3647db6e36e254275 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Wed, 8 Nov 2023 12:07:29 +0000 Subject: [PATCH] Document some generated messages Change-Id: Id9c961f322c2f3730f29345da9ba61196243df5a --- src/ResourceLoader/CitationToolDefinition.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ResourceLoader/CitationToolDefinition.php b/src/ResourceLoader/CitationToolDefinition.php index 6fb6a12ea..9b5f1625b 100644 --- a/src/ResourceLoader/CitationToolDefinition.php +++ b/src/ResourceLoader/CitationToolDefinition.php @@ -36,6 +36,11 @@ class CitationToolDefinition { if ( is_array( $citationDefinition ) ) { foreach ( $citationDefinition as $tool ) { if ( !isset( $tool->title ) ) { + // The following messages are generated here: + // * visualeditor-cite-tool-name-book + // * visualeditor-cite-tool-name-journal + // * visualeditor-cite-tool-name-news + // * visualeditor-cite-tool-name-web $tool->title = $context->msg( 'visualeditor-cite-tool-name-' . $tool->name ) ->text(); }