For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:MessageCacheFetchOverrides extensions.
Both the input and output keys must have an initial lowercase character. No spaces can be used in the keys; any spaces must be converted to underscores.
Values may be either a string or a callable that returns a string. Callables are provided four arguments: the message key, an instance of MessageCache, a Language object and a boolean indicating if the value should be loaded from the database.
function ( string $key, MessageCache $cache, Language $language, bool $useDB ): string { ... }
To prevent ambiguity between message keys that can also be interpreted as a callable (strtotime
, for example), all string values are interpreted as a message key. To use a callable defined as a string, use Closure::fromCallable.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4