* New user accounts' personal and talk pages are now watched by them by default.
* Added SkinTemplateGetLanguageLink hook to allow changing the html of language
links.
+* Added MessageCache::get hook as a new way to customize messages across
+ multiple sites.
=== Bug fixes in 1.23 ===
* (bug 41759) The "updated since last visit" markers (on history pages, recent
$title: title of the message (string)
$message: value (string), change it to the message you want to define
+'MessageCache::get': When fetching a message. Can be used to override the key
+for customisations. Given and returned message key must be in special format:
+1) first letter must be in lower case according to the content language.
+2) spaces must be replaced with underscores
+&$key: message key (string)
+
'MessageCacheReplace': When a message page is changed. Useful for updating
caches.
$title: name of the page changed.
// Normalise title-case input (with some inlining)
$lckey = strtr( $key, ' ', '_' );
- if ( ord( $key ) < 128 ) {
+ if ( ord( $lckey ) < 128 ) {
$lckey[0] = strtolower( $lckey[0] );
- $uckey = ucfirst( $lckey );
} else {
$lckey = $wgContLang->lcfirst( $lckey );
+ }
+
+ wfRunHooks( 'MessageCache::get', array( &$lckey ) );
+
+ if ( ord( $lckey ) < 128 ) {
+ $uckey = ucfirst( $lckey );
+ } else {
$uckey = $wgContLang->ucfirst( $lckey );
}