Wizardist has uploaded a new change for review. https://gerrit.wikimedia.org/r/82118
Change subject: GENDER support in MediaWiki:wikibase-mylanguagefallbackchain-babel ...................................................................... GENDER support in MediaWiki:wikibase-mylanguagefallbackchain-babel Per request at https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Wikibase-mylanguagefallbackchain-babel/be-tarask Change-Id: Ie0b00637de68d8cd8ee2b2688b65767bbab8860b --- M repo/Wikibase.i18n.php M repo/includes/specials/SpecialMyLanguageFallbackChain.php 2 files changed, 7 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/18/82118/1 diff --git a/repo/Wikibase.i18n.php b/repo/Wikibase.i18n.php index ab6d7c1..c9f5dbd 100644 --- a/repo/Wikibase.i18n.php +++ b/repo/Wikibase.i18n.php @@ -233,7 +233,7 @@ 'wikibase-entitydata-text' => 'This page provides a linked data interface to entity values. Please provide the entity ID in the URL, using subpage syntax.', 'special-mylanguagefallbackchain' => 'My language fallback chain', 'wikibase-mylanguagefallbackchain-text' => 'The language fallback chain used to display entity labels for you is shown below.', - 'wikibase-mylanguagefallbackchain-babel' => 'You can edit it by putting <nowiki>{{#babel: }}</nowiki> on your [[Special:MyPage|user page]].', + 'wikibase-mylanguagefallbackchain-babel' => 'You can edit it by putting <nowiki>{{#babel: }}</nowiki> on {{GENDER:$1|your}} [[Special:MyPage|user page]].', 'wikibase-mylanguagefallbackchain-verbatim-item' => '$1 - $2', 'wikibase-mylanguagefallbackchain-converted-item' => '$1 - $2, converted from $3 - $4', @@ -943,7 +943,10 @@ 'special-mylanguagefallbackchain' => '{{doc-special|MyLanguageFallbackChain}} The special page display the language fallback chain used to display Wikibase data for current context.', 'wikibase-mylanguagefallbackchain-text' => 'Explanatory text shown on the special page.', - 'wikibase-mylanguagefallbackchain-babel' => 'More explanatory text shown on the special page. Only displayed when Extension:Babel is installed and the user is logged in.', + 'wikibase-mylanguagefallbackchain-babel' => 'More explanatory text shown on the special page. Only displayed when Extension:Babel is installed and the user is logged in. + +Parameters: +* $1 - User name for GENDER', 'wikibase-mylanguagefallbackchain-verbatim-item' => 'A "verbatim" (taken from database and displayed as-is) fallback chain item. Parameters: diff --git a/repo/includes/specials/SpecialMyLanguageFallbackChain.php b/repo/includes/specials/SpecialMyLanguageFallbackChain.php index 45f2e08..e5e0125 100644 --- a/repo/includes/specials/SpecialMyLanguageFallbackChain.php +++ b/repo/includes/specials/SpecialMyLanguageFallbackChain.php @@ -107,7 +107,8 @@ $this->getOutput()->addWikiMsg( 'wikibase-mylanguagefallbackchain-text' ); if ( class_exists( 'Babel' ) && !$this->getContext()->getUser()->isAnon() ) { - $this->getOutput()->addWikiMsg( 'wikibase-mylanguagefallbackchain-babel' ); + $this->getOutput()->addWikiMsg( 'wikibase-mylanguagefallbackchain-babel', + $this->getContext()->getUser()->getName() ); } $inLanguage = $this->getContext()->getLanguage()->getCode(); -- To view, visit https://gerrit.wikimedia.org/r/82118 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie0b00637de68d8cd8ee2b2688b65767bbab8860b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Wizardist <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
