Last modified: 2014-03-05 22:24:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 42240 - Refactor LanguageConverter to decouple it from various $wg objects
Refactor LanguageConverter to decouple it from various $wg objects
Status: NEW
Product: MediaWiki
Classification: Unclassified
Language converter (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: code_quality 32906 42002
  Show dependency treegraph
 
Reported: 2012-11-18 12:15 UTC by Liangent
Modified: 2014-03-05 22:24 UTC (History)
3 users (show)

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


Attachments

Description Liangent 2012-11-18 12:15:18 UTC
See bug 32906 comment 18 and following comments. I made some attempts in Gerrit change #33969.
Comment 1 Liangent 2012-11-18 12:24:04 UTC
Next step: move variant setting to ParserOption. Maybe have ParserOption accept a $context, then populate the variant setting from $lang->getPreferredVariant( $context ).

Barrier: there's not always some context available (eg. when parsing messages. Don't convert text in this case? That's bug 34832.) or language available (it's tied to title, and title is usually unknown when ParserOption is constructed...
Comment 2 Liangent 2012-11-18 12:28:49 UTC
SPQRobin might be interested. Adding to CC.

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


Navigation
Links