mirror of
https://github.com/penpot/penpot.git
synced 2025-05-22 13:26:43 +02:00
🐛 Fix draw tools title translation
This commit is contained in:
parent
c4155c4c21
commit
f365fd7f20
2 changed files with 8 additions and 7 deletions
|
@ -46,6 +46,7 @@
|
||||||
"ds.help.rect" "Box (Ctrl + B)"
|
"ds.help.rect" "Box (Ctrl + B)"
|
||||||
"ds.help.circle" "Circle (Ctrl + E)"
|
"ds.help.circle" "Circle (Ctrl + E)"
|
||||||
"ds.help.line" "Line (Ctrl + L)"
|
"ds.help.line" "Line (Ctrl + L)"
|
||||||
|
"ds.help.ruler" "Ruler"
|
||||||
|
|
||||||
"auth.message.recovery-token-sent" "Password recovery link sent to your inbox."
|
"auth.message.recovery-token-sent" "Password recovery link sent to your inbox."
|
||||||
"auth.message.password-recovered" "Password successfully recovered."
|
"auth.message.password-recovered" "Password successfully recovered."
|
||||||
|
|
|
@ -70,23 +70,23 @@
|
||||||
|
|
||||||
(def +draw-tools+
|
(def +draw-tools+
|
||||||
[{:icon i/box
|
[{:icon i/box
|
||||||
:help (tr "ds.help.rect")
|
:help "ds.help.rect"
|
||||||
:shape +draw-tool-rect+
|
:shape +draw-tool-rect+
|
||||||
:priority 1}
|
:priority 1}
|
||||||
{:icon i/circle
|
{:icon i/circle
|
||||||
:help (tr "ds.help.circle")
|
:help "ds.help.circle"
|
||||||
:shape +draw-tool-circle+
|
:shape +draw-tool-circle+
|
||||||
:priority 2}
|
:priority 2}
|
||||||
{:icon i/text
|
{:icon i/text
|
||||||
:help (tr "ds.help.text")
|
:help "ds.help.text"
|
||||||
:shape +draw-tool-text+
|
:shape +draw-tool-text+
|
||||||
:priority 4}
|
:priority 4}
|
||||||
{:icon i/curve
|
{:icon i/curve
|
||||||
:help (tr "ds.help.path")
|
:help "ds.help.path"
|
||||||
:shape +draw-tool-path+
|
:shape +draw-tool-path+
|
||||||
:priority 5}
|
:priority 5}
|
||||||
{:icon i/pencil
|
{:icon i/pencil
|
||||||
:help (tr "ds.help.path")
|
:help "ds.help.path"
|
||||||
:shape +draw-tool-curve+
|
:shape +draw-tool-curve+
|
||||||
:priority 6}])
|
:priority 6}])
|
||||||
|
|
||||||
|
@ -116,13 +116,13 @@
|
||||||
(mx/doseq [[i props] (map-indexed vector tools)]
|
(mx/doseq [[i props] (map-indexed vector tools)]
|
||||||
(let [selected? (= drawing-tool (:shape props))]
|
(let [selected? (= drawing-tool (:shape props))]
|
||||||
[:div.tool-btn.tooltip.tooltip-hover
|
[:div.tool-btn.tooltip.tooltip-hover
|
||||||
{:alt (:help props)
|
{:alt (tr :help props)
|
||||||
:class (when selected? "selected")
|
:class (when selected? "selected")
|
||||||
:key (str i)
|
:key (str i)
|
||||||
:on-click (partial select-drawtool (:shape props))}
|
:on-click (partial select-drawtool (:shape props))}
|
||||||
(:icon props)]))
|
(:icon props)]))
|
||||||
[:div.tool-btn.tooltip.tooltip-hover
|
[:div.tool-btn.tooltip.tooltip-hover
|
||||||
{:alt "Ruler"
|
{:alt (tr "ds.help.ruler")
|
||||||
:on-click toggle-ruler
|
:on-click toggle-ruler
|
||||||
:class (when (contains? flags :ruler) "selected")}
|
:class (when (contains? flags :ruler) "selected")}
|
||||||
i/ruler-tool]]]))
|
i/ruler-tool]]]))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue