浏览代码

chore: remove deleted translations from #11739

Also enable counts for class-objects as they can get quite large
Gabriel Horner 7 月之前
父节点
当前提交
f5ea424e17
共有 3 个文件被更改,包括 2 次插入7 次删除
  1. 1 3
      scripts/src/logseq/tasks/lang.clj
  2. 1 0
      src/main/frontend/components/objects.cljs
  3. 0 4
      src/resources/dicts/en.edn

+ 1 - 3
scripts/src/logseq/tasks/lang.clj

@@ -133,9 +133,7 @@
    "(t prompt-key" [:select/default-prompt :select/default-select-multiple :select.graph/prompt]
    ;; All args to ui/make-confirm-modal are not keywords
    "(t title" []
-   "(t (or title-key" [:views.table/live-query-title
-                       :views.table/default-title :all-pages/table-title :views.table/tagged-nodes
-                       :views.table/property-nodes]
+   "(t (or title-key" [:views.table/live-query-title :views.table/default-title]
    "(t subtitle" [:asset/physical-delete]})
 
 (defn- whiteboard-dicts

+ 1 - 0
src/main/frontend/components/objects.cljs

@@ -98,6 +98,7 @@
                                                           (shui/dialog-close!)))})]))
                                       (add-new-class-object! class set-data! properties)))
                  :show-add-property? true
+                 :show-items-count? true
                  :add-property! (fn []
                                   (state/pub-event! [:editor/new-property {:block class
                                                                            :class-schema? true}]))

+ 0 - 4
src/resources/dicts/en.edn

@@ -472,8 +472,6 @@
  :export-save-to-file "Save to file"
  :all-graphs "All graphs"
  :all-pages "All pages"
- ;; E.g. 1 Page or 2 Pages
- :all-pages/table-title (fn [total] (str total (if (= total 1) " Page" " Pages")))
  :all-pages/failed-to-delete-pages "These pages had their content deleted but were unable to be deleted: {1}. See javascript console for more details."
  :all-whiteboards "All whiteboards"
  :all-files "All files"
@@ -625,8 +623,6 @@
  ;; E.g. 1 node or 2 nodes
  :views.table/live-query-title (fn [total] (str "Live query (" total ")"))
  :views.table/default-title (fn [total] (str total (if (<= total 1) " Node" " Nodes")))
- :views.table/tagged-nodes (fn [total] (str total (if (<= total 1) " tagged node" " tagged Nodes")))
- :views.table/property-nodes (fn [total] (str total (if (<= total 1) " node with this property" " nodes with this property")))
 
  ;; Commands are nested for now to stay in sync with the shortcuts system.
  ;; Other languages should not nest keys under :commands