From f365fd7f20990db4d2b8fc940de77146cf201b1a Mon Sep 17 00:00:00 2001 From: "mathieu.brunot" Date: Mon, 18 Feb 2019 00:16:44 +0100 Subject: [PATCH] :bug: Fix draw tools title translation --- frontend/src/uxbox/main/locales/en.cljs | 1 + .../uxbox/main/ui/workspace/sidebar/drawtools.cljs | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend/src/uxbox/main/locales/en.cljs b/frontend/src/uxbox/main/locales/en.cljs index 6429e942b..8c20bada4 100644 --- a/frontend/src/uxbox/main/locales/en.cljs +++ b/frontend/src/uxbox/main/locales/en.cljs @@ -46,6 +46,7 @@ "ds.help.rect" "Box (Ctrl + B)" "ds.help.circle" "Circle (Ctrl + E)" "ds.help.line" "Line (Ctrl + L)" + "ds.help.ruler" "Ruler" "auth.message.recovery-token-sent" "Password recovery link sent to your inbox." "auth.message.password-recovered" "Password successfully recovered." diff --git a/frontend/src/uxbox/main/ui/workspace/sidebar/drawtools.cljs b/frontend/src/uxbox/main/ui/workspace/sidebar/drawtools.cljs index aa1568c24..128ad9961 100644 --- a/frontend/src/uxbox/main/ui/workspace/sidebar/drawtools.cljs +++ b/frontend/src/uxbox/main/ui/workspace/sidebar/drawtools.cljs @@ -70,23 +70,23 @@ (def +draw-tools+ [{:icon i/box - :help (tr "ds.help.rect") + :help "ds.help.rect" :shape +draw-tool-rect+ :priority 1} {:icon i/circle - :help (tr "ds.help.circle") + :help "ds.help.circle" :shape +draw-tool-circle+ :priority 2} {:icon i/text - :help (tr "ds.help.text") + :help "ds.help.text" :shape +draw-tool-text+ :priority 4} {:icon i/curve - :help (tr "ds.help.path") + :help "ds.help.path" :shape +draw-tool-path+ :priority 5} {:icon i/pencil - :help (tr "ds.help.path") + :help "ds.help.path" :shape +draw-tool-curve+ :priority 6}]) @@ -116,13 +116,13 @@ (mx/doseq [[i props] (map-indexed vector tools)] (let [selected? (= drawing-tool (:shape props))] [:div.tool-btn.tooltip.tooltip-hover - {:alt (:help props) + {:alt (tr :help props) :class (when selected? "selected") :key (str i) :on-click (partial select-drawtool (:shape props))} (:icon props)])) [:div.tool-btn.tooltip.tooltip-hover - {:alt "Ruler" + {:alt (tr "ds.help.ruler") :on-click toggle-ruler :class (when (contains? flags :ruler) "selected")} i/ruler-tool]]]))