Translate the label colors

This commit is contained in:
Maxime Quandalle 2015-10-15 00:52:32 +02:00
parent 944a1065d3
commit 15ebfa63c6
4 changed files with 17 additions and 3 deletions

View file

@ -87,8 +87,8 @@ mongo-livedata@1.0.9
mousetrap:mousetrap@1.4.6_1
mquandalle:autofocus@1.0.0
mquandalle:collection-mutations@0.1.0
mquandalle:jade@0.4.3_1
mquandalle:jade-compiler@0.4.3
mquandalle:jade@0.4.4
mquandalle:jade-compiler@0.4.4
mquandalle:jquery-textcomplete@0.8.0_1
mquandalle:jquery-ui-drag-drop-sort@0.1.0
mquandalle:moment@1.0.0

View file

@ -13,7 +13,7 @@ template(name="filterSidebar")
if name
= name
else
span.quiet {{_ "label-default" color}}
span.quiet {{_ "label-default" (_ (concat "color-" color))}}
if Filter.labelIds.isSelected _id
i.fa.fa-check
hr

View file

@ -13,3 +13,7 @@ Blaze.registerHelper('currentCard', () => {
});
Blaze.registerHelper('getUser', (userId) => Users.findOne(userId));
UI.registerHelper('concat', function (...args) {
return Array.prototype.slice.call(args, 0, -1).join('');
});

View file

@ -90,6 +90,16 @@
"close": "Close",
"close-board": "Close Board",
"close-board-pop": "You can re-open the board by clicking the “Boards” menu from the header, selecting “View Closed Boards”, finding the board and clicking “Re-open”.",
"color-green": "green",
"color-yellow": "yellow",
"color-orange": "orange",
"color-red": "red",
"color-purple": "purple",
"color-blue": "blue",
"color-sky": "sky",
"color-lime": "lime",
"color-pink": "pink",
"color-black": "black",
"comment": "Comment",
"comment-placeholder": "Write a comment",
"computer": "Computer",