Page MenuHomePhabricator

No way to translate search results texts
Closed, ResolvedPublic

Description

Author: mgrojo

Description:
The search result texts cannot be tranlated by the usual MediaWiki: messages nor
LanguageXX.php file means.

Furthermore I haven't find an alternative way of doing it, e.g. I cannot find
the "Relevancy" text in the CVS lucene-search source code.


Version: unspecified
Severity: normal

Details

Reference
bz4487

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:00 PM
bzimport set Reference to bz4487.
bzimport added a subscriber: Unknown Object (MLST).

mgrojo wrote:

Sorry, I didn't test in a recent version. Now it is possible to translate these
messages in MediaWiki: namespace, but should be a way of tranlating the messages
for every MediaWiki installation, as it does in LanguageXX.php.

robchur wrote:

If there's a MediaWiki namespace message for it, then a default translation can
be provided in the LanguageXX.php files as of now.

avarab wrote:

(In reply to comment #2)

If there's a MediaWiki namespace message for it, then a default translation can
be provided in the LanguageXX.php files as of now.

Extension messages or general extension code doesn't belong in the main
distribution at all, because that kind of defeats the whole point of making them
extensions. The correct way to solve this is to modify the message cache
insertation functions to support things like

->addMessage( 'msg/lang', 'msg' );

This is probably a duplicate of some other bug...

mgrojo wrote:

Is there a way to translate those messages for every installation of MediaWiki
that uses those extensions? or do we currently have to translate the MediaWiki
messages in every site through the MediaWiki namespace?

Where is the CVS file to update for translations of each extension if existent?

jimmy.collins wrote:

reply to comment #4)

Where is the CVS file to update for translations of each extension if existent?

Here it is:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/LuceneSearch/LuceneSearch.i18n.php

[Merging "MediaWiki extensions/Lucene Search" into "Wikimedia/lucene-search2", see bug 46542. You can filter bugmail for: search-component-merge-20130326 ]