Separate reply controls section on edit profile screen

main
Bob Mottram 2024-09-01 13:59:00 +01:00
parent 0a19aef1f8
commit a738e1316e
29 changed files with 104 additions and 66 deletions

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "إضافة علامة مائية على الصور التي تم تحميلها",
"Pronouns": "الضمائر",
"Music": "موسيقى",
"Art": "فن"
"Art": "فن",
"Reply Controls": "عناصر التحكم في الرد"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "আপলোড করা ছবিগুলিতে একটি জলছাপ প্রয়োগ করুন",
"Pronouns": "সর্বনাম",
"Music": "সঙ্গীত",
"Art": "শিল্প"
"Art": "শিল্প",
"Reply Controls": "উত্তর নিয়ন্ত্রণ"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Apliqueu una marca d'aigua a les imatges penjades",
"Pronouns": "Els pronoms",
"Music": "Música",
"Art": "Art"
"Art": "Art",
"Reply Controls": "Controls de resposta"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Cymhwyso dyfrnod i ddelweddau sydd wedi'u llwytho i fyny",
"Pronouns": "Rhagenwau",
"Music": "Cerddoriaeth",
"Art": "Celf"
"Art": "Celf",
"Reply Controls": "Rheolaethau Ymateb"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Hochgeladenen Bildern ein Wasserzeichen hinzufügen",
"Pronouns": "Pronomen",
"Music": "Musik",
"Art": "Kunst"
"Art": "Kunst",
"Reply Controls": "Antwortsteuerung"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Εφαρμόστε ένα υδατογράφημα στις μεταφορτωμένες εικόνες",
"Pronouns": "Αντωνυμίες",
"Music": "Μουσική",
"Art": "Τέχνη"
"Art": "Τέχνη",
"Reply Controls": "Στοιχεία ελέγχου απάντησης"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Apply a watermark to uploaded images",
"Pronouns": "Pronouns",
"Music": "Music",
"Art": "Art"
"Art": "Art",
"Reply Controls": "Reply Controls"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Aplicar una marca de agua a las imágenes cargadas",
"Pronouns": "Pronombres",
"Music": "Música",
"Art": "Arte"
"Art": "Arte",
"Reply Controls": "Controles de respuesta"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "اعمال واترمارک روی تصاویر آپلود شده",
"Pronouns": "ضمایر",
"Music": "موسیقی",
"Art": "هنر"
"Art": "هنر",
"Reply Controls": "کنترل های پاسخ"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Lisää ladattuihin kuviin vesileima",
"Pronouns": "Pronominit",
"Music": "Musiikki",
"Art": "Taide"
"Art": "Taide",
"Reply Controls": "Vastausohjaimet"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Appliquer un filigrane aux images téléchargées",
"Pronouns": "Pronoms",
"Music": "Musique",
"Art": "Art"
"Art": "Art",
"Reply Controls": "Contrôles de réponse"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Cuir comhartha uisce i bhfeidhm ar íomhánna uaslódáilte",
"Pronouns": "Forainmneacha",
"Music": "Ceol",
"Art": "Ealaín"
"Art": "Ealaín",
"Reply Controls": "Rialuithe Freagra"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "החל סימן מים על תמונות שהועלו",
"Pronouns": "כינויים",
"Music": "מוּסִיקָה",
"Art": "אָמָנוּת"
"Art": "אָמָנוּת",
"Reply Controls": "פקדי תגובה"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "अपलोड की गई छवियों पर वॉटरमार्क लागू करें",
"Pronouns": "सर्वनाम",
"Music": "संगीत",
"Art": "कला"
"Art": "कला",
"Reply Controls": "उत्तर नियंत्रण"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Applicare una filigrana alle immagini caricate",
"Pronouns": "Pronomi",
"Music": "Musica",
"Art": "Arte"
"Art": "Arte",
"Reply Controls": "Controlli di risposta"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "アップロードした画像に透かしを適用する",
"Pronouns": "代名詞",
"Music": "音楽",
"Art": "美術"
"Art": "美術",
"Reply Controls": "返信コントロール"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "업로드한 이미지에 워터마크를 적용합니다",
"Pronouns": "대명사",
"Music": "음악",
"Art": "미술"
"Art": "미술",
"Reply Controls": "답변 제어"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Li ser wêneyên barkirî ava nîşanek bicîh bikin",
"Pronouns": "Cînavk",
"Music": "Mûzîk",
"Art": "Fen"
"Art": "Fen",
"Reply Controls": "Reply Controls"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Een watermerk toepassen op geüploade afbeeldingen",
"Pronouns": "Voornaamwoorden",
"Music": "Muziek",
"Art": "Kunst"
"Art": "Kunst",
"Reply Controls": "Antwoordbedieningen"
}

View File

@ -695,5 +695,6 @@
"Apply a watermark to uploaded images": "Apply a watermark to uploaded images",
"Pronouns": "Pronouns",
"Music": "Music",
"Art": "Art"
"Art": "Art",
"Reply Controls": "Reply Controls"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Zastosuj znak wodny do przesłanych obrazów",
"Pronouns": "Zaimki",
"Music": "Muzyka",
"Art": "Sztuka"
"Art": "Sztuka",
"Reply Controls": "Kontrola odpowiedzi"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Aplicar uma marca de água nas imagens enviadas",
"Pronouns": "Pronomes",
"Music": "Música",
"Art": "Arte"
"Art": "Arte",
"Reply Controls": "Controles de resposta"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Накладывать водяной знак на загружаемые изображения",
"Pronouns": "Местоимения",
"Music": "Музыка",
"Art": "Искусство"
"Art": "Искусство",
"Reply Controls": "Ответить Элементы управления"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Tumia watermark kwa picha zilizopakiwa",
"Pronouns": "Viwakilishi",
"Music": "Muziki",
"Art": "Sanaa"
"Art": "Sanaa",
"Reply Controls": "Vidhibiti vya Kujibu"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Yüklenen görsellere filigran uygulayın",
"Pronouns": "Zamirler",
"Music": "Müzik",
"Art": "Sanat"
"Art": "Sanat",
"Reply Controls": "Cevap Kontrolleri"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "Застосування водяного знака до завантажених зображень",
"Pronouns": "Займенники",
"Music": "музика",
"Art": "ст"
"Art": "ст",
"Reply Controls": "Елементи керування відповідями"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "צולייגן אַ וואָטערמאַרק צו ופּלאָאַדעד בילדער",
"Pronouns": "פּראָנאָונס",
"Music": "מוזיק",
"Art": "קונסט"
"Art": "קונסט",
"Reply Controls": "ענטפער קאָנטראָלס"
}

View File

@ -699,5 +699,6 @@
"Apply a watermark to uploaded images": "将水印应用于上传的图像",
"Pronouns": "代词",
"Music": "音乐",
"Art": "艺术"
"Art": "艺术",
"Reply Controls": "回复控制"
}

View File

@ -2915,31 +2915,15 @@ def _html_edit_profile_encryption_keys(pgp_fingerprint: str,
return edit_profile_form
def _html_edit_profile_options(is_admin: bool,
manually_approves_followers: str,
reject_spam_actors: str,
is_bot: str, is_group: str,
follow_dms: str, remove_twitter: str,
notify_likes: str, notify_reactions: str,
hide_like_button: str,
hide_reaction_button: str,
translate: {}, bold_reading: bool,
nickname: str,
min_images_for_accounts: [],
reverse_sequence: [],
show_quote_toots: bool,
show_vote_posts: bool,
show_replies_followers: bool,
show_replies_mutuals: bool,
hide_follows: bool,
premium: bool,
no_reply_boosts: bool,
no_seen_posts: bool,
watermark_enabled: bool) -> str:
"""option checkboxes section of edit profile screen
def _html_edit_profile_reply_controls(translate: {},
follow_dms: bool,
premium: bool,
show_replies_followers: bool,
show_replies_mutuals: bool,
no_reply_boosts: bool) -> str:
"""option checkboxes for reply controls
"""
# reply controls
edit_profile_form = ' <div class="container">\n'
edit_profile_form = begin_edit_section(translate['Reply Controls'])
edit_profile_form += \
edit_check_box(translate['Only people I follow can send me DMs'],
'followDMs', follow_dms)
@ -2959,10 +2943,31 @@ def _html_edit_profile_options(is_admin: bool,
no_reply_boosts_str = translate["Don't show boosted replies"]
edit_profile_form += \
edit_check_box(no_reply_boosts_str, 'noReplyBoosts', no_reply_boosts)
edit_profile_form += ' </div>\n'
edit_profile_form += end_edit_section()
return edit_profile_form
# other options
edit_profile_form += ' <div class="container">\n'
def _html_edit_profile_options(is_admin: bool,
manually_approves_followers: str,
reject_spam_actors: str,
is_bot: str, is_group: str,
remove_twitter: str,
notify_likes: str, notify_reactions: str,
hide_like_button: str,
hide_reaction_button: str,
translate: {}, bold_reading: bool,
nickname: str,
min_images_for_accounts: [],
reverse_sequence: [],
show_quote_toots: bool,
show_vote_posts: bool,
hide_follows: bool,
premium: bool,
no_seen_posts: bool,
watermark_enabled: bool) -> str:
"""option checkboxes section of edit profile screen
"""
edit_profile_form = ' <div class="container">\n'
edit_profile_form += \
edit_check_box(translate['Premium account'], 'premiumAccount', premium)
approve_followers_str = translate['Approve follower requests']
@ -3493,18 +3498,23 @@ def html_edit_profile(server, translate: {},
# Option checkboxes
edit_profile_form += \
_html_edit_profile_options(is_admin, manually_approves_followers,
reject_spam_actors,
is_bot, is_group, follow_dms,
remove_twitter,
notify_likes, notify_reactions,
hide_like_button, hide_reaction_button,
translate, bold_reading,
nickname, min_images_for_accounts,
reject_spam_actors, is_bot, is_group,
remove_twitter, notify_likes,
notify_reactions, hide_like_button,
hide_reaction_button, translate,
bold_reading, nickname,
min_images_for_accounts,
reverse_sequence, show_quote_toots,
show_vote_posts, show_replies_followers,
show_replies_mutuals, hide_follows,
premium, no_reply_boosts,
no_seen_posts, watermark_enabled)
show_vote_posts, hide_follows,
premium, no_seen_posts, watermark_enabled)
# reply controls
edit_profile_form += \
_html_edit_profile_reply_controls(translate, follow_dms,
premium,
show_replies_followers,
show_replies_mutuals,
no_reply_boosts)
# Contact information
edit_profile_form += \