PranavK has uploaded a new change for review.
https://gerrit.wikimedia.org/r/262459
Change subject: Add PLURAL support to exif-pdf-pagesize
......................................................................
Add PLURAL support to exif-pdf-pagesize
Change-Id: If63c5fd300a9a219e7dc334f51cc76d2c0b5b413
---
M PdfHandler.image.php
M i18n/en.json
M i18n/qqq.json
3 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PdfHandler
refs/changes/59/262459/1
diff --git a/PdfHandler.image.php b/PdfHandler.image.php
index ea016e3..8e27c78 100644
--- a/PdfHandler.image.php
+++ b/PdfHandler.image.php
@@ -284,7 +284,7 @@
$pageSizeArray = array_keys( $pageSizes
);
if ( count( $pageSizeArray ) > 0 ) {
- $items['pdf-PageSize'] =
$pageSizeArray;
+ $items['pdf-PageSize', count(
$pageSizeArray )] = $pageSizeArray;
}
break;
}
diff --git a/i18n/en.json b/i18n/en.json
index 1e68720..fcb2f9b 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -12,5 +12,5 @@
"exif-pdf-producer": "Conversion program",
"exif-pdf-version": "Version of PDF format",
"exif-pdf-encrypted": "Encrypted",
- "exif-pdf-pagesize": "Page size"
+ "exif-pdf-pagesize": "Page {{PLURAL:$1|size|sizes}}"
}
diff --git a/i18n/qqq.json b/i18n/qqq.json
index ca8bb39..893635e 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -17,5 +17,5 @@
"exif-pdf-producer": "The label used in the metadata table at the
bottom of the file description page for the program used to convert this PDF
file into a PDF.\n\nThis is separate from the program used to create the
original file (Which is labeled by {{msg-mw|Exif-software}}).",
"exif-pdf-version": "Label for the version of the pdf file format in
the metadata table at the bottom of an image description page. Usually a number
between 1.2 and 1.6",
"exif-pdf-encrypted": "Label for field in metadata table at bottom of
an image description page to denote if the PDF file is encrypted. The value of
the field this references is either \"no\" (most common) or something like
\"yes (print:yes copy:no change:no addNotes:no)\"",
- "exif-pdf-pagesize": "Label for the field in the metadata table at the
bottom of an image description page to denote the size of the pages in the pdf.
If there is more than one size of page used in this document, each size is
listed once.\n{{Identical|Page size}}"
+ "exif-pdf-pagesize": "Label for the field in the metadata table at the
bottom of an image description page to denote the size of the pages in the pdf.
If there is more than one size of page used in this document, each size is
listed once.\n{{Identical|Page size}}\nParameter: $1 count of page sizes,
used for PLURAL support."
}
--
To view, visit https://gerrit.wikimedia.org/r/262459
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If63c5fd300a9a219e7dc334f51cc76d2c0b5b413
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PdfHandler
Gerrit-Branch: master
Gerrit-Owner: PranavK <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits