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

View file

@ -10,12 +10,12 @@
<!-- Account -->
<li class="parent_li" >
<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"
aria-hidden="true"
style="<%= 'display: none;' if on_settings_account_page? %>"
></i>
<i title="Collapse this branch"
<i title="<%= t('sidebar.branch_collapse') %>"
class="glyphicon glyphicon-triangle-right expanded triangleDown"
aria-hidden="true"
style="<%= 'display: none;' unless on_settings_account_page? %>"

View file

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