From 57ec76624a66fdb5ed69558c7ef19ce1efffc8ec Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 17 May 2021 22:25:17 +0100 Subject: [PATCH] Theme import and export buttons --- translations/ar.json | 4 +++- translations/ca.json | 4 +++- translations/cy.json | 4 +++- translations/de.json | 4 +++- translations/en.json | 4 +++- translations/es.json | 4 +++- translations/fr.json | 4 +++- translations/ga.json | 4 +++- translations/hi.json | 4 +++- translations/it.json | 4 +++- translations/ja.json | 4 +++- translations/ku.json | 4 +++- translations/oc.json | 4 +++- translations/pt.json | 4 +++- translations/ru.json | 4 +++- translations/zh.json | 4 +++- webapp_profile.py | 13 +++++++++++++ 17 files changed, 61 insertions(+), 16 deletions(-) diff --git a/translations/ar.json b/translations/ar.json index 3c148225a..88649d5fe 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "مدينة للبيانات الوصفية لصور GPS المخادعة", "Occupation": "الاحتلال", "Artists": "الفنانين", - "Graphic Design": "التصميم الجرافيكي" + "Graphic Design": "التصميم الجرافيكي", + "Import Theme": "استيراد الموضوع", + "Export Theme": "موضوع التصدير" } diff --git a/translations/ca.json b/translations/ca.json index ac083d8b0..680c9d1c3 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "Ciutat per a metadades d'imatges GPS falsificades", "Occupation": "Ocupació", "Artists": "Artistes", - "Graphic Design": "Disseny gràfic" + "Graphic Design": "Disseny gràfic", + "Import Theme": "Importació temàtica", + "Export Theme": "Tema d'exportació" } diff --git a/translations/cy.json b/translations/cy.json index 92be8ccfc..9ebef4a9c 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "Dinas ar gyfer metadata delwedd GPS spoofed", "Occupation": "Ngalwedigaeth", "Artists": "Artistiaid", - "Graphic Design": "Dylunio Graffig" + "Graphic Design": "Dylunio Graffig", + "Import Theme": "Thema Mewnforio", + "Export Theme": "Thema Allforio" } diff --git a/translations/de.json b/translations/de.json index 9d21db01f..dd04ed255 100644 --- a/translations/de.json +++ b/translations/de.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "Stadt für gefälschte GPS-Bildmetadaten", "Occupation": "Besetzung", "Artists": "Künstler", - "Graphic Design": "Grafikdesign" + "Graphic Design": "Grafikdesign", + "Import Theme": "Theme importieren", + "Export Theme": "Theme exportieren" } diff --git a/translations/en.json b/translations/en.json index f7b950842..6633fda6b 100644 --- a/translations/en.json +++ b/translations/en.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "City for spoofed GPS image metadata", "Occupation": "Occupation", "Artists": "Artists", - "Graphic Design": "Graphic Design" + "Graphic Design": "Graphic Design", + "Import Theme": "Import Theme", + "Export Theme": "Export Theme" } diff --git a/translations/es.json b/translations/es.json index 9f79db640..0d3099a2c 100644 --- a/translations/es.json +++ b/translations/es.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "Ciudad para metadatos de imagen GPS falsificados", "Occupation": "Ocupación", "Artists": "Artistas", - "Graphic Design": "Diseño gráfico" + "Graphic Design": "Diseño gráfico", + "Import Theme": "Tema de importación", + "Export Theme": "Tema de exportación" } diff --git a/translations/fr.json b/translations/fr.json index bdc6e3280..f49bd5d2b 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "Ville pour les métadonnées d'image GPS falsifiées", "Occupation": "Occupation", "Artists": "Artistes", - "Graphic Design": "Conception graphique" + "Graphic Design": "Conception graphique", + "Import Theme": "Import thème", + "Export Theme": "Thème d'exportation" } diff --git a/translations/ga.json b/translations/ga.json index 2755d94a0..5ac04d5f0 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "Cathair le haghaidh meiteashonraí íomhá GPS spoofed", "Occupation": "Slí bheatha", "Artists": "Ealaíontóirí", - "Graphic Design": "Dearadh grafach" + "Graphic Design": "Dearadh grafach", + "Import Theme": "Téama Iompórtáil", + "Export Theme": "Téama Easpórtála" } diff --git a/translations/hi.json b/translations/hi.json index 77cd7bb76..c401ae54e 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "स्पूफ जीपीएस जीपीएस मेटाडेटा के लिए शहर", "Occupation": "व्यवसाय", "Artists": "कलाकार की", - "Graphic Design": "ग्राफ़िक डिज़ाइन" + "Graphic Design": "ग्राफ़िक डिज़ाइन", + "Import Theme": "आयात विषय", + "Export Theme": "निर्यात विषय" } diff --git a/translations/it.json b/translations/it.json index cd8b2cd25..d35b5f80a 100644 --- a/translations/it.json +++ b/translations/it.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "Città per metadati di immagini GPS falsificate", "Occupation": "Occupazione", "Artists": "Artiste", - "Graphic Design": "Graphic design" + "Graphic Design": "Graphic design", + "Import Theme": "Tema dell'importazione", + "Export Theme": "Esportare tema" } diff --git a/translations/ja.json b/translations/ja.json index 25935464c..3d35359d2 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "なりすましGPS画像メタデータの都市", "Occupation": "職業", "Artists": "アーティスト", - "Graphic Design": "グラフィックデザイン" + "Graphic Design": "グラフィックデザイン", + "Import Theme": "輸入テーマ", + "Export Theme": "テーマをエクスポートします" } diff --git a/translations/ku.json b/translations/ku.json index b4dd76fc2..bc81ed21e 100644 --- a/translations/ku.json +++ b/translations/ku.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "Bajar ji bo metadata wêneya GPS ya xapînok", "Occupation": "Sinet", "Artists": "Hunermend", - "Graphic Design": "Sêwirana grafîkî" + "Graphic Design": "Sêwirana grafîkî", + "Import Theme": "Mijara Import", + "Export Theme": "Mijara Export" } diff --git a/translations/oc.json b/translations/oc.json index b57a869f4..dddf3f19c 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -440,5 +440,7 @@ "City for spoofed GPS image metadata": "City for spoofed GPS image metadata", "Occupation": "Occupation", "Artists": "Artists", - "Graphic Design": "Graphic Design" + "Graphic Design": "Graphic Design", + "Import Theme": "Import Theme", + "Export Theme": "Export Theme" } diff --git a/translations/pt.json b/translations/pt.json index aa3508853..0673e74ae 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "Cidade para metadados de imagem GPS falsificados", "Occupation": "Ocupação", "Artists": "Artistas", - "Graphic Design": "Design gráfico" + "Graphic Design": "Design gráfico", + "Import Theme": "Importar tema", + "Export Theme": "Exportar tema" } diff --git a/translations/ru.json b/translations/ru.json index 6aad20e8f..9a29cf93e 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "Город для поддельных метаданных изображения GPS", "Occupation": "Занятие", "Artists": "Художники", - "Graphic Design": "Графический дизайн" + "Graphic Design": "Графический дизайн", + "Import Theme": "Импортировать тему", + "Export Theme": "Экспортная тема" } diff --git a/translations/zh.json b/translations/zh.json index 81287ecc1..c3db57343 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -444,5 +444,7 @@ "City for spoofed GPS image metadata": "欺骗性GPS影像元数据的城市", "Occupation": "职业", "Artists": "艺人", - "Graphic Design": "平面设计" + "Graphic Design": "平面设计", + "Import Theme": "进口主题", + "Export Theme": "出口主题" } diff --git a/webapp_profile.py b/webapp_profile.py index 40988462f..d2ea33848 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -1085,6 +1085,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, """Shows the edit profile screen """ imageFormats = getImageFormats() + themeFormats = '.zip, .gz' path = path.replace('/inbox', '').replace('/outbox', '') path = path.replace('/shares', '') nickname = getNicknameFromActor(path) @@ -1334,6 +1335,18 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, '