daniel created this task.
daniel added subscribers: Ricordisamoa, Liuxinyu970226, Daniel_Mietchen, 
Lydia_Pintscher, hoo, Rical, Aklapper, daniel.
daniel added projects: MediaWiki-extensions-WikibaseClient, Wikidata.

TASK DESCRIPTION
  Currently, the target language for label display is determiend in two ways:
  # PropertyClaimsRendererFactory::newRendererFromParser() uses 
Parser::getTargetLanguage() which will delegate to Title::getPageLanguage() in 
the standard case, which in turn will usually return the wiki's content 
language.
  # Scribunto_LuaWikibaseEntityLibrary::newImplementation() just uses 
$wgContLang directly.
  
  This means labels are always rendered in the content language.
  
  For multi-lingual wikis, we can to render labels in the user's language, and 
split the parser cache accordingly. This should be optional to avoid splitting 
the parser cache on all wikis. 
  
  It's currently unclear how to get the "correct" target language. 
Conceptually, it seems like  Parser::getTargetLanguage()  should return the 
user's language on multi-lingual wikis. It already does this if 
$this->mOptions->getInterfaceMessage() is not null.

TASK DETAIL
  https://phabricator.wikimedia.org/T101280

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: daniel, Aklapper, Rical, hoo, Lydia_Pintscher, Daniel_Mietchen, 
Liuxinyu970226, Ricordisamoa, Wikidata-bugs, aude



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to