To implement what he is asking for, I hacked Parser::pstPass2() in includes/parser/Parser.php as follows:
Change: $key = 'timezone-' . strtolower( trim( $tzMsg ) ); to: $key = 'signature-timezone-' . strtolower( trim( $tzMsg ) );
Change: $d = $wgContLang->timeanddate( $ts, false, false ) . " ($tzMsg)"; to: $en = Language::factory ( 'en' ); $d = $en->timeanddate( $ts, false, false ) . " ($tzMsg)";
Next, write the following PHP script and run it:
<?php $abbreviations = array_keys ( DateTimeZone::listAbbreviations() ); foreach ( $abbreviations as $abbreviation ) { echo "MediaWiki:Signature-timezone-$abbreviation\n"; }
This will give you the list of MediaWiki: namespace pages you need to create, e.g. MediaWiki:Signature-timezone-utc, MediaWiki:Signature-timezone-est, etc. There's probably an easier way, though. _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
[Standard disclaimer about we do not reccomend making hacks to core mediawiki, and such hacks are unsupported, yadda]
The timezone messages generally aren't translated (fun fact: the timezone UTC had its name chosen because it makes sense in no language, so no language was favoured), so he probably wouldn't need to touch that at all. But if that was a concern, the easier way would be to add ->inLanguage ( 'en' ) to the wfMessage function chain (replacing ->inContentLanguage () ).
-bawolff