summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/components/boards/boardBody.jade2
-rw-r--r--client/components/boards/boardHeader.jade8
-rw-r--r--client/components/boards/boardsList.jade25
-rw-r--r--client/components/cards/cardDetails.jade31
-rw-r--r--client/components/main/header.jade10
-rw-r--r--client/components/main/keyboardShortcuts.tpl.jade4
-rw-r--r--client/components/sidebar/sidebarArchives.jade10
-rw-r--r--client/components/sidebar/sidebarArchives.js4
-rw-r--r--client/components/sidebar/sidebarFilters.jade16
-rw-r--r--client/components/users/userAvatar.jade11
-rw-r--r--client/components/users/userHeader.jade14
-rw-r--r--client/lib/keyboard.js14
12 files changed, 74 insertions, 75 deletions
diff --git a/client/components/boards/boardBody.jade b/client/components/boards/boardBody.jade
index 0233231d..18673e89 100644
--- a/client/components/boards/boardBody.jade
+++ b/client/components/boards/boardBody.jade
@@ -4,7 +4,7 @@ template(name="board")
+boardBody
else
//- XXX We need a better error message in case the board has been archived
- +message(label="board-no-found")
+ +message(label="board-not-found")
else
+spinner
diff --git a/client/components/boards/boardHeader.jade b/client/components/boards/boardHeader.jade
index e3ca8074..94225730 100644
--- a/client/components/boards/boardHeader.jade
+++ b/client/components/boards/boardHeader.jade
@@ -43,9 +43,9 @@ template(name="headerBoard")
template(name="boardMenuPopup")
ul.pop-over-list
- li: a.js-open-archives Archived elements
+ li: a.js-open-archives {{_ 'archived-items'}}
if currentUser.isBoardAdmin
- li: a.js-change-board-color Change color
+ li: a.js-change-board-color {{_ 'board-change-color'}}
//-
XXX Language should be handled by sandstorm, but for now display a
language selection link in the board menu. This link is normally present
@@ -56,7 +56,7 @@ template(name="boardMenuPopup")
if currentUser.isBoardAdmin
hr
ul.pop-over-list
- li: a.js-archive-board Archive Board…
+ li: a.js-archive-board {{_ 'archive-board'}}
template(name="boardVisibilityList")
ul.pop-over-list
@@ -113,7 +113,7 @@ template(name="boardChangeTitlePopup")
form
label
| {{_ 'title'}}
- input.js-board-name(type="text" value="{{title}}" autofocus)
+ input.js-board-name(type="text" value=title autofocus)
input.primary.wide(type="submit" value="{{_ 'rename'}}")
template(name="archiveBoardPopup")
diff --git a/client/components/boards/boardsList.jade b/client/components/boards/boardsList.jade
index 4a73ed48..11333eee 100644
--- a/client/components/boards/boardsList.jade
+++ b/client/components/boards/boardsList.jade
@@ -1,16 +1,13 @@
template(name="boardList")
.wrapper
- if boards.count
- ul.board-list.clearfix
- each boards
- li(class="{{#if isStarred}}starred{{/if}}" class=colorClass)
- a.js-open-board(href="{{pathFor 'board' id=_id slug=slug}}")
- span.details
- span.board-list-item-name= title
- i.fa.js-star-board(
- class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
- title="{{_ 'star-board-title'}}")
- else
- ul.board-list.clearfix
- li.js-add-board
- a.label {{_ 'add-board'}}
+ ul.board-list.clearfix
+ each boards
+ li(class="{{#if isStarred}}starred{{/if}}" class=colorClass)
+ a.js-open-board(href="{{pathFor 'board' id=_id slug=slug}}")
+ span.details
+ span.board-list-item-name= title
+ i.fa.js-star-board(
+ class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
+ title="{{_ 'star-board-title'}}")
+ li.js-add-board
+ a.label {{_ 'add-board'}}
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade
index 4cd851e0..24a2bd90 100644
--- a/client/components/cards/cardDetails.jade
+++ b/client/components/cards/cardDetails.jade
@@ -14,26 +14,29 @@ template(name="cardDetails")
class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}")
= title
+ if archived
+ p.warning {{_ 'card-archived'}}
+
.card-details-items
.card-details-item.card-details-item-members
h3.card-details-item-title {{_ 'members'}}
each members
+userAvatar(userId=this cardId=../_id)
| {{! XXX Hack to hide syntaxic coloration /// }}
- a.member.add-member.card-details-item-add-button.js-add-members
+ a.member.add-member.card-details-item-add-button.js-add-members(title="{{_ 'card-members-title'}}")
i.fa.fa-plus
.card-details-item.card-details-item-labels
h3.card-details-item-title {{_ 'labels'}}
- a.js-add-labels
+ a.js-add-labels(title="{{_ 'card-labels-title'}}")
each labels
span.card-label(class="card-label-{{color}}" title=name)= name
- a.card-label.add-label.js-add-labels
+ a.card-label.add-label.js-add-labels(title="{{_ 'card-labels-title'}}")
i.fa.fa-plus
//- XXX We should use "editable" to avoid repetiting ourselves
if currentUser.isBoardMember
- h3.card-details-item-title Description
+ h3.card-details-item-title {{_ 'description'}}
+inlinedCardDescription(classNames="card-description js-card-description")
+editor(autofocus=true)
| {{getUnsavedValue 'cardDescription' _id description}}
@@ -49,12 +52,12 @@ template(name="cardDetails")
| {{_ 'edit'}}
if (hasUnsavedValue 'cardDescription' _id)
p.quiet
- | You have an unsaved description.
- a.js-open-inlined-form View it
+ | {{_ 'unsaved-description'}}
+ a.js-open-inlined-form {{_ 'view-it'}}
= ' - '
- a.js-close-inlined-form Discard
+ a.js-close-inlined-form {{_ 'discard'}}
else if description
- h3.card-details-item-title Description
+ h3.card-details-item-title {{_ 'description'}}
+viewer
= description
if attachments.count
@@ -74,16 +77,16 @@ template(name="cardDetails")
template(name="cardDetailsActionsPopup")
ul.pop-over-list
- li: a.js-members Edit Members…
- li: a.js-labels Edit Labels…
+ li: a.js-members {{_ 'card-edit-members'}}
+ li: a.js-labels {{_ 'card-edit-labels'}}
unless isSandstorm
- li: a.js-attachments Edit Attachments…
+ li: a.js-attachments {{_ 'card-edit-attachments'}}
hr
ul.pop-over-list
- li: a.js-move-card Move card
+ li: a.js-move-card {{_ 'moveCardPopup-title'}}
unless archived
- li: a.js-archive Archive Card
- li: a.js-more More
+ li: a.js-archive {{_ 'archive-card'}}
+ li: a.js-more {{_ 'cardMorePopup-title'}}
template(name="moveCardPopup")
+boardLists
diff --git a/client/components/main/header.jade b/client/components/main/header.jade
index 71250aae..192e7321 100644
--- a/client/components/main/header.jade
+++ b/client/components/main/header.jade
@@ -12,14 +12,14 @@ template(name="header")
li
a(href="{{pathFor 'home'}}")
span.fa.fa-home
- | All boards
+ | {{_ 'all-boards'}}
each currentUser.starredBoards
li.separator -
li(class="{{#if $.Session.equals 'currentBoard' _id}}current{{/if}}")
a(href="{{pathFor 'board' id=_id slug=slug}}")
= title
else
- li.current Star a board to add a shortcut in this bar.
+ li.current {{_ 'quick-access-description'}}
li
a.js-create-board
@@ -45,13 +45,13 @@ template(name="header")
.wekan-logo
img(src="/wekan-logo-header.png" alt="Wekan")
else
- a.wekan-logo(href="{{pathFor 'home'}}")
+ a.wekan-logo(href="{{pathFor 'home'}}" title="{{_ 'header-logo-title'}}")
img(src="/wekan-logo-header.png" alt="Wekan")
template(name="headerTitle")
- h1 My Boards
+ h1 {{_ 'my-boards'}}
.board-header-btns.right
a.board-header-btn.js-open-archived-board
i.fa.fa-archive
- span Archives
+ span {{_ 'archives'}}
diff --git a/client/components/main/keyboardShortcuts.tpl.jade b/client/components/main/keyboardShortcuts.tpl.jade
index d10068ed..5b5dae8b 100644
--- a/client/components/main/keyboardShortcuts.tpl.jade
+++ b/client/components/main/keyboardShortcuts.tpl.jade
@@ -1,11 +1,11 @@
.wrapper.shortcuts-list
h2
i.fa.fa-keyboard-o
- | Keyboard shortcuts
+ | {{_ 'keyboard-shortcuts'}}
each mapping
.shortcuts-list-item
.shortcuts-list-item-keys
each keys
kbd= this
- .shortcuts-list-item-action= action
+ .shortcuts-list-item-action {{_ action}}
diff --git a/client/components/sidebar/sidebarArchives.jade b/client/components/sidebar/sidebarArchives.jade
index fdfd3798..aa14fc30 100644
--- a/client/components/sidebar/sidebarArchives.jade
+++ b/client/components/sidebar/sidebarArchives.jade
@@ -7,13 +7,13 @@ template(name="archivesSidebar")
+minicard(this)
if currentUser.isBoardMember
p.quiet
- a.js-restore-card Restore
+ a.js-restore-card {{_ 'restore'}}
| -
- a.js-delete-card Delete
+ a.js-delete-card {{_ 'delete'}}
if cardIsInArchivedList
- p.quiet.small (warning: this card is in an archived list)
+ p.quiet.small ({{_ 'warn-list-archived'}})
else
- p.no-items-message No archived cards.
+ p.no-items-message {{_ 'no-archived-cards'}}
+tabContent(slug="lists")
ul.archived-lists
@@ -24,4 +24,4 @@ template(name="archivesSidebar")
i.fa.fa-undo
= title
else
- li.no-items-message No archived lists.
+ li.no-items-message {{_ 'no-archived-lists'}}
diff --git a/client/components/sidebar/sidebarArchives.js b/client/components/sidebar/sidebarArchives.js
index dd989ca3..4e44f3f4 100644
--- a/client/components/sidebar/sidebarArchives.js
+++ b/client/components/sidebar/sidebarArchives.js
@@ -5,8 +5,8 @@ BlazeComponent.extendComponent({
tabs: function() {
return [
- { name: 'Cards', slug: 'cards' },
- { name: 'Lists', slug: 'lists' }
+ { name: TAPi18n.__('cards'), slug: 'cards' },
+ { name: TAPi18n.__('lists'), slug: 'lists' }
]
},
diff --git a/client/components/sidebar/sidebarFilters.jade b/client/components/sidebar/sidebarFilters.jade
index c777d724..26e49aba 100644
--- a/client/components/sidebar/sidebarFilters.jade
+++ b/client/components/sidebar/sidebarFilters.jade
@@ -36,7 +36,7 @@ template(name="filterSidebar")
span {{_ 'filter-clear'}}
a.sidebar-btn.js-filter-to-selection
i.fa.fa-check-square-o
- span Filter to selection
+ span {{_ 'filter-to-selection'}}
template(name="multiselectionSidebar")
ul.sidebar-list
@@ -71,14 +71,14 @@ template(name="multiselectionSidebar")
hr
a.sidebar-btn.js-archive-selection
i.fa.fa-archive
- span Archive selection
+ span {{_ 'archive-selection'}}
template(name="disambiguateMultiLabelPopup")
- p What do you want to do?
- button.wide.js-remove-label Remove the label
- button.wide.js-add-label Add the label
+ p {{_ 'what-to-do'}}
+ button.wide.js-remove-label Remove {{_ 'remove-label'}}
+ button.wide.js-add-label Add {{_ 'add-label'}}
template(name="disambiguateMultiMemberPopup")
- p What do you want to do?
- button.wide.js-unassign-member Unassign member
- button.wide.js-assign-member Assign member
+ p {{_ 'what-to-do'}}
+ button.wide.js-unassign-member {{_ 'unassign-member'}}
+ button.wide.js-assign-member {{_ 'assign-member'}}
diff --git a/client/components/users/userAvatar.jade b/client/components/users/userAvatar.jade
index 9a92db57..5a3398cd 100644
--- a/client/components/users/userAvatar.jade
+++ b/client/components/users/userAvatar.jade
@@ -43,13 +43,12 @@ template(name="changeAvatarPopup")
li: a.js-select-avatar
.member
img.avatar.avatar-image(src="{{url avatarUrlOptions}}")
- | Uploaded avatar
+ | {{_ 'uploaded-avatar'}}
if isSelected
i.fa.fa-check
p.sub-name
unless isSelected
- a.js-delete-avatar
- | Delete
+ a.js-delete-avatar {{_ 'delete'}}
| -
= original.name
li: a.js-select-initials
@@ -58,11 +57,11 @@ template(name="changeAvatarPopup")
| Initials
if noAvatarUrl
i.fa.fa-check
- p.sub-name Default avatar
+ p.sub-name {{_ 'default-avatar'}}
input.hide.js-upload-avatar-input(accept="image/*;capture=camera" type="file")
button.full.js-upload-avatar
i.fa.fa-upload
- | Upload an avatar
+ | {{_ 'upload-avatar'}}
template(name="cardMemberPopup")
.board-member-menu
@@ -77,4 +76,4 @@ template(name="cardMemberPopup")
if $eq currentUser._id user._id
with currentUser
- li: a.js-edit-profile Edit Profile
+ li: a.js-edit-profile {{_ 'edit-profile'}}
diff --git a/client/components/users/userHeader.jade b/client/components/users/userHeader.jade
index 4a447897..3fc25c8a 100644
--- a/client/components/users/userHeader.jade
+++ b/client/components/users/userHeader.jade
@@ -12,10 +12,10 @@ template(name="headerUserBar")
template(name="memberMenuPopup")
ul.pop-over-list
with currentUser
- li: a.js-edit-profile Edit Profile…
- li: a.js-change-avatar Change Avatar…
- li: a.js-change-password Change Password…
- li: a.js-change-language Change Language…
+ li: a.js-edit-profile {{_ 'edit-profile'}}
+ li: a.js-change-avatar {{_ 'edit-avatar'}}
+ li: a.js-change-password {{_ 'changePasswordPopup-title'}}
+ li: a.js-change-language {{_ 'changeLanguagePopup-title'}}
hr
ul.pop-over-list
li: a.js-logout {{_ 'log-out'}}
@@ -23,13 +23,13 @@ template(name="memberMenuPopup")
template(name="editProfilePopup")
form
label
- | {{_ "fullname"}}
+ | {{_ 'fullname'}}
input.js-profile-fullname(type="text" value=profile.fullname autofocus)
label
- | {{_ "username"}}
+ | {{_ 'username'}}
input.js-profile-username(type="text" value=username)
label
- | Initials
+ | {{_ 'initials'}}
input.js-profile-initials(type="text" value=profile.initials)
input.primary.wide(type="submit" value="{{_ 'save'}}")
diff --git a/client/lib/keyboard.js b/client/lib/keyboard.js
index fa1747e3..2b327b33 100644
--- a/client/lib/keyboard.js
+++ b/client/lib/keyboard.js
@@ -39,24 +39,24 @@ Mousetrap.bind(['down', 'up'], (evt, key) => {
Template.keyboardShortcuts.helpers({
mapping: [{
keys: ['W'],
- action: 'Toogle Board Sidebar'
+ action: 'shortcut-toogle-sidebar'
}, {
keys: ['Q'],
- action: 'Filter my cards'
+ action: 'shortcut-filter-my-cards'
}, {
keys: ['X'],
- action: 'Clear all filters'
+ action: 'shortcut-clear-filters'
}, {
keys: ['?'],
- action: 'Bring up this shortcuts list'
+ action: 'shortcut-show-shortcuts'
}, {
keys: ['ESC'],
- action: 'Close Dialog'
+ action: 'shortcut-close-dialog'
}, {
keys: ['@'],
- action: 'Autocomplete members'
+ action: 'shortcut-autocomplete-members'
}, {
keys: [':'],
- action: 'Autocomplete emojies'
+ action: 'shortcut-autocomplete-emojies'
}]
});