Nikerabbit has uploaded a new change for review.
https://gerrit.wikimedia.org/r/67641
Change subject: Don't include suggestions in the source language for "in other
languages" section
......................................................................
Don't include suggestions in the source language for "in other languages"
section
Bug: 45435
Change-Id: Id8bcd001d220ea6d143d09c0e4fd356289da0194
---
M translationaids/InOtherLanguagesAid.php
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate
refs/changes/41/67641/1
diff --git a/translationaids/InOtherLanguagesAid.php
b/translationaids/InOtherLanguagesAid.php
index 62a795d..493efba 100644
--- a/translationaids/InOtherLanguagesAid.php
+++ b/translationaids/InOtherLanguagesAid.php
@@ -24,11 +24,17 @@
$translations = $this->getTranslations();
$code = $this->handle->getCode();
+ $sourceLanguage =
$this->handle->getGroup()->getSourceLanguage();
+
foreach ( $this->getFallbacks( $code ) as $fbcode ) {
if ( !isset( $translations[$fbcode] ) ) {
continue;
}
+ if ( $fbcode === $sourceLanguage ) {
+ continue;
+ }
+
$suggestions[] = array(
'language' => $fbcode,
'value' => $translations[$fbcode],
--
To view, visit https://gerrit.wikimedia.org/r/67641
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id8bcd001d220ea6d143d09c0e4fd356289da0194
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits