Page MenuHomePhabricator

Incomplete i18n for log entries in CheckUser
Open, NormalPublic

Description

Hi,

In "get edits" there are localized messages which are not translated into one's user preferences and would be awesome if they were. An example:

(Registros) . . 00:00 . . Example user (Discusión | contribuciones | bloquear) <log action not translated>

The <log action not translated> message appears in the local wiki language.


Version: unspecified
Severity: normal

Details

Reference
bz39013

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 12:55 AM
bzimport added projects: CheckUser, I18n.
bzimport set Reference to bz39013.
bzimport added a subscriber: Unknown Object (MLST).

To clarify, that log message is localized in MediaWiki because if we go to the Special:Log page it appears localized, but it is not in the CU output. Regards.

Krenair added a comment.EditedFeb 7 2016, 6:35 AM

Yeah, I think these are just stored as raw content-language text in the cu_changes.cuc_actiontext field in the DB. E.g. "was automatically created", "was created", etc.
I imagine this is more of a problem for stewards than local checkusers.

We do other silly-looking things with that field, such as this from ApiQueryCheckUser:

					if ( $row->cuc_actiontext ) {
						$edit['summary'] = $row->cuc_actiontext;
					} elseif ( $row->cuc_comment ) {
						$edit['summary'] = $row->cuc_comment;
					}
Restricted Application added subscribers: JEumerus, Aklapper. · View Herald TranscriptFeb 7 2016, 6:35 AM
Glaisher added a subscriber: Glaisher.

We'd need the different table fields for getting this done cleanly.