From e8f61df710d689c0498af667a6c159722f408bd4 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Tue, 24 May 2022 12:08:41 +0200 Subject: [PATCH] :bug: Remove deprecated menu options --- CHANGES.md | 1 + frontend/src/app/main/ui/workspace/header.cljs | 17 +---------------- frontend/translations/ar.po | 16 ---------------- frontend/translations/ca.po | 16 ---------------- frontend/translations/de.po | 16 ---------------- frontend/translations/el.po | 16 ---------------- frontend/translations/en.po | 16 ---------------- frontend/translations/es.po | 16 ---------------- frontend/translations/fr.po | 16 ---------------- frontend/translations/he.po | 16 ---------------- frontend/translations/nb_NO.po | 4 ---- frontend/translations/ro.po | 16 ---------------- frontend/translations/ru.po | 16 ---------------- frontend/translations/tr.po | 16 ---------------- frontend/translations/zh_CN.po | 16 ---------------- 15 files changed, 2 insertions(+), 212 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index f97d40a50..0620d13af 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -12,6 +12,7 @@ ### :bug: Bugs fixed - Fix menu file not accessible in certain conditions [Taiga #3385](https://tree.taiga.io/project/penpot/issue/3385) +- Remove deprecated menu options [Taiga #3333](https://tree.taiga.io/project/penpot/issue/3333) ### :arrow_up: Deps updates ### :heart: Community contributions by (Thank you!) diff --git a/frontend/src/app/main/ui/workspace/header.cljs b/frontend/src/app/main/ui/workspace/header.cljs index 7346b2327..a475c9c30 100644 --- a/frontend/src/app/main/ui/workspace/header.cljs +++ b/frontend/src/app/main/ui/workspace/header.cljs @@ -310,14 +310,6 @@ (tr "workspace.header.menu.show-grid"))] [:span.shortcut (sc/get-tooltip :toggle-grid)]] - [:li {:on-click #(st/emit! (toggle-flag :sitemap) - (toggle-flag :layers))} - [:span - (if (or (contains? layout :sitemap) (contains? layout :layers)) - (tr "workspace.header.menu.hide-layers") - (tr "workspace.header.menu.show-layers"))] - [:span.shortcut (sc/get-tooltip :toggle-layers)]] - [:li {:on-click (fn [] (r/set-resize-type! :bottom) (st/emit! (dw/remove-layout-flag :textpalette) @@ -336,14 +328,7 @@ (if (contains? layout :textpalette) (tr "workspace.header.menu.hide-textpalette") (tr "workspace.header.menu.show-textpalette"))] - [:span.shortcut (sc/get-tooltip :toggle-textpalette)]] - - [:li {:on-click #(st/emit! (toggle-flag :assets))} - [:span - (if (contains? layout :assets) - (tr "workspace.header.menu.hide-assets") - (tr "workspace.header.menu.show-assets"))] - [:span.shortcut (sc/get-tooltip :toggle-assets)]] + [:span.shortcut (sc/get-tooltip :toggle-textpalette)]] [:li {:on-click #(st/emit! (toggle-flag :display-artboard-names))} [:span diff --git a/frontend/translations/ar.po b/frontend/translations/ar.po index 970b2686a..f0b41af96 100644 --- a/frontend/translations/ar.po +++ b/frontend/translations/ar.po @@ -1731,18 +1731,10 @@ msgstr "تفعيل مقياس النص" msgid "workspace.header.menu.enable-snap-grid" msgstr "الانطباق على الشبكة" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-assets" -msgstr "إخفاء الأصول الرقمية" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-grid" msgstr "إخفاء الشبكات" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-layers" -msgstr "إخفاء الطبقات" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-palette" msgstr "إخفاء لوحة الألوان" @@ -1755,18 +1747,10 @@ msgstr "إخفاء القواعد" msgid "workspace.header.menu.select-all" msgstr "اختر الكل" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-assets" -msgstr "إظهار الأصول الرقمية" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-grid" msgstr "أظهر تخطيط الجدول" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "إظهار الطبقات" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-palette" msgstr "إظهار لوح الألوان" diff --git a/frontend/translations/ca.po b/frontend/translations/ca.po index 5467d8af9..a9e7886b2 100644 --- a/frontend/translations/ca.po +++ b/frontend/translations/ca.po @@ -2138,18 +2138,10 @@ msgstr "Ajusta a les guies" msgid "workspace.header.menu.hide-artboard-names" msgstr "Amaga els noms de les taules" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-assets" -msgstr "Amaga els recursos" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-grid" msgstr "Amaga la quadrícula" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-layers" -msgstr "Amaga les capes" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-palette" msgstr "Amaga la paleta de colors" @@ -2187,18 +2179,10 @@ msgstr "Selecciona-ho tot" msgid "workspace.header.menu.show-artboard-names" msgstr "Mostra els noms de les taules" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-assets" -msgstr "Mostra els recursos" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-grid" msgstr "Mostra la quadrícula" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "Mostra les capes" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-palette" msgstr "Mostra la paleta de colors" diff --git a/frontend/translations/de.po b/frontend/translations/de.po index 9738f9d5a..404007f0b 100644 --- a/frontend/translations/de.po +++ b/frontend/translations/de.po @@ -2121,18 +2121,10 @@ msgstr "An Hilfslinien ausrichten" msgid "workspace.header.menu.hide-artboard-names" msgstr "Namen von Zeichenflächen ausblenden" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-assets" -msgstr "Assets ausblenden" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-grid" msgstr "Raster ausblenden" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-layers" -msgstr "Ebenen ausblenden" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-palette" msgstr "Farbpalette ausblenden" @@ -2165,18 +2157,10 @@ msgstr "Alles auswählen" msgid "workspace.header.menu.show-artboard-names" msgstr "Namen der Zeichenflächen anzeigen" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-assets" -msgstr "Assets einblenden" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-grid" msgstr "Raster einblenden" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "Ebenen einblenden" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-palette" msgstr "Farbpalette einblenden" diff --git a/frontend/translations/el.po b/frontend/translations/el.po index 582c5da77..8f3507ea3 100644 --- a/frontend/translations/el.po +++ b/frontend/translations/el.po @@ -1442,18 +1442,10 @@ msgstr "Ενεργοποίηση δυναμικής ευθυγράμμισης" msgid "workspace.header.menu.enable-snap-grid" msgstr "Σύνδεση στο πλέγμα" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-assets" -msgstr "Απόκρυψη στοιχείων" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-grid" msgstr "Απόκρυψη πλεγμάτων" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-layers" -msgstr "Απόκρυψη στρώματα" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-palette" msgstr "Απόκρυψη παλέτας χρωμάτων" @@ -1466,18 +1458,10 @@ msgstr "Απόκρυψη κανόνες" msgid "workspace.header.menu.select-all" msgstr "Επιλογή όλων" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-assets" -msgstr "Εμφάνιση στοιχείων" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-grid" msgstr "Εμφάνιση πλέγματος" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "Εμφάνιση στρώματα" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-palette" msgstr "Εμφάνιση παλέτας χρωμάτων" diff --git a/frontend/translations/en.po b/frontend/translations/en.po index e5a0cdcbe..19d310ac1 100644 --- a/frontend/translations/en.po +++ b/frontend/translations/en.po @@ -2288,18 +2288,10 @@ msgstr "Enable snap to pixel" msgid "workspace.header.menu.hide-artboard-names" msgstr "Hide artboard names" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-assets" -msgstr "Hide assets" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-grid" msgstr "Hide grids" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-layers" -msgstr "Hide layers" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-palette" msgstr "Hide color palette" @@ -2343,18 +2335,10 @@ msgstr "Select all" msgid "workspace.header.menu.show-artboard-names" msgstr "Show artboards names" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-assets" -msgstr "Show assets" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-grid" msgstr "Show grid" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "Show layers" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-palette" msgstr "Show color palette" diff --git a/frontend/translations/es.po b/frontend/translations/es.po index 28c597a4f..e1ae22e4f 100644 --- a/frontend/translations/es.po +++ b/frontend/translations/es.po @@ -2302,18 +2302,10 @@ msgstr "Activar ajuste al pixel" msgid "workspace.header.menu.hide-artboard-names" msgstr "Ocultar nombres de tableros" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-assets" -msgstr "Ocultar recursos" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-grid" msgstr "Ocultar rejillas" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-layers" -msgstr "Ocultar capas" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-palette" msgstr "Ocultar paleta de colores" @@ -2357,18 +2349,10 @@ msgstr "Seleccionar todo" msgid "workspace.header.menu.show-artboard-names" msgstr "Mostrar nombres de tableros" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-assets" -msgstr "Mostrar recursos" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-grid" msgstr "Mostrar rejilla" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "Mostrar capas" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-palette" msgstr "Mostrar paleta de colores" diff --git a/frontend/translations/fr.po b/frontend/translations/fr.po index 69642842d..58e4344b8 100644 --- a/frontend/translations/fr.po +++ b/frontend/translations/fr.po @@ -1787,18 +1787,10 @@ msgstr "Activer le redimensionnement du texte" msgid "workspace.header.menu.enable-snap-grid" msgstr "Aligner sur la grille" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-assets" -msgstr "Masquer les ressources" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-grid" msgstr "Masquer la grille" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-layers" -msgstr "Masquer les calques" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-palette" msgstr "Masquer la palette de couleurs" @@ -1811,18 +1803,10 @@ msgstr "Masquer les règles" msgid "workspace.header.menu.select-all" msgstr "Tout sélectionner" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-assets" -msgstr "Montrer les ressources" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-grid" msgstr "Montrer la grille" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "Montrer les calques" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-palette" msgstr "Montrer la palette de couleurs" diff --git a/frontend/translations/he.po b/frontend/translations/he.po index 37d0f00fb..fc2ce32e4 100644 --- a/frontend/translations/he.po +++ b/frontend/translations/he.po @@ -2205,18 +2205,10 @@ msgstr "הפעלת הצמדה לפיקסל" msgid "workspace.header.menu.hide-artboard-names" msgstr "הסתרת שמות משטחי יצירה" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-assets" -msgstr "הסתרת משאבים" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-grid" msgstr "הסתרת רשתות" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-layers" -msgstr "הסתרת שכבות" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-palette" msgstr "הסתרת ערכת צבעים" @@ -2256,18 +2248,10 @@ msgstr "לבחור הכול" msgid "workspace.header.menu.show-artboard-names" msgstr "הצגת שמות משטחי יצירה" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-assets" -msgstr "הצגת משאבים" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-grid" msgstr "הצגת רשת" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "הצגת שכבות" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-palette" msgstr "הצגת ערכת צבעים" diff --git a/frontend/translations/nb_NO.po b/frontend/translations/nb_NO.po index 833e3b94d..f7a099ad9 100644 --- a/frontend/translations/nb_NO.po +++ b/frontend/translations/nb_NO.po @@ -689,10 +689,6 @@ msgstr "Fest til rutenett" msgid "workspace.header.menu.show-grid" msgstr "Vis rutenett" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "Vis lag" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-rules" msgstr "Vis regler" diff --git a/frontend/translations/ro.po b/frontend/translations/ro.po index d517ef5f7..47ec0003b 100644 --- a/frontend/translations/ro.po +++ b/frontend/translations/ro.po @@ -1655,18 +1655,10 @@ msgstr "Activează scalarea textului" msgid "workspace.header.menu.enable-snap-grid" msgstr "Aliniază per grilă" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-assets" -msgstr "Ascunde obiectele" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-grid" msgstr "Ascunde grila de ghidaj" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-layers" -msgstr "Ascunde layere" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-palette" msgstr "Ascunde paleta de culori" @@ -1679,18 +1671,10 @@ msgstr "Ascunde ghidul liniar" msgid "workspace.header.menu.select-all" msgstr "Selectează tot" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-assets" -msgstr "Afişează asset-uri" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-grid" msgstr "Afişează sistemul grid" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "Afişează layere" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-palette" msgstr "Afişează paleta de culori" diff --git a/frontend/translations/ru.po b/frontend/translations/ru.po index 223b15139..7ed461dcf 100644 --- a/frontend/translations/ru.po +++ b/frontend/translations/ru.po @@ -1811,18 +1811,10 @@ msgstr "Привяка к сетке" msgid "workspace.header.menu.hide-artboard-names" msgstr "Скрыть имена кадров" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-assets" -msgstr "Спрятать ресурсы" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-grid" msgstr "Спрятать сетку" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-layers" -msgstr "Спрятать слои" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-palette" msgstr "Спрятать палитру цветов" @@ -1839,18 +1831,10 @@ msgstr "" msgid "workspace.header.menu.show-artboard-names" msgstr "Показать имена кадров" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-assets" -msgstr "Показать ресурсы" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-grid" msgstr "Показать сетку" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "Показать слои" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-palette" msgstr "Показать палитру цветов" diff --git a/frontend/translations/tr.po b/frontend/translations/tr.po index f1b89d609..6bb98b493 100644 --- a/frontend/translations/tr.po +++ b/frontend/translations/tr.po @@ -2255,18 +2255,10 @@ msgstr "Piksele tutturmayı etkinleştir" msgid "workspace.header.menu.hide-artboard-names" msgstr "Çalışma yüzeyi adlarını gizle" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-assets" -msgstr "Varlıkları gizle" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-grid" msgstr "Izgaraları gizle" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-layers" -msgstr "Katmanları gizle" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-palette" msgstr "Renk paletini gizle" @@ -2306,18 +2298,10 @@ msgstr "Tümünü seç" msgid "workspace.header.menu.show-artboard-names" msgstr "Çalışma yüzeylerinin adlarını göster" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-assets" -msgstr "Varlıkları göster" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-grid" msgstr "Izgarayı göster" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "Katmanları göster" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-palette" msgstr "Renk paletini göster" diff --git a/frontend/translations/zh_CN.po b/frontend/translations/zh_CN.po index a5b6724ae..1d2d0cbc0 100644 --- a/frontend/translations/zh_CN.po +++ b/frontend/translations/zh_CN.po @@ -2110,18 +2110,10 @@ msgstr "启用像素对齐" msgid "workspace.header.menu.hide-artboard-names" msgstr "隐藏画板名称" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-assets" -msgstr "隐藏素材" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-grid" msgstr "隐藏网格" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.hide-layers" -msgstr "隐藏图层" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.hide-palette" msgstr "隐藏调色盘" @@ -2161,18 +2153,10 @@ msgstr "全选" msgid "workspace.header.menu.show-artboard-names" msgstr "显示画板名称" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-assets" -msgstr "显示素材" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-grid" msgstr "显示网格" -#: src/app/main/ui/workspace/header.cljs -msgid "workspace.header.menu.show-layers" -msgstr "显示图层" - #: src/app/main/ui/workspace/header.cljs msgid "workspace.header.menu.show-palette" msgstr "显示调色盘"