diff --git a/src/main/frontend/components/settings.cljs b/src/main/frontend/components/settings.cljs index 37a7d70b73..bb7c3606f2 100644 --- a/src/main/frontend/components/settings.cljs +++ b/src/main/frontend/components/settings.cljs @@ -59,19 +59,19 @@ [:div (cond (mobile-util/native-android?) (ui/button - "Check for updates" + (t :settings-page/check-for-updates) :class "text-sm p-1 mr-1" :href "https://github.com/logseq/logseq/releases") (mobile-util/native-ios?) (ui/button - "Check for updates" + (t :settings-page/check-for-updates) :class "text-sm p-1 mr-1" :href "https://apps.apple.com/app/logseq/id1601013908") (util/electron?) (ui/button - (if update-pending? "Checking ..." "Check for updates") + (if update-pending? (t :settings-page/checking) (t :settings-page/check-for-updates)) :class "text-sm p-1 mr-1" :disabled update-pending? :on-click #(js/window.apis.checkForUpdates false)) @@ -80,7 +80,7 @@ nil)] [:div.text-sm.cursor - {:title (str "Revision: " config/revision) + {:title (str (t :settings-page/revision) config/revision) :on-click (fn [] (notification/show! [:div "Current Revision: " [:a {:target "_blank" @@ -93,14 +93,14 @@ [:a.text-sm.fade-link.underline.inline {:target "_blank" :href "https://docs.logseq.com/#/page/changelog"} - "What's new?"]]] + (t :settings-page/changelog)]]] (when-not (or update-pending? (string/blank? type)) [:div.update-state.text-sm (case type "update-not-available" - [:p "Your app is up-to-date 🎉"] + [:p (t :settings-page/app-updated)] "update-available" (let [{:keys [name url]} payload] @@ -127,10 +127,10 @@ {:style {:box-shadow "0 4px 20px 4px rgba(0, 20, 60, .1), 0 4px 80px -8px rgba(0, 20, 60, .2)"}} [:div {:style {:margin "12px" :max-width "500px"}} [:p.text-sm - "The left side shows outdenting with the default setting, and the right shows outdenting with logical outdenting enabled. " + (t :settings-page/preferred-outdenting-tip) [:a.text-sm {:target "_blank" :href "https://discuss.logseq.com/t/whats-your-preferred-outdent-behavior-the-direct-one-or-the-logical-one/978"} - "→ Learn more"]] + (t :settings-page/preferred-outdenting-tip-more)]] [:img {:src "https://discuss.logseq.com/uploads/default/original/1X/e8ea82f63a5e01f6d21b5da827927f538f3277b9.gif" :width 500 :height 500}]]]) @@ -141,7 +141,7 @@ {:style {:box-shadow "0 4px 20px 4px rgba(0, 20, 60, .1), 0 4px 80px -8px rgba(0, 20, 60, .2)"}} [:div {:style {:margin "12px" :max-width "500px"}} [:p.text-sm - "This option controls whether to expand the block references automatically when zoom-in."] + (t :settings-page/auto-expand-block-refs-tip)] [:img {:src "https://user-images.githubusercontent.com/28241963/225818326-118deda9-9d1e-477d-b0ce-771ca0bcd976.gif" :width 500 :height 500}]]]) diff --git a/src/resources/dicts/en.edn b/src/resources/dicts/en.edn index 55517b6dfb..be175bbd4a 100644 --- a/src/resources/dicts/en.edn +++ b/src/resources/dicts/en.edn @@ -200,8 +200,11 @@ :settings-page/disable-sentry "Send usage data and diagnostics to Logseq" :settings-page/disable-sentry-desc "Logseq will never collect your local graph database or sell your data." :settings-page/preferred-outdenting "Logical outdenting" + :settings-page/preferred-outdenting-tip "The left side shows outdenting with the default setting, and the right shows outdenting with logical outdenting enabled " + :settings-page/preferred-outdenting-tip-more "→ Learn more" :settings-page/show-full-blocks "Show all lines of a block reference" :settings-page/auto-expand-block-refs "Expand block references automatically when zoom-in" + :settings-page/auto-expand-block-refs-tip "This option controls whether to expand the block references automatically when zoom-in." :settings-page/custom-date-format "Preferred date format" :settings-page/custom-date-format-warning "Re-index required! Existing journal references would be broken!" :settings-page/preferred-pasting-file-hint "When enabled, pasting an image from the internet will download and insert the image. When disabled, it will paste the link to the image." @@ -241,6 +244,11 @@ :settings-page/enable-whiteboards "Whiteboards" :settings-page/native-titlebar "Native title bar" :settings-page/native-titlebar-desc "Enables the native window title bar on Windows and Linux." + :settings-page/check-for-updates "Check for updates" + :settings-page/checking "Checking ..." + :settings-page/revision "Revision: " + :settings-page/changelog "What's new?" + :settings-page/app-updated "Your app is up-to-date 🎉" :yes "Yes" :submit "Submit" @@ -506,8 +514,9 @@ :header/more "More" :header/go-back "Go back" :header/go-forward "Go forward" - ;; Commands are nested for now to stay in sync with the shortcuts system. - ;; Other languages should not nest keys under :commands + + ;; Commands are nested for now to stay in sync with the shortcuts system. + ;; Other languages should not nest keys under :commands :commands {:date-picker/complete "Date picker: Choose selected day" :date-picker/prev-day "Date picker: Select previous day"