'Constructor to configure the widget
@param field: the selector(s) for the field(s) to filter by
@param attr: configuration options for this widget'

def __init__(self, field=None, **attr):

    if (not field):
        field = 'location_id'
    settings = current.deployment_settings
    translate = settings.get_L10n_translate_gis_location()
    if translate:
        language = current.session.s3.language
        if (language == 'en'):
            translate = False
    self.translate = translate
    super(S3LocationFilter, self).__init__(field=field, **attr)
