[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wikitech-l
Subject:    [Wikitech-l] Re: Enabling translating RCFeed log entry messages(IRC log entry messages)
From:       Niklas_Laxström <niklas.laxstrom () gmail ! com>
Date:       2021-09-24 6:41:29
Message-ID: CAAVd=jZmAboj7P2ZWN7R=RcNXYdoTP21xp5JR+ZHC7pfh2xV1g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Messages like "1movedto2" are preserved for compatibility reasons and
should not be used. Long time ago they were used on Special:Log (and the
non-special pages before them). The problem with them is that they are not
full sentences, so translating them into other languages correctly is not
possible. 10 years ago I rewrote the log formatting
<https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/4ac56c2466594875a0bee5086b4028dc53e6753b>
 code to allow using full sentences. It uses messages of the format
logentry-*-*. However, changing the messages in the IRC output would have
been breaking change for all bots parsing that output, so the feed system
was intentionally changed to use the legacy messages and new translations
for the legacy messages were disabled.

The way forward would be to decouple the formatting so that you can choose
to use the new messages in the output.
  -Niklas

to 23. syysk. 2021 klo 22.01 lens0021 lens0021 (lorentz0021@gmail.com)
kirjoitti:
> 
> TLDR: I don't think the system messages for IRC are just for IRC. So I
hope to change it.
> 
> Hi,
> I am an extension developer and I am recently developing an extension[1]
that provides a custom RCFeedEngine and an RCFeedFormatter. The purpose of
the extension is to stream the recent changes in a wiki to a given Discord
webhook.*
> 
> The RC feed engines send messages in a freely configurable format to an
engine set in $wgRCEngines[2] and every RC log entry has a system message
for RC feed output. For instance, logs for moving a page have a message
named "1movedto2" which is represented "moved [[$1]] to [[$2]]" in English.
> 
> Disappointingly, I have found [[MediaWiki:1movedto2/qqq]] and similar
messages on translatewiki include {{ignored}} template that says "This
message is ignored on export for MediaWiki. Translating it is a waste of
your effort!" and it seems to be true. The main cause of this is probably
that the messages are only for irc.wikimedia.org and irc.wikimedia.org will
be replaced with EventStreams? I couldn't find the exact reason.
> 
> In my opinion, the log entry messages are not just for IRC. IRC is an
implementation of RCFeed and RCFeed is a general interface and can be
extended in many ways as even the core includes multiple RCFeedEngines. So,
if I'm not wrong, I'd like to create a ticket for enabling translation and
request your opinions.
> 
> Regards.
> -User:Lens0021
> 
> * There are a few extensions with a similar purpose. But the extensions
are not RCFeedEngines and define their own system messages and use them
instead of using the log entry messages.
> 
> ---
> [1] https://www.mediawiki.org/wiki/Extension:DiscordRCFeed
> [2] https://www.mediawiki.org/wiki/Manual:$wgRCEngines
> _______________________________________________
> Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
> To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
> 
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/


[Attachment #5 (text/html)]

<div dir="ltr">Messages like &quot;1movedto2&quot; are preserved for compatibility \
reasons and should not be used. Long time ago they were used on Special:Log (and the \
non-special pages before them). The problem with them is that they are not full \
sentences, so translating them into other languages correctly is not possible. 10 \
years ago I <a href="https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/4ac56c2466594875a0bee5086b4028dc53e6753b">rewrote \
the log formatting</a> code to allow using full sentences. It uses messages of the \
format logentry-*-*. However, changing the messages in the IRC output would have been \
breaking change for all bots parsing that output, so the feed system was \
intentionally changed to use the legacy messages and new translations for the legacy \
messages were disabled.<div><br></div><div>The way forward would be to decouple  the \
formatting so that you can choose to use the new messages in the output.</div><div>   \
-Niklas<br><div><br>to 23. syysk. 2021 klo 22.01 lens0021 lens0021 (<a \
href="mailto:lorentz0021@gmail.com">lorentz0021@gmail.com</a>) \
kirjoitti:<br>&gt;<br>&gt; TLDR: I don&#39;t think the system messages for IRC are \
just for IRC. So I hope to change it.<br>&gt;<br>&gt; Hi,<br>&gt; I am an extension \
developer and I am recently developing an extension[1] that provides a custom \
RCFeedEngine and an RCFeedFormatter. The purpose of the extension is to stream the \
recent changes in a wiki to a given Discord webhook.*<br>&gt;<br>&gt; The RC feed \
engines send messages in a freely configurable format to an engine set in \
$wgRCEngines[2] and every RC log entry has a system message for RC feed output. For \
instance, logs for moving a page have a message named &quot;1movedto2&quot; which is \
represented &quot;moved [[$1]] to [[$2]]&quot; in English.<br>&gt;<br>&gt; \
Disappointingly, I have found [[MediaWiki:1movedto2/qqq]] and similar messages on \
translatewiki include {{ignored}} template that says &quot;This message is ignored on \
export for MediaWiki. Translating it is a waste of your effort!&quot; and it seems to \
be true. The main cause of this is probably that the messages are only for <a \
href="http://irc.wikimedia.org">irc.wikimedia.org</a> and <a \
href="http://irc.wikimedia.org">irc.wikimedia.org</a> will be replaced with \
EventStreams? I couldn&#39;t find the exact reason.<br>&gt;<br>&gt; In my opinion, \
the log entry messages are not just for IRC. IRC is an implementation of RCFeed and \
RCFeed is a general interface and can be extended in many ways as even the core \
includes multiple RCFeedEngines. So, if I&#39;m not wrong, I&#39;d like to create a \
ticket for enabling translation and request your opinions.<br>&gt;<br>&gt; \
Regards.<br>&gt; -User:Lens0021<br>&gt;<br>&gt; * There are a few extensions with a \
similar purpose. But the extensions are not RCFeedEngines and define their own system \
messages and use them instead of using the log entry messages.<br>&gt;<br>&gt; \
---<br>&gt; [1] <a href="https://www.mediawiki.org/wiki/Extension:DiscordRCFeed">https://www.mediawiki.org/wiki/Extension:DiscordRCFeed</a><br>&gt; \
[2] <a href="https://www.mediawiki.org/wiki/Manual:$wgRCEngines">https://www.mediawiki.org/wiki/Manual:$wgRCEngines</a><br>&gt; \
_______________________________________________<br>&gt; Wikitech-l mailing list -- <a \
href="mailto:wikitech-l@lists.wikimedia.org">wikitech-l@lists.wikimedia.org</a><br>&gt; \
To unsubscribe send an email to <a \
href="mailto:wikitech-l-leave@lists.wikimedia.org">wikitech-l-leave@lists.wikimedia.org</a><br>&gt; \
<a href="https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/"> \
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/</a></div></div></div>




_______________________________________________
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic