From 56fdc81fae92c78df13869eb50d10083b5d3ef3b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 24 Nov 2020 17:35:33 +0000 Subject: [PATCH] Translations for roles --- translations/ar.json | 6 +++++- translations/ca.json | 6 +++++- translations/cy.json | 6 +++++- translations/de.json | 6 +++++- translations/en.json | 6 +++++- translations/es.json | 6 +++++- translations/fr.json | 6 +++++- translations/ga.json | 6 +++++- translations/hi.json | 6 +++++- translations/it.json | 6 +++++- translations/ja.json | 6 +++++- translations/oc.json | 6 +++++- translations/pt.json | 6 +++++- translations/ru.json | 6 +++++- translations/zh.json | 6 +++++- webapp_profile.py | 8 ++++++-- 16 files changed, 81 insertions(+), 17 deletions(-) diff --git a/translations/ar.json b/translations/ar.json index b9466091..ac34087e 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "تغذية RSS لمدونتك", "Create a new shared item": "إنشاء عنصر مشترك جديد", "Rc3": "Rc3", - "Hashtag origins": "أصول الهاشتاق" + "Hashtag origins": "أصول الهاشتاق", + "admin": "مشرف", + "moderator": "الوسيط", + "editor": "محرر", + "delegator": "المفوض" } diff --git a/translations/ca.json b/translations/ca.json index 79570c6e..34a8141b 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "Feed RSS del vostre bloc", "Create a new shared item": "Creeu un element compartit nou", "Rc3": "Rc3", - "Hashtag origins": "Orígens de hashtag" + "Hashtag origins": "Orígens de hashtag", + "admin": "administrador", + "moderator": "moderador", + "editor": "editor", + "delegator": "delegador" } diff --git a/translations/cy.json b/translations/cy.json index 25746598..d0e7272a 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "Porthiant RSS ar gyfer eich blog", "Create a new shared item": "Creu eitem newydd a rennir", "Rc3": "Rc3", - "Hashtag origins": "Gwreiddiau Hashtag" + "Hashtag origins": "Gwreiddiau Hashtag", + "admin": "admin", + "moderator": "cymedrolwr", + "editor": "golygydd", + "delegator": "dirprwy" } diff --git a/translations/de.json b/translations/de.json index be34734d..92b38bcb 100644 --- a/translations/de.json +++ b/translations/de.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "RSS-Feed für Ihr Blog", "Create a new shared item": "Erstellen Sie ein neues freigegebenes Element", "Rc3": "Rc3", - "Hashtag origins": "Hashtag-Ursprünge" + "Hashtag origins": "Hashtag-Ursprünge", + "admin": "Administrator", + "moderator": "Moderator", + "editor": "Editor", + "delegator": "Delegator" } diff --git a/translations/en.json b/translations/en.json index 695b6dfc..16bbf7a1 100644 --- a/translations/en.json +++ b/translations/en.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "RSS feed for your blog", "Create a new shared item": "Create a new shared item", "Rc3": "Rc3", - "Hashtag origins": "Hashtag origins" + "Hashtag origins": "Hashtag origins", + "admin": "admin", + "moderator": "moderator", + "editor": "editor", + "delegator": "delegator" } diff --git a/translations/es.json b/translations/es.json index a6a6af08..707b600b 100644 --- a/translations/es.json +++ b/translations/es.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "Fuente RSS para tu blog", "Create a new shared item": "Crea un nuevo elemento compartido", "Rc3": "Rc3", - "Hashtag origins": "Orígenes del hashtag" + "Hashtag origins": "Orígenes del hashtag", + "admin": "administración", + "moderator": "moderador", + "editor": "editor", + "delegator": "delegador" } diff --git a/translations/fr.json b/translations/fr.json index 9891601b..c566809b 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "Flux RSS pour votre blog", "Create a new shared item": "Créer un nouvel élément partagé", "Rc3": "Rc3", - "Hashtag origins": "Origines des hashtags" + "Hashtag origins": "Origines des hashtags", + "admin": "admin", + "moderator": "modérateur", + "editor": "éditeur", + "delegator": "délégant" } diff --git a/translations/ga.json b/translations/ga.json index edda6258..0d3d06c2 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "Fotha RSS do do bhlag", "Create a new shared item": "Cruthaigh mír nua roinnte", "Rc3": "Rc3", - "Hashtag origins": "Bunús Hashtag" + "Hashtag origins": "Bunús Hashtag", + "admin": "admin", + "moderator": "modhnóir", + "editor": "eagarthóir", + "delegator": "toscaire" } diff --git a/translations/hi.json b/translations/hi.json index a036404e..a05b0c60 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "RSS आपके ब्लॉग के लिए फ़ीड करता है", "Create a new shared item": "एक नया साझा आइटम बनाएं", "Rc3": "Rc3", - "Hashtag origins": "हैशटैग की उत्पत्ति" + "Hashtag origins": "हैशटैग की उत्पत्ति", + "admin": "व्यवस्थापक", + "moderator": "मध्यस्थ", + "editor": "संपादक", + "delegator": "डैलिगेटर" } diff --git a/translations/it.json b/translations/it.json index 0e6d10df..5fabb662 100644 --- a/translations/it.json +++ b/translations/it.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "Feed RSS per il tuo blog", "Create a new shared item": "Crea un nuovo elemento condiviso", "Rc3": "Rc3", - "Hashtag origins": "Origini hashtag" + "Hashtag origins": "Origini hashtag", + "admin": "admin", + "moderator": "moderatore", + "editor": "editore", + "delegator": "delegatore" } diff --git a/translations/ja.json b/translations/ja.json index b7e8a027..84f50b8c 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "ブログのRSSフィード", "Create a new shared item": "新しい共有アイテムを作成する", "Rc3": "Rc3", - "Hashtag origins": "ハッシュタグの起源" + "Hashtag origins": "ハッシュタグの起源", + "admin": "管理者", + "moderator": "モデレータ", + "editor": "編集者", + "delegator": "委任者" } diff --git a/translations/oc.json b/translations/oc.json index 2a8664f0..5c49bb01 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -326,5 +326,9 @@ "RSS feed for your blog": "RSS feed for your blog", "Create a new shared item": "Create a new shared item", "Rc3": "Rc3", - "Hashtag origins": "Hashtag origins" + "Hashtag origins": "Hashtag origins", + "admin": "admin", + "moderator": "moderator", + "editor": "editor", + "delegator": "delegator" } diff --git a/translations/pt.json b/translations/pt.json index e0119ef9..e7f042be 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "Feed RSS para o seu blog", "Create a new shared item": "Crie um novo item compartilhado", "Rc3": "Rc3", - "Hashtag origins": "Origens de hashtag" + "Hashtag origins": "Origens de hashtag", + "admin": "admin", + "moderator": "moderador", + "editor": "editor", + "delegator": "delegador" } diff --git a/translations/ru.json b/translations/ru.json index 7431690e..ed8f9f2f 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "RSS-канал для вашего блога", "Create a new shared item": "Создать новый общий элемент", "Rc3": "Rc3", - "Hashtag origins": "Происхождение хэштегов" + "Hashtag origins": "Происхождение хэштегов", + "admin": "админ", + "moderator": "Модератор", + "editor": "редактор", + "delegator": "делегат" } diff --git a/translations/zh.json b/translations/zh.json index 89fb6816..b528d1e9 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -330,5 +330,9 @@ "RSS feed for your blog": "您博客的RSS供稿", "Create a new shared item": "创建一个新的共享项目", "Rc3": "Rc3", - "Hashtag origins": "标签起源" + "Hashtag origins": "标签起源", + "admin": "管理员", + "moderator": "主持人", + "editor": "编辑", + "delegator": "委托人" } diff --git a/webapp_profile.py b/webapp_profile.py index eae41fa8..841fcd32 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -664,7 +664,8 @@ def htmlProfile(rssIconAtTop: bool, maxItemsPerPage) if selected == 'roles': profileStr += \ - htmlProfileRoles(translate, nickname, domainFull, extraJson) + htmlProfileRoles(translate, nickname, domainFull, + extraJson) if selected == 'skills': profileStr += \ htmlProfileSkills(translate, nickname, domainFull, extraJson) @@ -811,7 +812,10 @@ def htmlProfileRoles(translate: {}, nickname: str, domain: str, '
\n

' + project + \ '

\n
\n' for role in rolesList: - profileStr += '

' + role + '

\n' + if translate.get(role): + profileStr += '

' + translate[role] + '

\n' + else: + profileStr += '

' + role + '

\n' profileStr += '
\n' if len(profileStr) == 0: profileStr += \