Hi!

Is there a chance to make the browser language detection turning off/on on a settings page through admin interface?

The target group of my site are people who live in country "A" but speeking primarily language "B". These people use "A" language version browsers, and when they want to open my site in language "B" they are redirected by default to language "A".

Comments

Andy Inman’s picture

Priority: Normal » Minor

That's already possible, but not through a settings page, you would need to configure it in your settings.php - there's information in the documentation: https://drupal.org/node/907514

fox mulder’s picture

Works great, thank You!

It seems I was not thorough enough, sorry

Andy Inman’s picture

Status: Active » Closed (works as designed)

Thanks for the update. I'm closing this issue.

spazfox’s picture

Status: Closed (works as designed) » Active

I would like to re-open this feature request (i.e., providing an admin UI setting for this), because in some hosting environments it can be a huge pain to make changes to the settings.php file (e.g., see https://omega8.cc/how-to-edit-settingsphp-file-230). Thanks for a very useful module!

Andy Inman’s picture

@spazfox I agree there should be a configuration UI, but I'm not sure if the current approach is correct. Drupal 7+ has its own settings at admin/config/regional/language/configure and this is more or less the same configuration that MultiLink needs. So, maybe all that is really needed is to use those settings rather than MultiLink having its own settings. Some feedback on this topic from users would be useful - what do you think?

spazfox’s picture

I agree -- I would be fine with MultiLink just using the default Drupal 7 detection settings (I actually thought it did when I first started using it, and it took me a while to figure out this module was handling detection on its own).

Andy Inman’s picture

Ok, I think that can be done with settings:

$conf['multilink_language_order'] = array(
  'content',
);

... if that works, then maybe a simple solution would be to make this the default behaviour, so then nothing would be needed in settings.php. The problem is that a change like that would break things for other users, so we would still need a UI where they could change the settings. So, I'll add the UI to my to-do list, but can't make any promises as to when!

Andy Inman’s picture

Status: Active » Closed (works as designed)