Host based language selection

Bug #558249 reported by metamorph68
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Undecided
Unassigned

Bug Description

Hi!

I forward a patch that I found in debian's BTS, and
applyed sucessfully here.

The aim is to have welcome and admin langague
settings per virtual host.
Modifications seems really straight forward: I hope
we will se something like this applied to main source
code!

Thanks for the good good work guys!

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=351431
s patch lets you have a different DEFAULT_SERVER_NAME
for defined
virtual hosts. Useful because initial pages always
refers to site
DEFAULT_SERVER_NAME, even if lists are in an other
language.

A patch that adds a configuration variable to support
this is included.
The patch is made with dpatch. This is an usage
example:

# Required when setting any of its arguments.
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost('it.gnu.org', 'it.gnu.org')

#-------------------------------------------------------------
# The default language for this server.
DEFAULT_SERVER_LANGUAGE = 'es'
VIRTUAL_HOSTS_LANGUAGE['it.gnu.org']='it'

Related branches

Revision history for this message
metamorph68 (metamorph68) wrote :

The file 79_initial_pages_virtual_host_localization.dpatch was added: patch for per vhost lang setting

Nemo_bis (nemobis)
summary: - Host based langage selection
+ Host based language selection
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers