mirror of
https://github.com/jointakahe/takahe.git
synced 2025-06-05 18:28:49 +00:00
allow user to unselect a preferred posting language
This commit is contained in:
parent
710b7b4caa
commit
9204ae5a93
1 changed files with 10 additions and 5 deletions
|
@ -21,11 +21,16 @@ class PostingPage(SettingsPage):
|
|||
"title": "Default posting language",
|
||||
"help_text": "",
|
||||
"choices": sorted(
|
||||
[
|
||||
(lang.alpha_2, lang.name)
|
||||
for lang in pycountry.languages
|
||||
if hasattr(lang, "alpha_2")
|
||||
],
|
||||
(
|
||||
[
|
||||
("", ""),
|
||||
]
|
||||
+ [
|
||||
(lang.alpha_2, lang.name)
|
||||
for lang in pycountry.languages
|
||||
if hasattr(lang, "alpha_2")
|
||||
]
|
||||
),
|
||||
key=lambda lang: lang[1],
|
||||
),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue