Insertables for translation variables in translatable pages. More...
Public Member Functions | |
getInsertables (string $text) | |
Returns the insertables in the message text. | |
Public Attributes | |
const | NAME_PATTERN = '\$[\pL\pN_$-]+' |
Translatable pages allow naming the variables. | |
Insertables for translation variables in translatable pages.
Definition at line 15 of file TranslatablePageInsertablesSuggester.php.
MediaWiki\Extension\Translate\PageTranslation\TranslatablePageInsertablesSuggester::getInsertables | ( | string | $text | ) |
Returns the insertables in the message text.
Reimplemented from MediaWiki\Extension\Translate\TranslatorInterface\Insertable\MediaWikiInsertablesSuggester.
Definition at line 24 of file TranslatablePageInsertablesSuggester.php.
const MediaWiki\Extension\Translate\PageTranslation\TranslatablePageInsertablesSuggester::NAME_PATTERN = '\$[\pL\pN_$-]+' |
Translatable pages allow naming the variables.
Almost anything is allowed in a variable name, but here we are stricter to avoid too many incorrect matches when variable name is followed by non-space characters.
Definition at line 22 of file TranslatablePageInsertablesSuggester.php.