[02:20:38] [[Tech]]; Svdhara; /* ChatGPT and Cognition */ new section; https://meta.wikimedia.org/w/index.php?diff=25116719&oldid=25106292&rcid=27556992 [07:07:55] [[Tech]]; Matěj Suchánek; /* ChatGPT and Cognition */ Reply; https://meta.wikimedia.org/w/index.php?diff=25116982&oldid=25116719&rcid=27557799 [13:11:59] duesen: re https://gerrit.wikimedia.org/r/c/mediawiki/core/+/927303, did you see that I already reverted that HookContainer revert in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/927596? [13:36:36] Lucas_WMDE: ah! No, I didn't see that. I'll abandon my patch then [13:37:13] ok :) [13:37:38] (it might still need some more follow-up patches, I don’t claim to fully understand the code I touched ^^) [13:37:46] Thank you for the fix, and sorry for the disruption! [13:38:43] do you want to keep https://phabricator.wikimedia.org/T338213 open for any follow-up work? [13:38:48] otherwise I think it can be closed as far as I’m concerned [13:39:19] now, please close it [13:39:28] $hook = strtr( $hook, ':\\-', '___' ) looks good. [13:39:42] ok! [13:39:54] I hope nobody got the idea of putting other stuff in hook names. Who knows. [13:40:43] What confuses me is... how did this ever work? Look at line 157 of the old code... [13:40:47] $funcName = 'on' . strtr( ucfirst( $hook ), ':-', '__' ); [13:41:00] o_O [13:41:07] yeah I don’t fully understand that [13:41:14] that’s *not* replacing \, unlike your new version [13:41:20] but it adds an ucfirst? [13:41:49] Hmhm.... ucfirst should not be needed on a class name... [13:42:03] oh, i have a deployment coming up. got to go. [13:42:07] ok [13:50:03] Hi, I have a quick and dirty question. I set a wiki with $wgLanguageCode = 'fa'; however the wiki still shows in English rtl. [13:50:24] What else would I need to do to get fa interface messages? [13:51:02] maybe `php maintenance/run.php rebuildLocalisationCache --lang fa`? [13:51:04] Technically the rwong channel for this... But are you logged in? What is your user preference for language set to? [13:51:43] No I am not logged in. This is what is irritating. Moreover this started after an upgrade from 1.31 to 1.35 [13:55:54] No, rebuilding the localization cache did not help :( Was done before but used the --force option to do it again [13:57:03] does ?uselang=fa at least give you fa? [14:01:00] Yes, this shows as expected. [14:01:35] Ok, so it's not completely broken at least [14:02:24] Any caching in place? [14:02:45] CACHE_ANYTHING. Will switch to NONE [14:04:14] Does not help either. [14:04:36] Anything infront of your webserver? [14:04:41] Have you restarted your webserver? [14:05:23] I suspect that some extension may be responsible. cldr MobileFrontent or UniversalLanguageSelector. Apart from that nothing that shoudl interfere with how you look at the wiki [14:05:58] won't be cldr [14:06:06] But if you suspect an extenson, try turnig it off [14:06:35] ULS might be inferring the interface language from the browser language (IIRC that feature is off in production but enabled by default in the extension) [14:06:37] try turning it off, yeah [14:11:21] This did not help either. Thoug I cannot believe that uls is that disfuncional. There is no big point for this extension if it messes the interface. fa.wikipdia works too using it. [14:11:35] Anyhow, I am running out of time at the moment [16:59:56] Reedy Lucas_WMDE Hi, I'm back. [17:00:35] thanks for your previous help which I appreciated a lot. [17:01:00] In the end the UniversalLanguageSelector extension was to "blame". [17:01:22] After disabling it fa showed up, once enabled I was back to en. [17:01:56] Anyhow, I looked at the configuration settings and found that $wgULSLanguageDetection  = false; fixes the issue. [17:02:47] I think that would be the setting that Lucas_WMDE was mentioning [17:02:53] Maybe it is on by default these days [17:03:36] https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector/blame/master/extension.json#L89C7-L92 [17:03:39] Has been for years apparently [17:04:23] Yes. It is enabled by default. In 1.31 this one was not needed, now in 1.35 you have to add and disable it. [18:55:50] tool repos now in Codesearch :) https://codesearch.wmcloud.org/wmcs/?q=GucData&files=&excludeFiles=&repos= [18:55:56] e.g. labs/tools/guc on gerrit etc [19:16:45] Krinkle, :D [19:49:57] Krinkle: just in time to move them all to gitlab ;) [19:51:40] :joy: