Skip to content

Commit

Permalink
enhance: add tooltip hint for prefered-file-paste
Browse files Browse the repository at this point in the history
  • Loading branch information
Bad3r committed Jun 2, 2023
1 parent 6e101a8 commit bdcd83b
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/frontend/components/settings.cljs
Expand Up @@ -385,8 +385,13 @@

(defn preferred-pasting-file [t preferred-pasting-file?]
(toggle "preferred_pasting_file"
(t :settings-page/preferred-pasting-file)
preferred-pasting-file?
[(t :settings-page/preferred-pasting-file)
(ui/tippy {:html (t :settings-page/preferred-pasting-file-hint)
:class "tippy-hover ml-2"
:interactive true
:disabled false}
(svg/info))]
preferred-pasting-file?
config-handler/toggle-preferred-pasting-file!))

(defn auto-expand-row [t auto-expand-block-refs?]
Expand Down
1 change: 1 addition & 0 deletions src/resources/dicts/de.edn
Expand Up @@ -299,6 +299,7 @@
:settings-page/custom-configuration "Individuelle Konfiguration"
:settings-page/custom-date-format "Bevorzugtes Datumsformat"
:settings-page/custom-date-format-warning "Neuindizierung erforderlich! Vorhandene Journal-Verweise würden nicht mehr funktionieren!"
: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."
:settings-page/custom-global-configuration "Benutzerdefinierte globale Konfiguration"
:settings-page/custom-theme "Individuelles Theme"
:settings-page/customize-shortcuts "Tastaturbefehle"
Expand Down
1 change: 1 addition & 0 deletions src/resources/dicts/en.edn
Expand Up @@ -192,6 +192,7 @@
:settings-page/auto-expand-block-refs "Expand 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."
:settings-page/preferred-file-format "Preferred file format"
:settings-page/preferred-workflow "Preferred workflow"
:settings-page/preferred-pasting-file "Prefer pasting file"
Expand Down
1 change: 1 addition & 0 deletions src/resources/dicts/es.edn
Expand Up @@ -345,6 +345,7 @@
:settings-page/beta-features "Características Beta"
:settings-page/clear-cache-warning "Limpiar la cache va a desechar los grafos abiertos. Vas a..."
:settings-page/custom-date-format-warning "¡Se requiere reindexar! Las referencias existentes del diario pod..."
: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."
:settings-page/custom-global-configuration "Configuración global personalizada"
:settings-page/disable-sentry-desc " Logseq nunca va a colectar tu base de datos de grafos local ... "
:settings-page/edit-global-config-edn "Editar config.edn global"
Expand Down
1 change: 1 addition & 0 deletions src/resources/dicts/ko.edn
Expand Up @@ -319,6 +319,7 @@
:settings-page/beta-features "베타 기능"
:settings-page/clear-cache-warning "캐시 삭제로, 현재 작업 내용을 잃을 수 있습니다."
:settings-page/custom-date-format-warning "인덱스 재생성이 필요합니다. 일지 레퍼런스가 잘못될 수 있습니다."
: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."
:settings-page/custom-global-configuration "전역 사용자 설정"
:settings-page/disable-sentry-desc "Logseq는 사용자의 로컬 그래프 데이터베이스 정보를 수집하지 않습니다."
:settings-page/edit-global-config-edn "전역 config.edn 수정"
Expand Down
1 change: 1 addition & 0 deletions src/resources/dicts/nb-no.edn
Expand Up @@ -354,6 +354,7 @@
:settings-page/beta-features "Beta funksjoner"
:settings-page/clear-cache-warning "Tømming av hurtigbufferen vil forkaste dine åpne grafer. Du m..."
:settings-page/custom-date-format-warning "Re-indeksering kreves! Eksisterernde dagbokreferanse vi..."
: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."
:settings-page/disable-sentry-desc "Logseq vil aldri samle inn dine lokale graf sin databas..."
:settings-page/edit-setting "Rediger"
:settings-page/enable-whiteboards "Whiteboards"
Expand Down
1 change: 1 addition & 0 deletions src/resources/dicts/pt-br.edn
Expand Up @@ -318,6 +318,7 @@
:settings-page/beta-features "Recursos em fase Beta"
:settings-page/clear-cache-warning "A limpeza do cache descartará os gráficos abertos. Você perderá as alterações não salvas."
:settings-page/custom-date-format-warning "É necessário reindexar! As referências de periódicos existentes seriam quebradas!"
: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."
:settings-page/disable-sentry-desc "A Logseq nunca coletará seu banco de dados gráfico local ou venderá seus dados."
:settings-page/edit-setting "Editar"
:settings-page/enable-whiteboards "Quadros brancos"
Expand Down
1 change: 1 addition & 0 deletions src/resources/dicts/pt-pt.edn
Expand Up @@ -170,6 +170,7 @@
:settings-page/show-full-blocks "Mostrar todas a linhas de uma referência de bloco"
:settings-page/custom-date-format "Formato de data preferido"
:settings-page/custom-date-format-warning "Reindexação necessária! As referências de páginas diárias já existentes não funcionariam mais!"
: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."
:settings-page/preferred-file-format "Formato de ficheiro preferido"
:settings-page/preferred-workflow "Workflow preferido"
:settings-page/preferred-pasting-file "Preferir colar ficheiro"
Expand Down
1 change: 1 addition & 0 deletions src/resources/dicts/ru.edn
Expand Up @@ -192,6 +192,7 @@
:settings-page/auto-expand-block-refs "Автоматически раскрывать ссылки на блок при увеличении масштаба"
:settings-page/custom-date-format "Формат даты"
:settings-page/custom-date-format-warning "Требуется переиндексация! Существующие ссылки на журналы будут нарушены!"
: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."
:settings-page/preferred-file-format "Предпочитаемый формат файлов"
:settings-page/preferred-workflow "Предпочтительный рабочий процесс"
:settings-page/preferred-pasting-file "Предпочтительнее вставлять файл"
Expand Down
1 change: 1 addition & 0 deletions src/resources/dicts/sk.edn
Expand Up @@ -161,6 +161,7 @@
:settings-page/show-full-blocks "Zobraziť všetky riadky referencie bloku"
:settings-page/custom-date-format "Preferovaný formát dátumu"
:settings-page/custom-date-format-warning "Vyžaduje sa preindexovanie! Existujúce odkazy na denníky by boli poškodené!"
: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."
:settings-page/preferred-file-format "Preferovaný formát súboru"
:settings-page/preferred-workflow "Preferovaný pracovný postup"
:settings-page/preferred-pasting-file "Preferovaný súbor na prilepenie"
Expand Down
1 change: 1 addition & 0 deletions src/resources/dicts/tr.edn
Expand Up @@ -192,6 +192,7 @@
:settings-page/auto-expand-block-refs "Yakınlaştırdığınızda blok referanslarını otomatik olarak genişletin"
:settings-page/custom-date-format "Tercih edilen tarih biçimi"
:settings-page/custom-date-format-warning "Yeniden dizin oluşturma gerekli! Mevcut günlük referansları bozulabilir!"
: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."
:settings-page/preferred-file-format "Tercih edilen dosya biçimi"
:settings-page/preferred-workflow "Tercih edilen iş akışı"
:settings-page/preferred-pasting-file "Dosya yapıştırmayı tercih et"
Expand Down
1 change: 1 addition & 0 deletions src/resources/dicts/uk.edn
Expand Up @@ -170,6 +170,7 @@
:settings-page/auto-expand-block-refs "Автоматично розгортайти посилання на блоки під час збільшення"
:settings-page/custom-date-format "Бажаний формат дати"
:settings-page/custom-date-format-warning "Потрібна повторна індексація! Існуючі посилання на журнали будуть порушені!"
: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."
:settings-page/preferred-file-format "Віддавати перевагу формату файлу"
:settings-page/preferred-workflow "Віддавати перевагу робочому процесу"
:settings-page/preferred-pasting-file "Віддавати перевагу вставці файлу"
Expand Down
1 change: 1 addition & 0 deletions src/resources/dicts/zh-hant.edn
Expand Up @@ -167,6 +167,7 @@
:settings-page/show-full-blocks "顯示所有區塊引用列"
:settings-page/custom-date-format "偏好日期格式"
:settings-page/custom-date-format-warning "需要重新索引,否則現有的日記引用連結將會失效!"
: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."
:settings-page/preferred-file-format "偏好檔案格式"
:settings-page/preferred-workflow "偏好工作流"
:settings-page/preferred-pasting-file "保存連結為文件"
Expand Down

0 comments on commit bdcd83b

Please sign in to comment.