Fixing i18n filters in backlog

stable
Alejandro Alonso 2015-05-19 11:40:37 +02:00
parent a6192d98a4
commit 151abed164
3 changed files with 9 additions and 6 deletions

View File

@ -665,10 +665,10 @@ BacklogDirective = ($repo, $rootscope, $translate) ->
sidebar.toggleClass("active") sidebar.toggleClass("active")
target.toggleClass("active") target.toggleClass("active")
removeText = $translate.instant("BACKLOG.FILTERS.REMOVE") hideText = $translate.instant("BACKLOG.FILTERS.HIDE")
showText = $translate.instant("BACKLOG.FILTERS.SHOW") showText = $translate.instant("BACKLOG.FILTERS.SHOW")
toggleText(target.find(".text"), [removeText, showText]) toggleText(target.find(".text"), [hideText, showText])
if !sidebar.hasClass("active") if !sidebar.hasClass("active")
$ctrl.resetFilters() $ctrl.resetFilters()

View File

@ -735,6 +735,7 @@
"INCREMENT_CLIENT": "Incremented points by client requirements for sprint {{xval}} is {{yval}}" "INCREMENT_CLIENT": "Incremented points by client requirements for sprint {{xval}} is {{yval}}"
}, },
"TAGS": { "TAGS": {
"TOGGLE": "Toggle tags visibility",
"SHOW": "Show tags", "SHOW": "Show tags",
"HIDE": "Hide tags" "HIDE": "Hide tags"
}, },
@ -757,8 +758,10 @@
"POINTS_PER_SPRINT": "points /<br />sprint" "POINTS_PER_SPRINT": "points /<br />sprint"
}, },
"FILTERS": { "FILTERS": {
"TOGGLE": "Toggle filters visibility",
"TITLE": "Filters", "TITLE": "Filters",
"REMOVE": "Remove Filters", "REMOVE": "Remove Filters",
"HIDE": "Hide Filters",
"SHOW": "Show Filters", "SHOW": "Show Filters",
"FILTER_CATEGORY_STATUS": "Status", "FILTER_CATEGORY_STATUS": "Status",
"FILTER_CATEGORY_TAGS": "Tags" "FILTER_CATEGORY_TAGS": "Tags"

View File

@ -21,15 +21,15 @@ div.wrapper(tg-backlog, ng-controller="BacklogController as ctrl",
span.icon.icon-move span.icon.icon-move
span.text(translate="BACKLOG.MOVE_US_TO_CURRENT_SPRINT") span.text(translate="BACKLOG.MOVE_US_TO_CURRENT_SPRINT")
a.trans-button(href="", a.trans-button(href="",
title="{{'BACKLOG.SHOW_FILTERS' | translate}}", title="{{'BACKLOG.FILTERS.TOGGLE' | translate}}",
id="show-filters-button") id="show-filters-button")
span.icon.icon-filter span.icon.icon-filter
span.text(translate="BACKLOG.SHOW_FILTERS") Show Filters span.text(translate="BACKLOG.FILTERS.SHOW") Show Filters
a.trans-button(href="", a.trans-button(href="",
title="{{'BACKLOG.SHOW_TAGS' | translate}}", title="{{'BACKLOG.TAGS.TOGGLE' | translate}}",
id="show-tags") id="show-tags")
span.icon.icon-tag span.icon.icon-tag
span.text(translate="BACKLOG.SHOW_TAGS") span.text(translate="BACKLOG.TAGS.SHOW")
include ../includes/components/addnewus include ../includes/components/addnewus
section.backlog-table(ng-class="{'hidden': !visibleUserstories.length}") section.backlog-table(ng-class="{'hidden': !visibleUserstories.length}")