mirror of
https://github.com/penpot/penpot.git
synced 2025-02-24 15:56:11 -05:00
🌐 Header i18n
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
This commit is contained in:
parent
5c12bd988d
commit
b3caa93e8b
3 changed files with 51 additions and 16 deletions
|
@ -108,6 +108,23 @@
|
|||
"ds.user.notifications" "Notifications"
|
||||
"ds.user.exit" "Exit"
|
||||
|
||||
"header.sitemap" "Sitemap (Ctrl + Shift + M)"
|
||||
"header.draw-tools" "Draw tools (Ctrl + Shift + S)"
|
||||
"header.color-palette" "Color Palette (---)"
|
||||
"header.icons" "Icons (Ctrl + Shift + I)"
|
||||
"header.layers" "Layers (Ctrl + Shift + L)"
|
||||
"header.element-options" "Element options (Ctrl + Shift + O)"
|
||||
"header.document-history" "History (Ctrl + Shift + H)"
|
||||
"header.undo" "Undo (Ctrl + Z)"
|
||||
"header.redo" "Redo (Ctrl + Shift + Z)"
|
||||
"header.download" "Download (Ctrl + E)"
|
||||
"header.image" "Image (Ctrl + I)"
|
||||
"header.rules" "Rules"
|
||||
"header.grid" "Grid (Ctrl + G)"
|
||||
"header.grid-snap" "Snap to grid"
|
||||
"header.align" "Align (Ctrl + A)"
|
||||
"header.view-mode" "View mode (Ctrl + P)"
|
||||
|
||||
"auth.email-or-username" "Email or Username"
|
||||
"auth.password" "Password"
|
||||
"auth.signin" "Sign in"
|
||||
|
|
|
@ -108,6 +108,23 @@
|
|||
"ds.user.notifications" "Notifications"
|
||||
"ds.user.exit" "Quitter"
|
||||
|
||||
"header.sitemap" "Plan du site (Ctrl + Maj + M)"
|
||||
"header.draw-tools" "Outils de dessin (Ctrl + Maj + S)"
|
||||
"header.color-palette" "Palette de couleurs (---)"
|
||||
"header.icons" "Icônes (Ctrl + Maj + I)"
|
||||
"header.layers" "Couches (Ctrl + Maj + L)"
|
||||
"header.element-options" "Options d'élément (Ctrl + Maj + O)"
|
||||
"header.document-history" "Historique du document (Ctrl + Maj + H)"
|
||||
"header.undo" "Annuler (Ctrl + Z)"
|
||||
"header.redo" "Rétablir (Ctrl + Maj + Z)"
|
||||
"header.download" "Télécharger (Ctrl + E)"
|
||||
"header.image" "Image (Ctrl + I)"
|
||||
"header.rules" "Règles"
|
||||
"header.grid" "Grille (Ctrl + G)"
|
||||
"header.grid-snap" "Snap to grid"
|
||||
"header.align" "Aligner (Ctrl + A)"
|
||||
"header.view-mode" "Mode visualisation (Ctrl + P)"
|
||||
|
||||
"auth.email-or-username" "adresse email ou nom d'utilisateur"
|
||||
"auth.password" "Mot de passe"
|
||||
"auth.signin" "Se connecter"
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
[uxbox.main.ui.users :refer [user]]
|
||||
[uxbox.main.ui.workspace.clipboard]
|
||||
[uxbox.util.data :refer [index-of]]
|
||||
[uxbox.util.i18n :refer (tr)]
|
||||
[uxbox.util.geom.point :as gpt]
|
||||
[uxbox.util.math :as mth]
|
||||
[uxbox.util.router :as rt]))
|
||||
|
@ -54,7 +55,7 @@
|
|||
[:div.main-icon
|
||||
[:a {:on-click #(st/emit! (rt/nav :dashboard/projects))} i/logo-icon]]
|
||||
[:div.project-tree-btn
|
||||
{:alt "Sitemap (Ctrl + Shift + M)"
|
||||
{:alt (tr "header.sitemap")
|
||||
:class (when (contains? flags :sitemap) "selected")
|
||||
:on-click (partial toggle :sitemap)}
|
||||
i/project-tree
|
||||
|
@ -62,76 +63,76 @@
|
|||
[:div.workspace-options
|
||||
[:ul.options-btn
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "Draw tools (Ctrl + Shift + S)"
|
||||
{:alt (tr "header.draw-tools")
|
||||
:class (when (contains? flags :drawtools) "selected")
|
||||
:on-click (partial toggle :drawtools)}
|
||||
i/shapes]
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "Color Palette (---)"
|
||||
{:alt (tr "header.color-palette")
|
||||
:class (when (contains? flags :colorpalette) "selected")
|
||||
:on-click (partial toggle :colorpalette)}
|
||||
i/palette]
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "Icons (Ctrl + Shift + I)"
|
||||
{:alt (tr "header.icons")
|
||||
:class (when (contains? flags :icons) "selected")
|
||||
:on-click (partial toggle :icons)}
|
||||
i/icon-set]
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "Layers (Ctrl + Shift + L)"
|
||||
{:alt (tr "header.layers")
|
||||
:class (when (contains? flags :layers) "selected")
|
||||
:on-click (partial toggle :layers)}
|
||||
i/layers]
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "Element options (Ctrl + Shift + O)"
|
||||
{:alt (tr "header.element-options")
|
||||
:class (when (contains? flags :element-options) "selected")
|
||||
:on-click (partial toggle :element-options)}
|
||||
i/options]
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "History (Ctrl + Shift + H)"
|
||||
{:alt (tr "header.document-history")
|
||||
:class (when (contains? flags :document-history) "selected")
|
||||
:on-click (partial toggle :document-history)}
|
||||
i/undo-history]]
|
||||
[:ul.options-btn
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "Undo (Ctrl + Z)"
|
||||
{:alt (tr "header.undo")
|
||||
:on-click on-undo}
|
||||
i/undo]
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "Redo (Ctrl + Shift + Z)"
|
||||
{:alt (tr "header.redo")
|
||||
:on-click on-redo}
|
||||
i/redo]]
|
||||
[:ul.options-btn
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "Download (Ctrl + E)"
|
||||
{:alt (tr "header.download")
|
||||
;; :on-click on-download
|
||||
}
|
||||
i/download]
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "Image (Ctrl + I)"
|
||||
{:alt (tr "header.image")
|
||||
:on-click on-image}
|
||||
i/image]]
|
||||
[:ul.options-btn
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "Rules"
|
||||
{:alt (tr "header.rules")
|
||||
:class (when (contains? flags :rules) "selected")
|
||||
:on-click (partial toggle :rules)}
|
||||
i/ruler]
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "Grid (Ctrl + G)"
|
||||
{:alt (tr "header.grid")
|
||||
:class (when (contains? flags :grid) "selected")
|
||||
:on-click (partial toggle :grid)}
|
||||
i/grid]
|
||||
[:li.tooltip.tooltip-bottom
|
||||
{:alt "Snap to grid"
|
||||
{:alt (tr "header.grid-snap")
|
||||
:class (when (contains? flags :grid-snap) "selected")
|
||||
:on-click (partial toggle :grid-snap)}
|
||||
i/grid-snap]]
|
||||
;; [:li.tooltip.tooltip-bottom
|
||||
;; {:alt "Align (Ctrl + A)"}
|
||||
;; {:alt (tr "header.align")}
|
||||
;; i/alignment]]
|
||||
[:ul.options-btn
|
||||
[:li.tooltip.tooltip-bottom.view-mode
|
||||
{:alt "View mode (Ctrl + P)"
|
||||
{:alt (tr "header.view-mode")
|
||||
:on-click #(st/emit! (dw/->OpenView (:id page)))
|
||||
}
|
||||
i/play]]
|
||||
|
|
Loading…
Add table
Reference in a new issue