mirror of
https://github.com/penpot/penpot.git
synced 2025-02-20 13:55:34 -05:00
🌐 Image popup i18n
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
This commit is contained in:
parent
1e44747acf
commit
8da93f90b6
3 changed files with 16 additions and 6 deletions
|
@ -135,6 +135,11 @@
|
||||||
"element.page-measures" "Page settings"
|
"element.page-measures" "Page settings"
|
||||||
"element.page-grid-options" "Grid settings"
|
"element.page-grid-options" "Grid settings"
|
||||||
|
|
||||||
|
"image.new" "New image"
|
||||||
|
"image.select" "Select from library"
|
||||||
|
"image.upload" "Upload file"
|
||||||
|
"image.import-library" "Import image from library"
|
||||||
|
|
||||||
"auth.email-or-username" "Email or Username"
|
"auth.email-or-username" "Email or Username"
|
||||||
"auth.password" "Password"
|
"auth.password" "Password"
|
||||||
"auth.signin" "Sign in"
|
"auth.signin" "Sign in"
|
||||||
|
|
|
@ -135,6 +135,11 @@
|
||||||
"element.page-measures" "Paramètres de la page"
|
"element.page-measures" "Paramètres de la page"
|
||||||
"element.page-grid-options" "Paramètres de la grille"
|
"element.page-grid-options" "Paramètres de la grille"
|
||||||
|
|
||||||
|
"image.new" "Nouvelle image"
|
||||||
|
"image.select" "Choisir depuis une librairie"
|
||||||
|
"image.upload" "Envoyer un fichier"
|
||||||
|
"image.import-library" "Importer une image depuis une librairie"
|
||||||
|
|
||||||
"auth.email-or-username" "adresse email ou nom d'utilisateur"
|
"auth.email-or-username" "adresse email ou nom d'utilisateur"
|
||||||
"auth.password" "Mot de passe"
|
"auth.password" "Mot de passe"
|
||||||
"auth.signin" "Se connecter"
|
"auth.signin" "Se connecter"
|
||||||
|
|
|
@ -70,16 +70,16 @@
|
||||||
(dom/prevent-default event)
|
(dom/prevent-default event)
|
||||||
(modal/hide!))]
|
(modal/hide!))]
|
||||||
[:div.lightbox-body
|
[:div.lightbox-body
|
||||||
[:h3 "New image"]
|
[:h3 (tr "image.new")]
|
||||||
[:div.row-flex
|
[:div.row-flex
|
||||||
[:div.lightbox-big-btn {:on-click on-select-from-library}
|
[:div.lightbox-big-btn {:on-click on-select-from-library}
|
||||||
[:span.big-svg i/image]
|
[:span.big-svg i/image]
|
||||||
[:span.text "Select from library"]]
|
[:span.text (tr "image.select")]]
|
||||||
[:div.lightbox-big-btn {:on-click on-upload-click}
|
[:div.lightbox-big-btn {:on-click on-upload-click}
|
||||||
(if uploading?
|
(if uploading?
|
||||||
[:span.big-svg.upload i/loader-pencil]
|
[:span.big-svg.upload i/loader-pencil]
|
||||||
[:span.big-svg.upload i/exit])
|
[:span.big-svg.upload i/exit])
|
||||||
[:span.text "Upload file"]
|
[:span.text (tr "image.upload")]
|
||||||
[:input.upload-image-input
|
[:input.upload-image-input
|
||||||
{:style {:display "none"}
|
{:style {:display "none"}
|
||||||
:accept "image/jpeg,image/png"
|
:accept "image/jpeg,image/png"
|
||||||
|
@ -142,16 +142,16 @@
|
||||||
:fn #(st/emit! (udi/fetch-images id))})
|
:fn #(st/emit! (udi/fetch-images id))})
|
||||||
|
|
||||||
[:div.lightbox-body.big-lightbox
|
[:div.lightbox-body.big-lightbox
|
||||||
[:h3 "Import image from library"]
|
[:h3 (tr "image.import-library")]
|
||||||
[:div.import-img-library
|
[:div.import-img-library
|
||||||
[:div.library-actions
|
[:div.library-actions
|
||||||
[:ul.toggle-library
|
[:ul.toggle-library
|
||||||
[:li.your-images {:class (when own? "current")
|
[:li.your-images {:class (when own? "current")
|
||||||
:on-click #(select-type :own)}
|
:on-click #(select-type :own)}
|
||||||
"YOUR IMAGES"]
|
(tr "ds.your-images-title")]
|
||||||
[:li.standard {:class (when builtin? "current")
|
[:li.standard {:class (when builtin? "current")
|
||||||
:on-click #(select-type :builtin)}
|
:on-click #(select-type :builtin)}
|
||||||
"IMAGES STORE"]]
|
(tr "ds.store-images-title")]]
|
||||||
[:select.input-select {:on-change on-change}
|
[:select.input-select {:on-change on-change}
|
||||||
(when own?
|
(when own?
|
||||||
[:option {:value (pr-str nil)} "Storage"])
|
[:option {:value (pr-str nil)} "Storage"])
|
||||||
|
|
Loading…
Add table
Reference in a new issue