[00:08:58] tgr|away: Sorry for poking, not sure I understand your last message. Is https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CategoryTree/+/526234 incomplete at the moment per your last message? [00:09:17] Reason I’m asking is, not sure I understand your last message and how to place it in the code. [08:15:34] xSavitar: yeah, you should check something like Title::newFromText( implode( '/', array_slice( $pageWithTranslations, 0, -1 ) ) )->exists() and if it doesn't, don't hide the page, IMO [08:16:29] I at least would find it confusing if some page gets hidden completely because it does not have an English version [08:17:15] also something can end in a language code by accident, without actually being a translation [08:17:40] but then I'm not sure what you want to use this for so YMMV [09:34:17] tgr: Thanks! [10:12:31] tgr: I see a little issue. If Foo/en exist and Foo/hu exist but Foo doesn’t, it will display both on the category tree [10:12:50] That is, it will display Foo/en and Foo/hu [10:13:41] yeah. Not sure if that's a problem. [10:15:44] Let me share with you a snapshot [10:16:40] https://pasteboard.co/IqmbO8V.png —> with no suppression [10:17:14] https://pasteboard.co/Iqmc3PP.png —> with suppression [10:17:49] tgr: I intend to have something like “Translation page/en” and that’s all, other translations of the default page which in this case is the “en” version should be hidden. [10:18:30] If the first page that was created is “Foo/hu”, then that should be printed and the rest ignored. [10:25:59] But seems kinda impossible from what I see, the only way could be to assume the users preference or default language [10:26:32] I’ve updated the patch to the current state [10:26:32] you need to decide what are normal conditions, and for unexpected conditions fail in the least confusing way [10:27:19] if normal conditions are "every translation has a base page" then IMO the most graceful way to fail is to just display everything when it doesn't look like a proper translation setup [10:28:27] if translations without a base page are considered normal, you should probably check for the contentlang subpage as well as the base page [22:48:38] We really need unit/integration tests to ensure cached ParserOutput objects work properly after each change. Ugh... [22:48:45] Biting us again, possibly, at https://phabricator.wikimedia.org/T229366 [23:22:24] Krinkle: :-(