Page MenuHomePhabricator

Incomplete i18n for log entries
Open, LowPublic

Description

Currently, it seems that the names of the actions performed which abusefilter catches are hardcoded for log entries. See http://hi.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%B6%E0%A5%87%E0%A4%B7:%E0%A4%A6%E0%A5%81%E0%A4%B0%E0%A5%81%E0%A4%AA%E0%A4%AF%E0%A5%8B%E0%A4%97_%E0%A4%B2%E0%A5%89%E0%A4%97 for example. The entries contain the word "edit" which seems to be $4 in [[MediaWiki:Abusefilter-log-detailedentry-meta]]. However, there seems to be no i18n message at translatewiki.net for translating this.

http://translatewiki.net/wiki/Thread%3ASupport/About_MediaWiki%3ALogentry-abusefilter-hit%2Fhi may be relevant too.

Details

Reference
bz38753

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:05 AM
bzimport added projects: AbuseFilter, I18n.
bzimport set Reference to bz38753.
bzimport added a subscriber: Unknown Object (MLST).

Yes, those are the messages.
Note that this might not be the AbuseFilter's fault: the names of the actions don't seem to be translated anywhere in MediaWiki, only their descriptions are.
Look for instance at [[Special:ListGroupRights]] or even [[m:Special:GlobalGroupPermissions/steward]]. The difference is that they're usually alongside the translated description, but this may or not be fixable.

It's a bit like the URL parameters (for action= and also log action in Special:Log or group name in Special:ListUsers etc.), which can't be changed.

(In reply to comment #1)

Yes, those are the messages.
Note that this might not be the AbuseFilter's fault: the names of the actions
don't seem to be translated anywhere in MediaWiki, only their descriptions are.
Look for instance at [[Special:ListGroupRights]] or even
[[m:Special:GlobalGroupPermissions/steward]]. The difference is that they're
usually alongside the translated description, but this may or not be fixable.

It's a bit like the URL parameters (for action= and also log action in
Special:Log or group name in Special:ListUsers etc.), which can't be changed.

Even if it isn't the abusefilter's fault and the action names come from mediawiki, maybe it can wrap them in a translation function before showing? (if its not possible for them to be translated in mediawiki itself)

I'm not convinced. Those actions are the values that the "action" variable may take. Localizing them in filter syntax isn't feasible (new translation requires an update of all filters using the old one), so we'd have a non-localized name inside filters and a localised one in logs. My concern is that we would introduce a discrepancy which may cause some confusion. Anyway,the change itself wouldn't be hard, if we decide to go on.