From 7536241be0240d23f62adcce0aeb78afff040bbb Mon Sep 17 00:00:00 2001 From: "mathieu.brunot" Date: Fri, 13 Sep 2019 02:12:08 +0200 Subject: [PATCH] :globe_with_meridians: Merge i18n for projects and sitemap Signed-off-by: mathieu.brunot --- .../uxbox/main/ui/dashboard/projects_forms.cljs | 14 +++++++------- .../main/ui/workspace/sidebar/sitemap_forms.cljs | 16 ++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/frontend/src/uxbox/main/ui/dashboard/projects_forms.cljs b/frontend/src/uxbox/main/ui/dashboard/projects_forms.cljs index d6695623b..9cd2b8540 100644 --- a/frontend/src/uxbox/main/ui/dashboard/projects_forms.cljs +++ b/frontend/src/uxbox/main/ui/dashboard/projects_forms.cljs @@ -49,7 +49,7 @@ (let [{:keys [data] :as form} (fm/use-form ::project-form defaults)] [:form {:on-submit #(on-submit % form)} [:input.input-text - {:placeholder "New project name" + {:placeholder (tr "ds.project.placeholder") :type "text" :name "name" :value (:name data) @@ -59,9 +59,9 @@ :auto-focus true}] [:div.project-size [:div.input-element.pixels - [:span "Width"] + [:span (tr "ds.width")] [:input#project-witdh.input-text - {:placeholder "Width" + {:placeholder (tr "ds.width") :name "width" :type "number" :min 0 @@ -72,9 +72,9 @@ :value (:width data)}]] [:a.toggle-layout {:on-click #(swap-size % form)} i/toggle] [:div.input-element.pixels - [:span "Height"] + [:span (tr "ds.height")] [:input#project-height.input-text - {:placeholder "Height" + {:placeholder (tr "ds.height") :type "number" :name "height" :min 0 @@ -86,7 +86,7 @@ ;; Submit [:input#project-btn.btn-primary - {:value "Go go go!" + {:value (tr "ds.go") :class (when-not (:valid form) "btn-disabled") :disabled (not (:valid form)) :type "submit"}]])) @@ -96,7 +96,7 @@ (mf/defc create-project-dialog [props] [:div.lightbox-body - [:h3 "New project"] + [:h3 (tr "ds.project.new")] [:& create-project-form] [:a.close {:on-click modal/hide!} i/close]]) diff --git a/frontend/src/uxbox/main/ui/workspace/sidebar/sitemap_forms.cljs b/frontend/src/uxbox/main/ui/workspace/sidebar/sitemap_forms.cljs index 15c16e69e..5919e86c0 100644 --- a/frontend/src/uxbox/main/ui/workspace/sidebar/sitemap_forms.cljs +++ b/frontend/src/uxbox/main/ui/workspace/sidebar/sitemap_forms.cljs @@ -63,7 +63,7 @@ (let [{:keys [data] :as form} (fm/use-form ::page-form #(initial-data page))] [:form {:on-submit #(on-submit % form)} [:input.input-text - {:placeholder "Page name" + {:placeholder (tr "ds.page.placeholder") :type "text" :name "name" :class (fm/error-class form :name) @@ -73,9 +73,9 @@ :auto-focus true}] [:div.project-size [:div.input-element.pixels - [:span "Width"] + [:span (tr "ds.width")] [:input#project-witdh.input-text - {:placeholder "Width" + {:placeholder (tr "ds.width") :name "width" :type "number" :min 0 @@ -86,9 +86,9 @@ :value (:width data)}]] [:a.toggle-layout {:on-click #(swap-size % form)} i/toggle] [:div.input-element.pixels - [:span "Height"] + [:span (tr "ds.height")] [:input#project-height.input-text - {:placeholder "Height" + {:placeholder (tr "ds.height") :name "height" :type "number" :min 0 @@ -98,7 +98,7 @@ :on-change (fm/on-input-change form :height) :value (:height data)}]]] [:input.btn-primary - {:value "Go go go!" + {:value (tr "ds.go") :type "submit" :class (when-not (:valid form) "btn-disabled") :disabled (not (:valid form))}]])) @@ -107,8 +107,8 @@ [{:keys [page] :as props}] [:div.lightbox-body (if (nil? (:id page)) - [:h3 "New page"] - [:h3 "Edit page"]) + [:h3 (tr "ds.page.new")] + [:h3 (tr "ds.page.edit")]) [:& page-form {:page page}] [:a.close {:on-click modal/hide!} i/close]])