Hi,
I'm just trying the content translation of drupal6-beta4. So far I am using drupal4 and 5 with the localizer module. There I have the option of disabling the 'language neutral' option. In other words, a page must always be assigned one of the enabled languages, and the default selection is the current user interface language.

In drupal6-beta4, the default selection when creating a new page is 'language neutral'. First of all, even if that option is available, I would like to be able to set the default to be the current language. Otherwise, users will probably create a lot of language neutral pages without intending to or realizing it, as this requires one extra click that shouldn't be necessary.
Second, I would like the option of removing the 'language neutral' choice alltogether since I won't be using it.

Keep up the good work, drupal6 looks very promising!

Comments

ricabrantes’s picture

Status: Active » Closed (fixed)

No activity, Close..

Bodo Maass’s picture

Version: 6.0-beta4 » 6.1
Category: support » feature
Status: Closed (fixed) » Active

I would like to ask this question again: Is there any way to remove the 'language neutral' option when assigning languages to a node?

If not, I would like to request this as a feature.

huang_cn’s picture

i have the same question. lots of new nodes that created by user are "language neutral" now. actually these node must assign to English language.

i need to set the English language the default language for every new node. and allow users chose language neutral is not necessary because a page always belong to a language.

one more thing, the default "language neutral" creates duplicated urls. for example, my site is in 3 language. if a user created a node without chose language. there will be 3 urls point to the same page.
http://language1.mysite.com/nodeurl
http://language2.mysite.com/nodeurl
http://language3.mysite.com/nodeurl
I am worried if the search engine will punish me because of this.

-Anti-’s picture

I'm also looking for a way to disable the 'language neutral'. It makes filtering for language harder, and I can't even see what use it is anyway? I've been trying to think of a scenario where I'd want 'no language' assigned to a node, and I simply can't think of one. I'm sure it's there for a reason, but it must be an obscure one?

Cheers.

lilou’s picture

Version: 6.1 » 7.x-dev

Feature request go to HEAD.

+1

mentr’s picture

Language Neutral is almost never applied. I can only think of complete numeric data & names/brands...
I would like to choose from 2 or more radio buttons depending on the number of languages enabled, instead of a language already selected in a dropdown list.

nwe_44’s picture

I'd like to add my voice to this. Would also like to see the same in 6.xx versions

Thanks

Jax’s picture

alduya’s picture

I worked on a module that provides this functionality for 6.X and adds the functionality to select a dynamic or fixed default language for nodetypes.
You can download and review it here http://drupal.org/node/625128.

sillygwailo’s picture

The official project for Language Select is at http://drupal.org/project/language_select

plach’s picture

Version: 7.x-dev » 8.x-dev
gioris’s picture

Version: 8.x-dev » 6.9

.. a little bit late...
but since i was searching for it
Content Management> content type>"your content type">Multilingual options
tick ...Set current language as default for new content.
tick ...Require language (Do not allow Language Neutral).

plach’s picture

Version: 6.9 » 8.x-dev

The suggestion above concerns Drupal 6 + i18n module. This is a core feature request, which are accepted only for the latest core version. Please don't change the issue version.

Gábor Hojtsy’s picture

Status: Active » Closed (duplicate)

We have suggestions above for Drupal 6/7 + i18n module.

For Drupal core this can only be added in Drupal 8, the issue at #1314250: Allow filtering/configuration of which languages apply to what (UI, nodes, files, etc) has the goal to allow you to disable certain languages for certain things.

gabocharrua’s picture

Dude!!!! thx a bunch!! after 3 hours with this freaking issue....just thx man!!

Matthieu Bilbille’s picture

D7: here is the module you need: http://drupal.org/project/dnl

MantasK’s picture

for drupal 7 I used this:

/**
 * Implements hook_form_node_form_alter().
 */
function YOUR_MODULE_form_node_form_alter(&$form, &$form_state, $form_id) {

  if (isset($form['language']['#options'])) {
    if (isset($form['language']['#options'][LANGUAGE_NONE])) {
      unset($form['language']['#options'][LANGUAGE_NONE]);
    }
    else {
      //if we have Enabled/Disabled array
      foreach($form['language']['#options'] as $key => $languages) {
        if (is_array($languages) && isset($form['language']['#options'][$key][LANGUAGE_NONE])) {
          unset($form['language']['#options'][$key][LANGUAGE_NONE]);
        }
      }
    }
  }
}
qqboy’s picture

Issue summary: View changes

it works thanks mantask

jiv_e’s picture

At least for Drupal 7 you can use the i18n module. It contains an i18n_node module.

1. Enable the i18n_node.
2. Go to edit the content type (admin/structure/types/manage/page).
3. Open the 'Multilingual settings' tab.
4. Check the 'Require language' checkbox.

wranvaud’s picture

Thanks @jiv_e, that info is helpful.
In case anyone needs to export this into a feature, it's a strongarm variable with prefix i18n_ language_ or locale_.