From 8da93f90b6046edb2fc7389a45080026a4ff9252 Mon Sep 17 00:00:00 2001 From: "mathieu.brunot" Date: Fri, 13 Sep 2019 11:59:33 +0200 Subject: [PATCH] :globe_with_meridians: Image popup i18n Signed-off-by: mathieu.brunot --- frontend/src/uxbox/main/locales/en.cljs | 5 +++++ frontend/src/uxbox/main/locales/fr.cljs | 5 +++++ frontend/src/uxbox/main/ui/workspace/images.cljs | 12 ++++++------ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/frontend/src/uxbox/main/locales/en.cljs b/frontend/src/uxbox/main/locales/en.cljs index bb801b2d0..0a32c450e 100644 --- a/frontend/src/uxbox/main/locales/en.cljs +++ b/frontend/src/uxbox/main/locales/en.cljs @@ -135,6 +135,11 @@ "element.page-measures" "Page 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.password" "Password" "auth.signin" "Sign in" diff --git a/frontend/src/uxbox/main/locales/fr.cljs b/frontend/src/uxbox/main/locales/fr.cljs index d73cfc22d..32e890b3b 100644 --- a/frontend/src/uxbox/main/locales/fr.cljs +++ b/frontend/src/uxbox/main/locales/fr.cljs @@ -135,6 +135,11 @@ "element.page-measures" "Paramètres de la page" "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.password" "Mot de passe" "auth.signin" "Se connecter" diff --git a/frontend/src/uxbox/main/ui/workspace/images.cljs b/frontend/src/uxbox/main/ui/workspace/images.cljs index e9fcdfdef..80721778b 100644 --- a/frontend/src/uxbox/main/ui/workspace/images.cljs +++ b/frontend/src/uxbox/main/ui/workspace/images.cljs @@ -70,16 +70,16 @@ (dom/prevent-default event) (modal/hide!))] [:div.lightbox-body - [:h3 "New image"] + [:h3 (tr "image.new")] [:div.row-flex [:div.lightbox-big-btn {:on-click on-select-from-library} [:span.big-svg i/image] - [:span.text "Select from library"]] + [:span.text (tr "image.select")]] [:div.lightbox-big-btn {:on-click on-upload-click} (if uploading? [:span.big-svg.upload i/loader-pencil] [:span.big-svg.upload i/exit]) - [:span.text "Upload file"] + [:span.text (tr "image.upload")] [:input.upload-image-input {:style {:display "none"} :accept "image/jpeg,image/png" @@ -142,16 +142,16 @@ :fn #(st/emit! (udi/fetch-images id))}) [:div.lightbox-body.big-lightbox - [:h3 "Import image from library"] + [:h3 (tr "image.import-library")] [:div.import-img-library [:div.library-actions [:ul.toggle-library [:li.your-images {:class (when own? "current") :on-click #(select-type :own)} - "YOUR IMAGES"] + (tr "ds.your-images-title")] [:li.standard {:class (when builtin? "current") :on-click #(select-type :builtin)} - "IMAGES STORE"]] + (tr "ds.store-images-title")]] [:select.input-select {:on-change on-change} (when own? [:option {:value (pr-str nil)} "Storage"])