Last modified: 2010-05-15 16:03:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16118, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14118 - SpecialPage::getTitleFor does not return a localised name
SpecialPage::getTitleFor does not return a localised name
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.13.x
All All
: Normal normal (vote)
: ---
Assigned To: Raimond Spekking
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-14 12:43 UTC by Raimond Spekking
Modified: 2010-05-15 16:03 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Raimond Spekking 2008-05-14 12:43:08 UTC
SpecialPage::getTitleFor is described as "Get a localised Title object for a specified special page name"

At least flaggedRevs uses this function, for example FlaggedRevsPage::submit:
 
   $wgOut->returnToMain( false, SpecialPage::getTitleFor( 'RecentChanges' ) );

Actual output for language 'de':

   Zurück zur Seite Spezial:RecentChanges

Expected output for language 'de':

   Zurück zur Seite Spezial:Letzte_Änderungen



A mix of English and German is a little bit weird :/
Comment 1 Alexandre Emsenhuber [IAlex] 2008-05-14 12:55:16 UTC
this happens because RecentChanges is *not* a valid special page identifier (they are not case insensitive).
That should be SpecialPage::getTitleFor( 'Recentchanges' ) wich returns the localised name of the page.
Comment 2 Raimond Spekking 2008-05-15 09:09:41 UTC
(In reply to comment #1)
> this happens because RecentChanges is *not* a valid special page identifier
> (they are not case insensitive).
> That should be SpecialPage::getTitleFor( 'Recentchanges' ) wich returns the
> localised name of the page.
> 

Ah, I see. FlaggedRevs fixed with r34850.

But I assume the function should accept special page names case insensitive?
Comment 3 Siebrand Mazeland 2008-08-17 21:10:03 UTC
Assigned: Raymond.
Comment 4 Niklas Laxström 2008-08-18 08:05:27 UTC
Note also that the content language must be 'de', interface language doesn't matter.
Comment 5 Niklas Laxström 2009-05-23 10:17:54 UTC
Made it try harder and scream if still not found in r50933.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links