When creating a node you were able to specify a language, this behavior changed from 1.10 in 1.11.

This is present in localizernode.module (line 123):

      if (arg(1)=='add') {
        if (variable_get('localizer_switch_byhostname', FALSE)) {
          $currenthost = $_SERVER['HTTP_HOST'];
          $localebyhostname = localizer_localebyhostname($currenthost);
          $form['#node']->localizernode_locale = $localebyhostname;
        }
        else {
          $form['#node']->localizernode_locale = localizer_get_defaultcontentlocale();
        }
      }
      else {           
        $form['localizernode_locale'] = array(
          '#type' => 'select',
          '#title' => t('Language'),
          '#default_value' => $form['#node']->localizernode_locale,
          '#options' => $options,
          '#required' => FALSE,
          '#weight' => -18,
        );
      }

If you comment the last else, it will work properly.

CommentFileSizeAuthor
#2 localizernode.module.patch888 bytesBodo Maass

Comments

Bodo Maass’s picture

Hi shariff,
Could you please provide a proper patch, or at least post your code exactly as it is after your change? That will make it easier for this fix to get committed.

Bodo Maass’s picture

Status: Active » Needs review
StatusFileSize
new888 bytes

Here is a proper patch.