From 8a35ce5c58e8bcfdca227963b192eb237383ca08 Mon Sep 17 00:00:00 2001 From: mlorb Date: Mon, 9 Apr 2018 10:53:03 +0200 Subject: [PATCH] add locales --- app/assets/javascripts/sidebar.js.erb | 6 +++--- app/views/users/settings/_sidebar.html.erb | 4 ++-- config/locales/en.yml | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/sidebar.js.erb b/app/assets/javascripts/sidebar.js.erb index 5fbbb2c6a..2d2558fbf 100644 --- a/app/assets/javascripts/sidebar.js.erb +++ b/app/assets/javascripts/sidebar.js.erb @@ -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"); diff --git a/app/views/users/settings/_sidebar.html.erb b/app/views/users/settings/_sidebar.html.erb index de9c3c67a..d27b2be12 100644 --- a/app/views/users/settings/_sidebar.html.erb +++ b/app/views/users/settings/_sidebar.html.erb @@ -10,12 +10,12 @@
  • - -