Nemo bis has uploaded a new change for review. https://gerrit.wikimedia.org/r/94064
Change subject: Add direct links to translation interface on Special:AllMessages ...................................................................... Add direct links to translation interface on Special:AllMessages The local Special:AllMessages page is the first and most friendly place where average users will look for the message and try to translate it: when they find it, add a link to translatewiki.net so that they can start translating without searching for it from scratch. Special:SearchTranslations is the only target usable for this: the solr search is smart enough to present the most relevant results first and the translation interface is directly available in place. On the bright side, similar messages popping up from other projects or areas of the code will provide suggestions and help find other occurrences of translations which can similarly be improved. Change-Id: I8de3faba829c50cdc0f2d09726f738c585792e00 --- M includes/specials/SpecialAllmessages.php M languages/messages/MessagesEn.php M languages/messages/MessagesQqq.php M maintenance/language/messages.inc 4 files changed, 12 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/64/94064/1 diff --git a/includes/specials/SpecialAllmessages.php b/includes/specials/SpecialAllmessages.php index 35d6a0c..29878ff 100644 --- a/includes/specials/SpecialAllmessages.php +++ b/includes/specials/SpecialAllmessages.php @@ -345,6 +345,11 @@ case 'am_title' : $title = Title::makeTitle( NS_MEDIAWIKI, $value . $this->suffix ); $talk = Title::makeTitle( NS_MEDIAWIKI_TALK, $value . $this->suffix ); + $translation = Linker::makeExternalLink( + '//translatewiki.net/w/i.php?title=Special:SearchTranslations&group=mediawiki&grouppath=mediawiki&query=' + . wfUrlencode ( $this->msg ( $value )->inLanguage ( 'en' )->plain() ), + $this->msg( 'allmessages-filter-translate' )->text() + ); if ( $this->mCurrentRow->am_customised ) { $title = Linker::linkKnown( $title, $this->getLanguage()->lcfirst( $value ) ); @@ -369,7 +374,10 @@ ); } - return $title . ' ' . $this->msg( 'parentheses' )->rawParams( $talk )->escaped(); + return $title . ' ' + . $this->msg( 'parentheses' )->rawParams( $talk )->escaped() + . ' ' + . $this->msg( 'parentheses' )->rawParams( $translation )->escaped(); case 'am_default' : case 'am_actual' : diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 39f0b8a..4c3bd63 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -3576,6 +3576,7 @@ 'allmessages-prefix' => 'Filter by prefix:', 'allmessages-language' => 'Language:', 'allmessages-filter-submit' => 'Go', +'allmessages-filter-translate' => 'Translate', # Thumbnails 'thumbnail-more' => 'Enlarge', diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index aa22fab..03a731b 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -7138,6 +7138,7 @@ 'allmessages-filter-submit' => 'Used on [[Special:Allmessages]]. {{Identical|Go}}', +'allmessages-filter-translate' => 'Used on [[Special:Allmessages]]. Label for a link to translatewiki.net for a message to translate.', # Thumbnails 'thumbnail-more' => '[[Image:Yes.png|thumb|This:]] diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 1ac9500..2487377 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -2501,6 +2501,7 @@ 'allmessages-prefix', 'allmessages-language', 'allmessages-filter-submit', + 'allmessages-filter-translate', ), 'thumbnails' => array( 'thumbnail-more', -- To view, visit https://gerrit.wikimedia.org/r/94064 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8de3faba829c50cdc0f2d09726f738c585792e00 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Nemo bis <federicol...@tiscali.it> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits