Adrian Heine has uploaded a new change for review. https://gerrit.wikimedia.org/r/291878
Change subject: Allow all term languages in Special:New*, use combobox ...................................................................... Allow all term languages in Special:New*, use combobox Bug: T115792 Change-Id: Ia840cef432f37be8cfbfe777ab8524f8578e6baf --- M repo/includes/Specials/SpecialNewEntity.php 1 file changed, 4 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/78/291878/1 diff --git a/repo/includes/Specials/SpecialNewEntity.php b/repo/includes/Specials/SpecialNewEntity.php index ab33917..4307685 100644 --- a/repo/includes/Specials/SpecialNewEntity.php +++ b/repo/includes/Specials/SpecialNewEntity.php @@ -249,9 +249,10 @@ */ private function getLanguageOptions() { $names = Language::fetchLanguageNames( null, 'all' ); - $languageOptions = array(); + $languageOptions = []; foreach ( $this->languageCodes as $code ) { - $languageOptions[isset( $names[$code] ) ? $names[$code] : $code] = $code; + $languageName = isset( $names[$code] ) ? $names[$code] : $code; + $languageOptions["$languageName ($code)"] = $code; } return $languageOptions; } @@ -269,7 +270,7 @@ 'name' => 'lang', 'options' => $this->getLanguageOptions(), 'default' => $langCode, - 'type' => 'select', + 'type' => 'combobox', 'id' => 'wb-newentity-language', 'label-message' => 'wikibase-newentity-language' ), -- To view, visit https://gerrit.wikimedia.org/r/291878 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia840cef432f37be8cfbfe777ab8524f8578e6baf Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Adrian Heine <adrian.l...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits