Author: rob
Description:
I'm running MediaWiki 1.19.1, just done a fresh pull of Translate from git, master branch. My apologies for any inaccuracies in terminology - I'm very new to MediaWiki, a little rusty with PHP but use git daily.
How to recreate:-
Set up a user account with 'en' as its language
Create a page, in English, and mark it for translation into German only (by setting 'de' as a priority translation and checking 'disallow translation into other languages'.
Click 'Translate this page'.
A 500 error will be returned, and this placed into the logs:-
[Wed Jun 20 23:07:59 2012] [error] [client xx.xx.xx.xx] PHP Fatal error: Call to undefined method Language::fetchLanguageName() in /home/sites/mysite.com/public_html/wiki/extensions/Translate/specials/SpecialTranslate.php on line 163, referer: http://wiki.mysite.com/index.php?title=XX_XX_XX
-: the page requested was :-
By changing the language GET param to 'de', the page displays properly.
I believe this bug was introduced in commit 76cd8533, as checking out the commit prior to this results in a sane error message being displayed.
I'm happy to grant access to my install to developers if the bug can't be recreated on a test env.
Version: master
Severity: major