Thank you, Bryan. Actually, I wrote you just to explain that there are
parts that do no work. But if you're interested, here are some details.
1) About the language.
The extension has the code
// Get RTL/LTR direction for the site. We can't use
String.prototype.startsWith, since
// that is unavailable in IE11, and doesn't take multiple values anyway. Use
// String.prototype.match with a list of the language codes that should be
RTL
// this.siteID is based on the URL form of the wiki, and we assume that
wikis that are
// meant to be RTL are in the form `⧼rtl language code⧽.*`, and any URL
that does not
// match this is for an LTR wiki. See T274602 and T274313
const isRTL = this.siteID.match(
/^(ar|azb|ckb|dv|fa|glk|he|ks|lrc|mzn|nqo|pnb|ps|sd|ug|ur|yi)_/
);
// mw-content-ltr and -rtl classes are not enough to ensure that the text
is formatted
// in the correct direction, so add a manual direction attribute. See
T287649
// We still add those classes because they are also used by
jQuery.makeCollapsible
// to know if the collapse button should be on the right or left.
this.$feedDiv = $( '<div>' )
.attr( 'id', 'ext-globalwatchlist-feed-site-' + this.siteID )
.attr( 'dir', isRTL ? 'rtl' : 'ltr' )
.addClass( 'ext-globalwatchlist-feed-site' )
.addClass( isRTL ? 'mw-content-rtl' : 'mw-content-ltr' )
.append(
headerTemplate.render( headerParams ),
$content
);
This is how it decides which wiki is shown in ltr div, and which wiki in
rtl div. It's not ideal, of course, but we coudn't find the better way back
than. And since the Patch Demo wiki URL does not have such a match for a
language code, it shows everything in ltr.

2) The extension gets a list of wikis to show. The syntax is .*(\..*)*, for
example abc.catalyst.org. So, it's able to get a first wiki name in the
farm. But the rest don't match, they are abc.catalyst.org/wiki2, for
example, and the extension do not know what to do with them.

3) Is there some Talk page or IRC channel where I can discuss some issues
in the Patch Demo? I'm not sure yet, so I don't go to Phabricator. Thanks
again.

Igal

בתאריך יום ה׳, 11 בדצמ׳ 2025, 00:39, מאת Bryan Davis ‏<[email protected]>:

> On Sat, Dec 6, 2025 at 1:35 PM ‫יגאל חיטרון‬‎ <[email protected]>
> wrote:‬
> >
> > Well, Bryan, thank you again. Looks like I can't run it all, because
> using rtl language code is ignored by the interface. I mean, the extension
> does not get the language code from the simulated wiki. And also, I can't
> add wikifarm names to the extension settings, because ***.
> catalyst.wmcloud.org/wiki2 isn't a proper syntax for the wiki name. I'm
> almost sure I can live without it for now, but maybe it should be
> considered in the next versions of Patch Demo.
>
> I created a feature request about adding support for configuring the
> default content/interface language for wikis in a patch demo wiki
> farm. [0]
>
> I am not sure I understand the extension settings issue. Are you
> saying that you do not know how to find the dbname so you can add
> configuration that varies per wiki or something else entirely?
> Whatever your issue is I would encourage you to try and write a bug
> report or feature request as appropriate in Phabricator tagged with
> #catalyst. [1]
>
> [0]: https://phabricator.wikimedia.org/T412301
> [1]: https://phabricator.wikimedia.org/project/view/6782/
>
> Bryan
> --
> Bryan Davis                                        Wikimedia Foundation
> Principal Software Engineer                               Boise, ID USA
> [[m:User:BDavis (WMF)]]                                      irc: bd808
> _______________________________________________
> Wikitech-l mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
_______________________________________________
Wikitech-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

Reply via email to