matmarex added a comment.

  In T350806#9401468 <https://phabricator.wikimedia.org/T350806#9401468>, @Tgr 
wrote:
  
  > I think the more correct approach would be some kind of service that takes 
a title and a request context (or user identity + WebRequest) and looks up the 
language, so that the dependencies are made explicit.
  
  I think that's basically LanguageConverter::getPreferredVariant(), and see 
T346996 <https://phabricator.wikimedia.org/T346996> about making it a service 
instead of reading from the globals.

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

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

To: DAlangi_WMF, matmarex
Cc: xSavitar, Tgr, WMDE-leszek, Michael, matmarex, Aklapper, Krinkle, 
Danny_Benjafield_WMDE, Isabelladantes1983, Themindcoder, Mohamed-Awnallah, 
Adamm71, Jersione, Hellket777, mrephabricator, LennardHofmann, LisafBia6531, 
Astuthiodit_1, 786, lbowmaker, BTullis, Biggs657, karapayneWMDE, toberto, 
Invadibot, Ywats0ns, caldera, maantietaja, Juan90264, Alter-paule, NavinRizwi, 
Beast1978, CBogen, ItamarWMDE, Un1tY, Akuckartz, Hook696, Kent7301, 
joker88john, 94rain, CucyNoiD, Nandana, Gaboe420, lucamauri, Patriccck, 
Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Ramsey-WMF, Bsandipan, 
GoranSMilovanovic, TJH2018, Nattes, QZanden, EnricoCNC, LawExplorer, Lewizho99, 
Maathavan, SundanceRaphael, _jensen, rosalieper, Taiwania_Justo, Neuronton, 
Scott_WUaS, Izno, alex-mashin, Wikidata-bugs, aude, geraki, Dinoguy1000, 
Gryllida, jeblad, jayvdb, MrStradivarius, Tacsipacsi, Catrope, Jackmcbarn, 
Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to