mirror of https://gitlab.com/bashrc2/epicyon
Dyslexic font checkbox in theme settings
parent
cdb9b7cb4b
commit
df9a2e875c
|
@ -6253,6 +6253,14 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
else:
|
||||
disable_grayscale(base_dir)
|
||||
|
||||
# dyslexic font
|
||||
if path.startswith('/users/' + admin_nickname + '/') or \
|
||||
is_artist(base_dir, nickname):
|
||||
self.server.dyslexic_font = False
|
||||
if fields.get('dyslexicFont'):
|
||||
if fields['dyslexicFont'] == 'on':
|
||||
self.server.dyslexic_font = True
|
||||
|
||||
# low bandwidth images checkbox
|
||||
if path.startswith('/users/' + admin_nickname + '/') or \
|
||||
is_artist(base_dir, nickname):
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "إعادة ضبط",
|
||||
"Encryption Keys": "مفاتيح التشفير",
|
||||
"Filtered words within bio": "كلمات مفلترة داخل السيرة الذاتية",
|
||||
"Write your news report": "اكتب تقريرك الإخباري"
|
||||
"Write your news report": "اكتب تقريرك الإخباري",
|
||||
"Dyslexic font": "الخط المعسر القراءة"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "Restableix",
|
||||
"Encryption Keys": "Claus de xifratge",
|
||||
"Filtered words within bio": "Paraules filtrades dins de la biografia",
|
||||
"Write your news report": "Escriu la teva notícia"
|
||||
"Write your news report": "Escriu la teva notícia",
|
||||
"Dyslexic font": "Tipus de lletra dislèxic"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "Ail gychwyn",
|
||||
"Encryption Keys": "Allweddi Amgryptio",
|
||||
"Filtered words within bio": "Geiriau wedi'u hidlo o fewn cofiant",
|
||||
"Write your news report": "Ysgrifennwch eich adroddiad newyddion"
|
||||
"Write your news report": "Ysgrifennwch eich adroddiad newyddion",
|
||||
"Dyslexic font": "Ffont dyslecsig"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "Zurücksetzen",
|
||||
"Encryption Keys": "Verschlüsselungsschlüssel",
|
||||
"Filtered words within bio": "Gefilterte Wörter in der Biografie",
|
||||
"Write your news report": "Schreiben Sie Ihren Nachrichtenbericht"
|
||||
"Write your news report": "Schreiben Sie Ihren Nachrichtenbericht",
|
||||
"Dyslexic font": "Schriftart für Legastheniker"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "Reset",
|
||||
"Encryption Keys": "Encryption Keys",
|
||||
"Filtered words within bio": "Filtered words within bio",
|
||||
"Write your news report": "Write your news report"
|
||||
"Write your news report": "Write your news report",
|
||||
"Dyslexic font": "Dyslexic font"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "Reiniciar",
|
||||
"Encryption Keys": "Claves de cifrado",
|
||||
"Filtered words within bio": "Palabras filtradas dentro de la biografía",
|
||||
"Write your news report": "Escribe tu informe de noticias"
|
||||
"Write your news report": "Escribe tu informe de noticias",
|
||||
"Dyslexic font": "Fuente disléxica"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "Réinitialiser",
|
||||
"Encryption Keys": "Clés de cryptage",
|
||||
"Filtered words within bio": "Mots filtrés dans la biographie",
|
||||
"Write your news report": "Rédigez votre reportage"
|
||||
"Write your news report": "Rédigez votre reportage",
|
||||
"Dyslexic font": "Police dyslexique"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "Athshocraigh",
|
||||
"Encryption Keys": "Eochracha Criptithe",
|
||||
"Filtered words within bio": "Focail scagtha laistigh den bheathaisnéis",
|
||||
"Write your news report": "Scríobh do thuairisc nuachta"
|
||||
"Write your news report": "Scríobh do thuairisc nuachta",
|
||||
"Dyslexic font": "Cló disléicseach"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "रीसेट",
|
||||
"Encryption Keys": "एन्क्रिप्शन कुंजी",
|
||||
"Filtered words within bio": "जीवनी के भीतर फ़िल्टर किए गए शब्द",
|
||||
"Write your news report": "अपनी समाचार रिपोर्ट लिखें"
|
||||
"Write your news report": "अपनी समाचार रिपोर्ट लिखें",
|
||||
"Dyslexic font": "डिस्लेक्सिक फ़ॉन्ट"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "Ripristina",
|
||||
"Encryption Keys": "Chiavi di crittografia",
|
||||
"Filtered words within bio": "Parole filtrate all'interno della biografia",
|
||||
"Write your news report": "Scrivi il tuo reportage"
|
||||
"Write your news report": "Scrivi il tuo reportage",
|
||||
"Dyslexic font": "Carattere dislessico"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "リセット",
|
||||
"Encryption Keys": "暗号化キー",
|
||||
"Filtered words within bio": "伝記内のフィルタリングされた単語",
|
||||
"Write your news report": "ニュースレポートを書く"
|
||||
"Write your news report": "ニュースレポートを書く",
|
||||
"Dyslexic font": "失読症フォント"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "Reset",
|
||||
"Encryption Keys": "Bişkojkên Şîfrekirinê",
|
||||
"Filtered words within bio": "Peyvên fîlterkirî di hundurê biyografiyê de",
|
||||
"Write your news report": "Rapora xwe ya nûçeyan binivîsin"
|
||||
"Write your news report": "Rapora xwe ya nûçeyan binivîsin",
|
||||
"Dyslexic font": "Font Dyslexic"
|
||||
}
|
||||
|
|
|
@ -499,5 +499,6 @@
|
|||
"Reset": "Reset",
|
||||
"Encryption Keys": "Encryption Keys",
|
||||
"Filtered words within bio": "Filtered words within bio",
|
||||
"Write your news report": "Write your news report"
|
||||
"Write your news report": "Write your news report",
|
||||
"Dyslexic font": "Dyslexic font"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "Redefinir",
|
||||
"Encryption Keys": "Chaves de criptografia",
|
||||
"Filtered words within bio": "Palavras filtradas na biografia",
|
||||
"Write your news report": "Escreva sua reportagem"
|
||||
"Write your news report": "Escreva sua reportagem",
|
||||
"Dyslexic font": "Fonte disléxica"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "Сброс настроек",
|
||||
"Encryption Keys": "Ключи шифрования",
|
||||
"Filtered words within bio": "Отфильтрованные слова в биографии",
|
||||
"Write your news report": "Напишите свой новостной репортаж"
|
||||
"Write your news report": "Напишите свой новостной репортаж",
|
||||
"Dyslexic font": "Дислексический шрифт"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "Weka upya",
|
||||
"Encryption Keys": "Vifunguo vya Usimbaji",
|
||||
"Filtered words within bio": "Maneno yaliyochujwa ndani ya wasifu",
|
||||
"Write your news report": "Andika ripoti yako ya habari"
|
||||
"Write your news report": "Andika ripoti yako ya habari",
|
||||
"Dyslexic font": "Fonti ya Dyslexic"
|
||||
}
|
||||
|
|
|
@ -503,5 +503,6 @@
|
|||
"Reset": "重启",
|
||||
"Encryption Keys": "加密密钥",
|
||||
"Filtered words within bio": "传记中的过滤词",
|
||||
"Write your news report": "写你的新闻报道"
|
||||
"Write your news report": "写你的新闻报道",
|
||||
"Dyslexic font": "阅读障碍字体"
|
||||
}
|
||||
|
|
|
@ -1239,6 +1239,10 @@ def _html_themes_dropdown(base_dir: str, translate: {}) -> str:
|
|||
grayscale = _grayscale_enabled(base_dir)
|
||||
themes_dropdown += \
|
||||
edit_check_box(translate['Grayscale'], 'grayscale', grayscale)
|
||||
dyslexic_font = get_config_param(base_dir, 'dyslexicFont')
|
||||
themes_dropdown += \
|
||||
edit_check_box(translate['Dyslexic font'], 'dyslexicFont',
|
||||
dyslexic_font)
|
||||
themes_dropdown += ' <select id="themeDropdown" ' + \
|
||||
'name="themeDropdown" class="theme">'
|
||||
for theme_name in themes:
|
||||
|
|
Loading…
Reference in New Issue