Ananay has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/263185

Change subject: test
......................................................................

test

Change-Id: I415d624a209d93cf37176215c2cbd272a5db4b2d
---
M i18n/en.json
M resources/details/uw.DescriptionDetailsWidget.js
2 files changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard 
refs/changes/85/263185/1

diff --git a/i18n/en.json b/i18n/en.json
index e45198c..6e6c565 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -204,8 +204,8 @@
        "mwe-upwiz-error-signature-bad-chars": "Your signature contains symbols 
that are not allowed.\nPlease do not use wikitext or HTML here, just your 
username or real name.",
        "mwe-upwiz-error-blank": "This field is required.",
        "mwe-upwiz-error-nologin": "You must be <span 
class=\"plainlinks\">[{{fullurl:{{#Special:UserLogin}}|returnto=$1}} logged 
in]</span> to upload files.",
-       "mwe-upwiz-error-too-long": "This entry is too long.\nPlease make this 
entry shorter than $1 {{PLURAL:$1|character|characters}}.",
-       "mwe-upwiz-error-too-short": "This entry is too short.\nPlease make 
this entry longer than $1 {{PLURAL:$1|character|characters}}.",
+       "mwe-upwiz-error-too-long": "This entry is too long.\nPlease make this 
entry is at most $1 {{PLURAL:$1|character|characters}}.",
+       "mwe-upwiz-error-too-short": "This entry is too short.\nPlease make 
this entry is at least $1 {{PLURAL:$1|character|characters}}.",
        "mwe-upwiz-error-bad-descriptions": "There are problems with some of 
the descriptions.",
        "mwe-upwiz-error-bad-chars": "This entry contains symbols that are not 
allowed.\nPlease do not use wikitext or HTML here.",
        "mwe-upwiz-error-title-blacklisted": "This title contains some 
undesirable text. Please revise it.",
diff --git a/resources/details/uw.DescriptionDetailsWidget.js 
b/resources/details/uw.DescriptionDetailsWidget.js
index a5189b4..f867361 100644
--- a/resources/details/uw.DescriptionDetailsWidget.js
+++ b/resources/details/uw.DescriptionDetailsWidget.js
@@ -127,10 +127,10 @@
 
                if ( descriptionText.length !== 0 && descriptionText.length < 
minLength ) {
                        // Empty description is allowed
-                       errors.push( mw.message( 'mwe-upwiz-error-too-short', 
minLength - 1 ) );
+                       errors.push( mw.message( 'mwe-upwiz-error-too-short', 
minLength ) );
                }
                if ( descriptionText.length > maxLength ) {
-                       errors.push( mw.message( 'mwe-upwiz-error-too-long', 
maxLength + 1 ) );
+                       errors.push( mw.message( 'mwe-upwiz-error-too-long', 
maxLength ) );
                }
 
                return $.Deferred().resolve( errors ).promise();

-- 
To view, visit https://gerrit.wikimedia.org/r/263185
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I415d624a209d93cf37176215c2cbd272a5db4b2d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Ananay <i...@ananayarora.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to