This's my first time talk at a open source mail list,I got say this is very feel
great,I personally use mediawiki to record what I seeing,what I think,I really like
it,maybe first it's kind hard to learn like about the wired wiki text language,special
the table syntax ,I still this it's suck,to many [|] in it,but after that,I just
can't help myself to love it,it have a lot expend way to use,I can just add a js
gadget (which I had add a lot),and if I WANA go far,I can make a PHP extension,it's
very easy to expend,just never like other web program I have use.
Sure,the mediawiki may look like past time(old ui like a text editor),not fashion,but for
me,it's good enough to back the simple easy way.
But the most magic I just have seen by now,the guy who make mw,are bunch stronger guy,but
just make it work ,and just better and better:)
Regrades
Sen
From SLboat(http://see.sl088.com)
在 2013年11月30日,下午1:54,Brian Wolff <bawolff(a)gmail.com> 写道:
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(a)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
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l