Hi!

I've started to build a multilingual website and found this module really helpful, thanks a lot :)

Would it be possible to add a new widget option: multiselect.
Something like this: http://drupal.org/project/multiselect

It would make it much easier to keep the overview if you work with many languages!

Also, would be nice to get a dash or something between the ISO code and the language name, like this

en - English
fr - French

Looks much more tidy, but that's just a personal opinion :)

Comments

alan d.’s picture

Category: support » feature

Maybe. Try this quick hack on a test site and report back :)

/**
 * Implements hook_field_widget_info_alter().
 */
function languagefield_field_widget_info_alter(&$info) {
  $info['options_buttons']['field types'][] = 'language_field';
  $info['options_select']['field types'][] = 'language_field';
  # This is new
  if (isset($info['multiselect'])) {
    $info['multiselect']['field types'][] = 'language_field';
  }
}
matsbla’s picture

Thanks a lot for that one, it works perfect, very handy! :-P

alan d.’s picture

@john does this ok to push through? Not sure what your future plans are :)

johnv’s picture

Status: Active » Reviewed & tested by the community

@Alan, I'll commit this within a few days.

johnv’s picture

@Alan, I'll commit this within a few days.

johnv’s picture

Status: Reviewed & tested by the community » Fixed

Thanks Alan,
Tested and fixed this in d2438b4 .
Have fun!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.