From b3f4f389ff8c38090e646524bc1d4ea57ac388cf Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Fri, 22 Mar 2024 11:33:05 +0100 Subject: [PATCH] :sparkles: Add tooltips to some buttons --- .../src/app/main/ui/workspace/libraries.cljs | 2 ++ .../app/main/ui/workspace/sidebar/assets.cljs | 2 ++ frontend/translations/en.po | 16 ++++++++++++++++ frontend/translations/es.po | 16 ++++++++++++++++ 4 files changed, 36 insertions(+) diff --git a/frontend/src/app/main/ui/workspace/libraries.cljs b/frontend/src/app/main/ui/workspace/libraries.cljs index 564093850..ddbfe354a 100644 --- a/frontend/src/app/main/ui/workspace/libraries.cljs +++ b/frontend/src/app/main/ui/workspace/libraries.cljs @@ -239,6 +239,7 @@ [:button {:class (stl/css :item-button) :type "button" + :title (tr "workspace.libraries.unlink-library-btn") :data-library-id (dm/str id) :on-click unlink-library} detach-icon]])]] @@ -270,6 +271,7 @@ :typography-count typography-count}])]] [:button {:class (stl/css :item-button-shared) :data-library-id (dm/str id) + :title (tr "workspace.libraries.shared-library-btn") :on-click link-library} add-icon]])] diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs index da7ed67fe..b3f755fc5 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs @@ -168,6 +168,7 @@ :placeholder (tr "workspace.assets.search")} [:button {:on-click on-open-menu + :title (tr "workspace.assets.filter") :class (stl/css-case :section-button true :opened menu-open?)} i/filter-icon]] @@ -184,6 +185,7 @@ :options options :workspace? true}] [:button {:class (stl/css :sort-button) + :title (tr "workspace.assets.sort") :on-click toggle-ordering} (if reverse-sort? i/asc-sort diff --git a/frontend/translations/en.po b/frontend/translations/en.po index a0ad7a087..b94cd8fb4 100644 --- a/frontend/translations/en.po +++ b/frontend/translations/en.po @@ -3255,6 +3255,14 @@ msgstr "Rename group" msgid "workspace.assets.search" msgstr "Search assets" +#: src/app/main/ui/workspace/sidebar/assets.cljs +msgid "workspace.assets.filter" +msgstr "Filter" + +#: src/app/main/ui/workspace/sidebar/assets.cljs +msgid "workspace.assets.sort" +msgstr "Sort" + #: src/app/main/ui/workspace/sidebar/assets.cljs msgid "workspace.assets.selected-count" msgid_plural "workspace.assets.selected-count" @@ -3611,6 +3619,14 @@ msgstr "Search shared libraries" msgid "workspace.libraries.shared-libraries" msgstr "SHARED LIBRARIES" +#: src/app/main/ui/workspace/libraries.cljs +msgid "workspace.libraries.shared-library-btn" +msgstr "Connect library" + +#: src/app/main/ui/workspace/libraries.cljs +msgid "workspace.libraries.unlink-library-btn" +msgstr "Disconnect library" + #: src/app/main/ui/workspace/libraries.cljs msgid "workspace.libraries.loading" msgstr "Loading…" diff --git a/frontend/translations/es.po b/frontend/translations/es.po index 30b388b04..cec823c04 100644 --- a/frontend/translations/es.po +++ b/frontend/translations/es.po @@ -3312,6 +3312,14 @@ msgstr "Renombrar grupo" msgid "workspace.assets.search" msgstr "Buscar recursos" +#: src/app/main/ui/workspace/sidebar/assets.cljs +msgid "workspace.assets.filter" +msgstr "Filtrar" + +#: src/app/main/ui/workspace/sidebar/assets.cljs +msgid "workspace.assets.sort" +msgstr "Ordenar" + #: src/app/main/ui/workspace/sidebar/assets.cljs msgid "workspace.assets.selected-count" msgid_plural "workspace.assets.selected-count" @@ -3675,6 +3683,14 @@ msgstr "Buscar bibliotecas compartidas" msgid "workspace.libraries.shared-libraries" msgstr "BIBLIOTECAS COMPARTIDAS" +#: src/app/main/ui/workspace/libraries.cljs +msgid "workspace.libraries.shared-library-btn" +msgstr "Conectar biblioteca" + +#: src/app/main/ui/workspace/libraries.cljs +msgid "workspace.libraries.unlink-library-btn" +msgstr "Desconectar biblioteca" + #: src/app/main/ui/workspace/sidebar/options/menus/text.cljs msgid "workspace.libraries.text.multiple-typography" msgstr "Varias tipografías"