0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-19 11:11:21 -05:00

🐛 Fix draw tools title translation

This commit is contained in:
mathieu.brunot 2019-02-18 00:16:44 +01:00
parent c4155c4c21
commit f365fd7f20
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0
2 changed files with 8 additions and 7 deletions
frontend/src/uxbox/main
locales
ui/workspace/sidebar

View file

@ -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."

View file

@ -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]]]))