jenkins-bot has submitted this change and it was merged. Change subject: Add PLURAL support to cargo-cargotables-totalrows. ......................................................................
Add PLURAL support to cargo-cargotables-totalrows. Thread: https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Cargo-cargotables-totalrows/ksh Change-Id: Id98090e9f65e5444967f4dd70c282126866b54cd --- M i18n/en.json M specials/CargoTables.php 2 files changed, 2 insertions(+), 2 deletions(-) Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/i18n/en.json b/i18n/en.json index c7877f8..0eca289 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -49,7 +49,7 @@ "cargo-cargotables-declaredby": "Declared by $1", "cargo-cargotables-attachedby": "attached by $1", "cargo-cargotables-tablenotfound": "Table \"$1\" not found in Cargo database.", - "cargo-cargotables-totalrows": "This table has $1 rows altogether.", + "cargo-cargotables-totalrows": "This table has '''$1''' {{PLURAL:$1|row|rows}} altogether.", "deletecargotable": "Delete Cargo table", "pagevalues": "Page values", "cargo-pagevaluesfor": "Page values for \"$1\"", diff --git a/specials/CargoTables.php b/specials/CargoTables.php index a58c0d6..5f541ef 100644 --- a/specials/CargoTables.php +++ b/specials/CargoTables.php @@ -39,7 +39,7 @@ return; } $row = $cdb->fetchRow( $res ); - $out->addWikiText( $this->msg( 'cargo-cargotables-totalrows', "'''" . $row[0] . "'''" ) . "\n" ); + $out->addWikiText( $this->msg( 'cargo-cargotables-totalrows' )->numParams( $row[0] )->text() . "\n" ); $sqlQuery = new CargoSQLQuery(); $sqlQuery->mTablesStr = $tableName; -- To view, visit https://gerrit.wikimedia.org/r/265496 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id98090e9f65e5444967f4dd70c282126866b54cd Gerrit-PatchSet: 4 Gerrit-Project: mediawiki/extensions/Cargo Gerrit-Branch: master Gerrit-Owner: IoannisKydonis <[email protected]> Gerrit-Reviewer: IoannisKydonis <[email protected]> Gerrit-Reviewer: Legoktm <[email protected]> Gerrit-Reviewer: Nemo bis <[email protected]> Gerrit-Reviewer: Siebrand <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
