Hi,
I'm having a go at coding a feature request, and I have a question about messages. The feature is a new special page, so all of the code is within one file, the only thing that is outside that file is a require_once and some messages.
I was wondering where is the place to put new messages? I figured in Language.php, but how then do I update the database with them and create the relevant MediaWiki: pages?
Also, http://meta.wikimedia.org/wiki/How_to_become_a_MediaWiki_hacker recommends creating a patch and posting it at bugzilla, but I'm on Windows - how do I create a cvs diff in this environment?
Thanks,
-- Stephen Bain stephen.bain@gmail.com
Also, http://meta.wikimedia.org/wiki/How_to_become_a_MediaWiki_hacker recommends creating a patch and posting it at bugzilla, but I'm on Windows - how do I create a cvs diff in this environment?
I'm also on Windows, but for hacker tools like CVS I strongly recommend using the command line. If you already have a Windows CVS program installed, it will probably come with a Windows port of the 'cvs' command-line tool. Find it (should be called cvs.exe) and use "cvs diff -u <filename>" while you are in the appropriate subdirectory that contains the file. You can also be in a parent directory and use relative paths.
Timwi
On 12/4/05, Stephen Bain stephen.bain@gmail.com wrote:
Also, http://meta.wikimedia.org/wiki/How_to_become_a_MediaWiki_hacker recommends creating a patch and posting it at bugzilla, but I'm on Windows - how do I create a cvs diff in this environment?
You can do it using http://www.tortoisecvs.org/, a GPL CVS tool for Windows.
Angela.
On 12/4/05, Angela beesley@gmail.com wrote:
On 12/4/05, Stephen Bain stephen.bain@gmail.com wrote:
Also, http://meta.wikimedia.org/wiki/How_to_become_a_MediaWiki_hacker recommends creating a patch and posting it at bugzilla, but I'm on Windows - how do I create a cvs diff in this environment?
You can do it using http://www.tortoisecvs.org/, a GPL CVS tool for Windows.
Tortoise CVS works very well, but for diffs and other cvs features on windows you need to install the windows port of binutils (for example from http://sourceforge.net/project/showfiles.php?group_id=2435 ).
Alfio
Alfio Puglisi wrote:
Tortoise CVS works very well, but for diffs and other cvs features on windows you need to install the windows port of binutils (for example from http://sourceforge.net/project/showfiles.php?group_id=2435 ).
Or just use the built-in Tortoise versions of those features (potentially replacing TortoiseMerge with something like Beyond Compare if you do a lot of it)...
Ben
On 12/5/05, Ben Garney beng@garagegames.com wrote:
Alfio Puglisi wrote:
Tortoise CVS works very well, but for diffs and other cvs features on windows you need to install the windows port of binutils (for example from http://sourceforge.net/project/showfiles.php?group_id=2435 ).
Or just use the built-in Tortoise versions of those features (potentially replacing TortoiseMerge with something like Beyond Compare if you do a lot of it)...
My copy of TortoiseCVS didn't seem to be able to do diffs by itself... maybe more recent versions can.
Alfio
Stephen Bain schrieb:
I was wondering where is the place to put new messages? I figured in Language.php, but how then do I update the database with them and create the relevant MediaWiki: pages?
I guess that refers to your now extension based random links special page. The messages should be in your extension too. When the extension function of your extension is called, you then declare your special page, parser hook or whatever inside of that function. And that is also the right time to declare the new messages. You can see an example for that in a short extension of mine at http://cvs.sourceforge.net/viewcvs.py/bw-projects/MediaWiki/extensions/Speci... at the end of the file.
Also, http://meta.wikimedia.org/wiki/How_to_become_a_MediaWiki_hacker recommends creating a patch and posting it at bugzilla, but I'm on Windows - how do I create a cvs diff in this environment?
I use Eclipse for nearly all development tasks. Eclipse has a built in patch creation facility, so if you compare two versions of version controlled resources inside Eclipse, you can easily create a patch from the comparison result.
For me using external tools outside Eclipse only happens very seldom now. :)
Ciao, Michael.
wikitech-l@lists.wikimedia.org