Page MenuHomePhabricator

Filter messages by prefix
Closed, DeclinedPublic

Description

As on [[Special:AllMessages]], it would be useful to filter messages by prefix to easily find all related messages in a very big group or across groups without having to load thousands of messages.
Test case: WikiLove extension messages, user groups messages.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=24639

Details

Reference
bz32060

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 12:01 AM
bzimport set Reference to bz32060.
  • Bug 34416 has been marked as a duplicate of this bug. ***

As translator, I want to have a list of all messages with a common prefix within a big group or across all groups, to be able to review subsets of messages with similar characteristics, for instance all grouppage- messages added by all MediaWiki extensions.

Still marking LATER per Siebrand on the other bug.

Adding Pau to cc as I suppose that, when and if this will be considered worth pursuing, some design ideas will be needed.

https://translatewiki.net/wiki/Issues_and_features#Feature_requests also suggests «allow prefix on Special:LanguageStats to only show groups starting with IDs that start with the prefix» which seems of narrower use.

Switching from LATER to the second most relevant resolution for fear of information loss. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/65116

Closing as WONTFIX. We have message groups and search in the new design.

(In reply to comment #5)

Closing as WONTFIX. We have message groups and search in the new design.

Does search by prefix work? This user seems to say no. https://translatewiki.net/wiki/Thread:User_talk:Nike/Vanha_näkymä/reply_(2)

(In reply to comment #7)

Nikerabbit on
https://gerrit.wikimedia.org/r/#/c/94064/2/includes/specials/
SpecialAllmessages.php

It's possible but undocumented:
https://translatewiki.net/w/i.php?title=Special%3ASearchTranslations&query=messageid%3A%22MediaWiki%3ATitlematches%22

....

REOPENED: It is suggested to add this action as default search action in the GUI.

(In reply to comment #8)

REOPENED: It is suggested to add this action as default search action in the
GUI.

This is a scope change. The issue was closed "works for me" with a solution. Please open a new issue if there is a different request.

(In reply to comment #9)

This is a scope change. The issue was closed "works for me" with a solution.
Please open a new issue if there is a different request.

Well, comment 0 asks for a feature as similar as possible to Special:AllMessages; Special:SearchTranslations doesn't yet allow prefix searches, only exact matches.
There's no sharp line for what's "as similar as possible": the feature was previously deemed impossible; T. Gries seems to consider it not similar enough... Personally I consider this report abandoned.

I still do not know how to search, or how to limit results to show

  • all message texts of the extension "AJAXPoll"
  • language = German

This is a real request for help..

Can someone of you please tell me, how this is possible with Translatewiki? As someone who do not visit that wiki often, I have difficulties in understanding your search interface, sorry. In my view, and for me, it is not intuitive to use.

(In reply to comment #12)

I still do not know how to search, or how to limit results to show

  • all message texts of the extension "AJAXPoll"
  • language = German

For this sort of simpler thing, you can use https://translatewiki.net/wiki/Special:LanguageStats and click "expand" a sufficient number of times (after unselecting the checkboxes at top), or type in the search bar which appears when you click "All" in https://translatewiki.net/wiki/Special:Translate?tux=1 ; so you reach https://translatewiki.net/w/i.php?title=Special:Translate&task=reviewall&group=ext-ajaxpoll&language=de

(In reply to comment #13)

Next question:
I still do not know how to search, or how to limit results to show

  • all message texts of the extension "AJAXPoll"
  • language = German
  • starting with "ajaxpoll-view-"

Remark:
all (or almost any of) my message text keys start with the extension prefix "ajaxpoll-".

But is appears to be impossible - at least, I do not know how - to search them in Translatewiki. So "Filter messages by prefix" is still not solved!

I noticed, that the search filter function looks into the messages only, but does not work on the message _key_ texts.

Example:

I want to look up the German translateion of message with the key "etherpadlite-invalid-pad-url":

  • MediaWiki:Etherpadlite-invalid-pad-url/de

This cannot be searched.

  • input field = "invalid"

If you type "valid", you find the key, because "valid" is part of the original English key message ("$1" is not a valid Etherpad Lite URL or pad name.‎„$1“ ist keine gültige EtherPad-Lite-URL oder ein Editierfeldname.)

see also https://bugzilla.wikimedia.org/show_bug.cgi?id=34416 "Suggestion: add a prefix filter to the Translatewiki search interface to limit to a subset of messages starting with that prefix (similar to MediaWiki:Allmessages prefix search)"

(already marked as duplicate to this 32060)