Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 9507ea4

Browse files
committed
Change some phrases to use smart counts for pluralization.
1 parent 5bdf3ad commit 9507ea4

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

js/languages/en-US.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@
9494
"CategoryPlaceholder": "Enter category",
9595
"CategoryHelperText": "Categories are used to group and organize listing within your store.",
9696
"KeywordsPlaceholder": "Enter One or More Tags",
97-
"KeywordsHelperText": "Adding tags helps your listing to be discovered in the market. You can only have one of each tag, and a maximum of 10 tags, separated by commas or the enter key. Tags cannot be longer than %{maxTagChars} characters.",
97+
"KeywordsHelperText": "Adding tags helps your listing to be discovered in the market. You can only have one of each tag, and a maximum of 10 tags, separated by commas or the enter key.",
98+
"KeywordsHelperText2": "Tags cannot be longer than %{smart_count} character. |||| Tags cannot be longer than %{smart_count} characters.",
9899
"ExpirationDateHelperText": "Set a date for the listing to automatically be pulled from your store.",
99100
"ClearExpirationDate": "Clear Expiration Date",
100101
"ClearShippingLocations": "Clear All",
@@ -529,7 +530,7 @@
529530
"badSMTPAuthentication": "The username/password combination used failed.",
530531
"goodSMTPAuthentication": "You have successfully connected to the SMTP server.",
531532
"tagIsTooLongHeadline": "The tag is too long",
532-
"tagIsTooLongBody": "Tags cannot be more than %{maxTagChars} characters long."
533+
"tagIsTooLongBody": "Tags cannot be more than %{smart_count} character long. |||| Tags cannot be more than %{smart_count} characters long."
533534
},
534535
"pageConnectingMessages": {
535536
"listingConnect": "Connecting to listing ${listing}",

js/templates/itemEdit.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ <h5><%= polyglot.t('Discover') %></h5>
413413
</div>
414414
</div>
415415
<div class="flexRow">
416-
<p class="textOpacity50 helper-text marginTop8"><%= polyglot.t('KeywordsHelperText',
417-
{maxTagChars: ob.maxTagChars}) %></p>
416+
<p class="textOpacity50 helper-text marginTop8">
417+
<%= polyglot.t('KeywordsHelperText') %> <%= polyglot.t('KeywordsHelperText2', {smart_count: ob.maxTagChars}) %></p>
418418
</div>
419419
</div>
420420

js/views/itemEditVw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ module.exports = baseVw.extend({
217217
if(tag.length > self.maxTagChars) {
218218
app.simpleMessageModal.open({
219219
title: window.polyglot.t('errorMessages.tagIsTooLongHeadline'),
220-
message: window.polyglot.t('errorMessages.tagIsTooLongBody', {maxTagChars: self.maxTagChars})
220+
message: window.polyglot.t('errorMessages.tagIsTooLongBody', {smart_count: self.maxTagChars})
221221
});
222222
return false;
223223
}

0 commit comments

Comments
 (0)