Inital list creation form cluttered by language options

Bug #920045 reported by Florian Fuchs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DEFUNCT: Mailman 3 Web UI
New
Undecided
Unassigned

Bug Description

The inital list creation form is cluttered by a number of language checkboxes.

A number of things need to be changed:

1) Move this from the initial form to a different place within the list settings.

2) Detect the user's language (from settings.py).

3) Only show language options for languages that we have a translation for in the wui.

4) Contemplate using one multi select instead of dozens of checkboxes.

Revision history for this message
Florian Fuchs (flo-fuchs) wrote :
Revision history for this message
benste (benste) wrote :

3. → requires settings entry INSTALLED_MAILMAN_TRANSLATION

2. :
====
The get_language_info() function provides detailed information about languages:

>>> from django.utils.translation import get_language_info
>>> li = get_language_info('de')
>>> print li['name'], li['name_local'], li['bidi']
German Deutsch False

The name and name_local attributes of the dictionary contain the name of the language in English and in the language itself, respectively. The bidi attribute is True only for bi-directional languages.

The source of the language information is the django.conf.locale module. Similar access to this information is available for template code. See below.
====
And more important Template Tags:
{% get_current_language as LANGUAGE_CODE %}
{% get_available_languages as LANGUAGES %}
{% get_current_language_bidi as LANGUAGE_BIDI %}
====

More on
https://docs.djangoproject.com/en/dev/topics/i18n/translation/#how-django-discovers-language-preference

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.