Browse Source

Add a missing translation

Maxime Quandalle 9 years ago
parent
commit
54bc9d0dcb
2 changed files with 4 additions and 4 deletions
  1. 2 4
      client/components/lists/list.js
  2. 2 0
      i18n/en.i18n.json

+ 2 - 4
client/components/lists/list.js

@@ -38,10 +38,8 @@ BlazeComponent.extendComponent({
           const andNOthers = $cards.find('.js-minicard.is-checked').length - 1;
           if (andNOthers > 0) {
             helper.append($(Blaze.toHTML(HTML.DIV(
-              // XXX Super bad class name
-              {'class': 'and-n-other'},
-              // XXX Need to translate
-              `and ${andNOthers} other cards.`
+              { 'class': 'and-n-other' },
+              TAPi18n.__('and-n-other-card', { count: andNOthers })
             ))));
           }
         }

+ 2 - 0
i18n/en.i18n.json

@@ -26,6 +26,8 @@
     "admin": "Admin",
     "admin-desc": "Can view and edit cards, remove members, and change settings for the board.",
     "all-boards": "All boards",
+    "and-n-other-card": "And __count__ other card",
+    "and-n-other-card_plural": "And __count__ other cards",
     "archive": "Archive",
     "archive-all": "Archive All",
     "archive-board": "Archive Board",