Преглед на файлове

Merge pull request #4945 from DimDz/master

Added translations to Sort
Lauri Ojansivu преди 2 години
родител
ревизия
58cd17468c
променени са 2 файла, в които са добавени 6 реда и са изтрити 4 реда
  1. 4 4
      client/components/boards/boardHeader.jade
  2. 2 0
      imports/i18n/data/en.i18n.json

+ 4 - 4
client/components/boards/boardHeader.jade

@@ -39,9 +39,9 @@ template(name="boardHeaderBar")
             span {{_ watchLevel}}
             span {{_ watchLevel}}
           a.board-header-btn(title="{{_ 'sort-cards'}}" class="{{#if isSortActive }}emphasis{{else}} js-sort-cards {{/if}}")
           a.board-header-btn(title="{{_ 'sort-cards'}}" class="{{#if isSortActive }}emphasis{{else}} js-sort-cards {{/if}}")
             i.fa.fa-sort
             i.fa.fa-sort
-            span {{#if isSortActive }}{{_ 'Sort is on'}}{{else}}{{_ 'sort-cards'}}{{/if}}
+            span {{#if isSortActive }}{{_ 'sort-is-on'}}{{else}}{{_ 'sort-cards'}}{{/if}}
             if isSortActive
             if isSortActive
-              a.board-header-btn-close.js-sort-reset(title="Remove Sort")
+              a.board-header-btn-close.js-sort-reset(title="{{_ 'remove-sort'}}")
                 i.fa.fa-times-thin
                 i.fa.fa-times-thin
 
 
         else
         else
@@ -82,9 +82,9 @@ template(name="boardHeaderBar")
             span {{_ watchLevel}}
             span {{_ watchLevel}}
           a.board-header-btn(title="{{_ 'sort-cards'}}" class="{{#if isSortActive }}emphasis{{else}} js-sort-cards {{/if}}")
           a.board-header-btn(title="{{_ 'sort-cards'}}" class="{{#if isSortActive }}emphasis{{else}} js-sort-cards {{/if}}")
             i.fa.fa-sort
             i.fa.fa-sort
-            span {{#if isSortActive }}{{_ 'Sort is on'}}{{else}}{{_ 'sort-cards'}}{{/if}}
+            span {{#if isSortActive }}{{_ 'sort-is-on'}}{{else}}{{_ 'sort-cards'}}{{/if}}
             if isSortActive
             if isSortActive
-              a.board-header-btn-close.js-sort-reset(title="Remove Sort")
+              a.board-header-btn-close.js-sort-reset(title="{{_ 'remove-sort'}}")
                 i.fa.fa-times-thin
                 i.fa.fa-times-thin
 
 
         else
         else

+ 2 - 0
imports/i18n/data/en.i18n.json

@@ -1087,6 +1087,8 @@
   "label-names": "Label Names",
   "label-names": "Label Names",
   "archived-at": "archived at",
   "archived-at": "archived at",
   "sort-cards": "Sort Cards",
   "sort-cards": "Sort Cards",
+  "sort-is-on": "Sort is on",
+  "remove-sort": "Remove Sort",
   "cardsSortPopup-title": "Sort Cards",
   "cardsSortPopup-title": "Sort Cards",
   "due-date": "Due Date",
   "due-date": "Due Date",
   "server-error": "Server Error",
   "server-error": "Server Error",