add locales

This commit is contained in:
mlorb 2018-04-09 10:53:03 +02:00
parent 80fe1dd73b
commit 8a35ce5c58
3 changed files with 7 additions and 5 deletions

View file

@ -128,7 +128,7 @@ function setupSidebarTree() {
} }
el el
.find(" > span i") .find(" > span i")
.attr("title", "Expand this branch") .attr("title", I18n.t('sidebar.branch_expand'))
.removeClass("expanded"); .removeClass("expanded");
} else { } else {
if (animate) { if (animate) {
@ -138,7 +138,7 @@ function setupSidebarTree() {
} }
el el
.find(" > span i") .find(" > span i")
.attr("title", "Collapse this branch") .attr("title", I18n.t('sidebar.branch_collapse'))
.addClass("expanded"); .addClass("expanded");
} }
} }
@ -147,7 +147,7 @@ function setupSidebarTree() {
$(".tree li:has(ul)") $(".tree li:has(ul)")
.addClass("parent_li") .addClass("parent_li")
.find(" > span i") .find(" > span i")
.attr("title", "Collapse this branch"); .attr("title", I18n.t('sidebar.branch_collapse'));
$(".tree li.parent_li ") $(".tree li.parent_li ")
.find("> span i") .find("> span i")
.addClass("glyphicon glyphicon-triangle-right expanded"); .addClass("glyphicon glyphicon-triangle-right expanded");

View file

@ -10,12 +10,12 @@
<!-- Account --> <!-- Account -->
<li class="parent_li" > <li class="parent_li" >
<span class="tree-link line-wrap no-indent"> <span class="tree-link line-wrap no-indent">
<i title="Expand this branch" <i title="<%= t('sidebar.branch_expand') %>"
class="glyphicon glyphicon-triangle-right triangleRight" class="glyphicon glyphicon-triangle-right triangleRight"
aria-hidden="true" aria-hidden="true"
style="<%= 'display: none;' if on_settings_account_page? %>" style="<%= 'display: none;' if on_settings_account_page? %>"
></i> ></i>
<i title="Collapse this branch" <i title="<%= t('sidebar.branch_collapse') %>"
class="glyphicon glyphicon-triangle-right expanded triangleDown" class="glyphicon glyphicon-triangle-right expanded triangleDown"
aria-hidden="true" aria-hidden="true"
style="<%= 'display: none;' unless on_settings_account_page? %>" style="<%= 'display: none;' unless on_settings_account_page? %>"

View file

@ -111,6 +111,8 @@ en:
sidebar: sidebar:
title: "Navigation" title: "Navigation"
branch_expand: "Expand this branch"
branch_collapse: "Collapse this branch"
no_module_group: "No workflow" no_module_group: "No workflow"
projects: projects:
all: "All Projects" all: "All Projects"