Searchable by dropdown

main
Bob Mottram 2024-10-12 11:26:17 +01:00
parent 8a07b8d924
commit 95c8e3ea48
29 changed files with 112 additions and 28 deletions

View File

@ -700,5 +700,7 @@
"Pronouns": "الضمائر",
"Music": "موسيقى",
"Art": "فن",
"Reply Controls": "عناصر التحكم في الرد"
"Reply Controls": "عناصر التحكم في الرد",
"Searchable by": "قابلة للبحث بواسطة",
"Yourself": "نفسك"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "সর্বনাম",
"Music": "সঙ্গীত",
"Art": "শিল্প",
"Reply Controls": "উত্তর নিয়ন্ত্রণ"
"Reply Controls": "উত্তর নিয়ন্ত্রণ",
"Searchable by": "দ্বারা অনুসন্ধানযোগ্য",
"Yourself": "নিজেকে"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Els pronoms",
"Music": "Música",
"Art": "Art",
"Reply Controls": "Controls de resposta"
"Reply Controls": "Controls de resposta",
"Searchable by": "Cercable per",
"Yourself": "Tu mateix"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Rhagenwau",
"Music": "Cerddoriaeth",
"Art": "Celf",
"Reply Controls": "Rheolaethau Ymateb"
"Reply Controls": "Rheolaethau Ymateb",
"Searchable by": "Chwiliadwy gan",
"Yourself": "Eich Hun"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Pronomen",
"Music": "Musik",
"Art": "Kunst",
"Reply Controls": "Antwortsteuerung"
"Reply Controls": "Antwortsteuerung",
"Searchable by": "Durchsuchbar nach",
"Yourself": "Selbst"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Αντωνυμίες",
"Music": "Μουσική",
"Art": "Τέχνη",
"Reply Controls": "Στοιχεία ελέγχου απάντησης"
"Reply Controls": "Στοιχεία ελέγχου απάντησης",
"Searchable by": "Δυνατότητα αναζήτησης από",
"Yourself": "Σύ ο ίδιος"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Pronouns",
"Music": "Music",
"Art": "Art",
"Reply Controls": "Reply Controls"
"Reply Controls": "Reply Controls",
"Searchable by": "Searchable by",
"Yourself": "Yourself"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Pronombres",
"Music": "Música",
"Art": "Arte",
"Reply Controls": "Controles de respuesta"
"Reply Controls": "Controles de respuesta",
"Searchable by": "Buscable por",
"Yourself": "Tú mismo"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "ضمایر",
"Music": "موسیقی",
"Art": "هنر",
"Reply Controls": "کنترل های پاسخ"
"Reply Controls": "کنترل های پاسخ",
"Searchable by": "قابل جستجو توسط",
"Yourself": "خودت"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Pronominit",
"Music": "Musiikki",
"Art": "Taide",
"Reply Controls": "Vastausohjaimet"
"Reply Controls": "Vastausohjaimet",
"Searchable by": "Haettavissa",
"Yourself": "itseäsi"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Pronoms",
"Music": "Musique",
"Art": "Art",
"Reply Controls": "Contrôles de réponse"
"Reply Controls": "Contrôles de réponse",
"Searchable by": "Recherchable par",
"Yourself": "Toi-même"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Forainmneacha",
"Music": "Ceol",
"Art": "Ealaín",
"Reply Controls": "Rialuithe Freagra"
"Reply Controls": "Rialuithe Freagra",
"Searchable by": "Inchuardaithe ag",
"Yourself": "Tú féin"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "כינויים",
"Music": "מוּסִיקָה",
"Art": "אָמָנוּת",
"Reply Controls": "פקדי תגובה"
"Reply Controls": "פקדי תגובה",
"Searchable by": "ניתן לחיפוש לפי",
"Yourself": "עַצמְךָ"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "सर्वनाम",
"Music": "संगीत",
"Art": "कला",
"Reply Controls": "उत्तर नियंत्रण"
"Reply Controls": "उत्तर नियंत्रण",
"Searchable by": "द्वारा खोजा जा सकता है",
"Yourself": "अपने आप को"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Pronomi",
"Music": "Musica",
"Art": "Arte",
"Reply Controls": "Controlli di risposta"
"Reply Controls": "Controlli di risposta",
"Searchable by": "Ricercabile per",
"Yourself": "Te stesso"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "代名詞",
"Music": "音楽",
"Art": "美術",
"Reply Controls": "返信コントロール"
"Reply Controls": "返信コントロール",
"Searchable by": "検索可能",
"Yourself": "あなた自身"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "대명사",
"Music": "음악",
"Art": "미술",
"Reply Controls": "답변 제어"
"Reply Controls": "답변 제어",
"Searchable by": "검색 가능",
"Yourself": "당신 자신"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Cînavk",
"Music": "Mûzîk",
"Art": "Fen",
"Reply Controls": "Reply Controls"
"Reply Controls": "Reply Controls",
"Searchable by": "Lêgerîn ji hêla",
"Yourself": "Xwe"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Voornaamwoorden",
"Music": "Muziek",
"Art": "Kunst",
"Reply Controls": "Antwoordbedieningen"
"Reply Controls": "Antwoordbedieningen",
"Searchable by": "Doorzoekbaar op",
"Yourself": "Jezelf"
}

View File

@ -696,5 +696,7 @@
"Pronouns": "Pronouns",
"Music": "Music",
"Art": "Art",
"Reply Controls": "Reply Controls"
"Reply Controls": "Reply Controls",
"Searchable by": "Searchable by",
"Yourself": "Yourself"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Zaimki",
"Music": "Muzyka",
"Art": "Sztuka",
"Reply Controls": "Kontrola odpowiedzi"
"Reply Controls": "Kontrola odpowiedzi",
"Searchable by": "Można wyszukiwać według",
"Yourself": "Się"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Pronomes",
"Music": "Música",
"Art": "Arte",
"Reply Controls": "Controles de resposta"
"Reply Controls": "Controles de resposta",
"Searchable by": "Pesquisável por",
"Yourself": "Tu próprio"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Местоимения",
"Music": "Музыка",
"Art": "Искусство",
"Reply Controls": "Ответить Элементы управления"
"Reply Controls": "Ответить Элементы управления",
"Searchable by": "Поиск по",
"Yourself": "Сам"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Viwakilishi",
"Music": "Muziki",
"Art": "Sanaa",
"Reply Controls": "Vidhibiti vya Kujibu"
"Reply Controls": "Vidhibiti vya Kujibu",
"Searchable by": "Inaweza kutafutwa na",
"Yourself": "Mwenyewe"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Zamirler",
"Music": "Müzik",
"Art": "Sanat",
"Reply Controls": "Cevap Kontrolleri"
"Reply Controls": "Cevap Kontrolleri",
"Searchable by": "Aranabilir",
"Yourself": "Kendin"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "Займенники",
"Music": "музика",
"Art": "ст",
"Reply Controls": "Елементи керування відповідями"
"Reply Controls": "Елементи керування відповідями",
"Searchable by": "Можливість пошуку за",
"Yourself": "себе"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "פּראָנאָונס",
"Music": "מוזיק",
"Art": "קונסט",
"Reply Controls": "ענטפער קאָנטראָלס"
"Reply Controls": "ענטפער קאָנטראָלס",
"Searchable by": "זוך דורך",
"Yourself": "זיך"
}

View File

@ -700,5 +700,7 @@
"Pronouns": "代词",
"Music": "音乐",
"Art": "艺术",
"Reply Controls": "回复控制"
"Reply Controls": "回复控制",
"Searchable by": "可搜索",
"Yourself": "你自己"
}

View File

@ -965,6 +965,8 @@ def html_new_post(edit_post_params: {},
replies_section += \
'<input type="hidden" name="commentsEnabled" ' + \
'value="true">\n'
# Language used dropdown
supported_languages = get_supported_languages(base_dir)
languages_dropdown = '<select id="themeDropdown" ' + \
'name="languagesDropdown" class="theme">'
@ -986,6 +988,32 @@ def html_new_post(edit_post_params: {},
' <label class="labels">' + \
translate['Language used'] + '</label>\n'
replies_section += languages_dropdown
# searchable by dropdown
searchables = {
'yourself': translate['Yourself'],
'public': translate['Public'],
'followers': translate['Followers'],
'mutuals': translate['Mutuals']
}
searchable_by_dropdown = '<select id="themeDropdown" ' + \
'name="searchableByDropdown" class="theme">'
searchable_by_default = 'yourself'
for srch, srch_text in searchables.items():
if srch != searchable_by_default:
searchable_by_dropdown += \
' <option value="' + srch + '">' + \
srch_text + '</option>'
else:
searchable_by_dropdown += \
' <option value="' + srch + '" selected="">' + \
srch_text + '</option>'
replies_section += \
' <label class="labels">🔎 ' + \
translate['Searchable by'] + '</label>\n'
replies_section += searchable_by_dropdown
# buy link
buy_link_str = translate['Buy link']
replies_section += edit_text_field(buy_link_str, 'buyUrl',
default_buy_site, 'https://...')