Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By molino on
How can I disable/delete this option. I want users to select one of the website languages.
Thanks.
Comments
Follow up - default language
Follow up - default language is English
Same question.I can't even
Same question.
I can't even think of a good reason for have a 'language neutral' option.
It just makes filtering content harder.
EDIT:
Since this thread is still alive, I should mention that I don't have a problem with it any more.
I prefer 'neutral' to be the default than the default language or the current selected language.
Also looking for a solution.
Also looking for a solution. Found nothing yet...I have no need for it and will confuse posters. They are required to choose a language as language neutral doesn't seem to offer translation options. Is there any way to unset this in my template.php?
Regards,
Marius
subscribing
I'm also looking to get rid of Language Neutral, or more exactly, when creating nodes, have the language selector AUTOMATICALLY select the interface language.... so as not to trick people into having to specify something that **should** be self evident.
Exactly!
Exactly!
translation interface doesnt work with language problem
I just got another reason to disable the language neutral. The translation interface doesn't show up if the language is neutral.
De Paul Matthew
In i18n
I went to the file i18n.module and commented out this line:
$languages = array('' => t('Language neutral')) + $languages;
(Line 356)
it worked!!!
thanks. it works.
De Paul Matthew
it works just for admin
that option has gone off for admin. but for all other user types i can the language neutral option still.
can u help me on this?
De Paul Matthew
If one makes a module with
If one makes a module with the following code, I think it will talk away the option on all node forms
Awesome!
Thanks e2thex! Here's a slightly revised version that doesnt blow up when there isn't a list of multiple languages yet...
This version also goes a step further and fills the default value to the current user's language.
Where should this go?
Hi, jrguitar21,
I added your code to template.php file but it doesnt seem to do anything...should that code added somewhere else? Thanks.
BB
in a module
blueblade
e2thex's code needs to go into a new module, not your theme's template.php file.
this http://drupal.org/node/206753 is a link to the drupal handbook on creating new modules.
Further revision
This is a further revision that respects when the user is creating a translation
How should this work?
Is this supposed to be added to the module along with jrguitar21's code above? Also, what is this supposed to do? I tried out just jrguitar21's code and that seems to respect the language that the translation is being created in by itself; is this supposed to do that or something different?
He missed to copy the
He missed to copy the function declaration... just copy the function header above.
But i found a problem... if it dont work you will need to set weight to your module. i set my module to 10 in weight and it works
Some info.
http://drupal.org/node/110238
Works great!
Thanks to e2thex and jrguitar21 for providing this code. I created a module and it seems to be working just fine.
Ideally, though, this would either become a properly contributed and maintained module OR be integrated into the i18n module, right? I'm not really sure which is best; what do other folks think?
It's not working for me, any idea ?
This code is fine but it's not working for me.
It's taken in consideration but it seems to be overwritten.
Even though i set my module weight to be the heaviest on the site:((
I wonder why it doesn't work and be glad if you guys had an idea...
I've been already searching for quite a while...
Thanks in advance.
He missed to copy the
ops wrong place.
Download module "Remove language neutral"
I have developed the module "Remove language neutral". The language neutral option can be defined for each nodetype. Please read the module README.txt.
The module can be downloaded here: Remove language neutral
Download module "Remove language neutral"
I have developed the module "Remove language neutral". The language neutral option can be defined for each nodetype. Please read the module README.txt.
The module can be downloaded here: Remove language neutral
-
Thanks for the module - it looks good: I installed it, and set the option for Forum content type and the language list is reduced.
However, when I create a new forum topic, the Default language is English, and not the current active language (e.g. German). Could it be improved to do that please, for example by integrating/adapting this D7 patch: http://drupal.org/node/311158.
FYI, the following patch for
FYI, the following patch for Drupal 6.14 ensures that new forum posts have the current language:
diff -r1.1 /var/www/modules/locale/locale.module
Could you please move the module "Remove language neutral" to drupal.org too?
It works for me
Thank you! It works for all content types I work with (also for these created with CCK).
To change the order of languages in the language option list appearing when creating new content, just change the weight of languages here: admin/settings/language
Review language select module
I worked on a module that provides this functionality 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.
Please provide feedback on that issue queue.
Language Select module official project
Adding for those, like me, who also had this issue, the official project on Drupal.org for Language Select is at http://drupal.org/project/language_select
(Username formerly my full name, Richard Eriksson.)
Solution for D7:
Solution for D7: http://drupal.org/project/dnl
hey
seems like it deleted whole language options from the create new node mode -then i go to content types publishing mode and deselected "Neutral language" - but it shows again Neutral language i options of create new node mode on the first position.
I dont see work of the module?
Fixed - need to check Require
Fixed - need to check Require language (Do not allow Language Neutral) in Content types
Thanks
form but can not delete language neutral
there is a node add form
then i found the $form['language']
then i delete some value
it is deleted
but in view page
it is NOT showing the expected result
can some one tell me what s going on
and why it s like this
thank a lot to all of you.
finally i set the
then use css
it working
but i know it s not the way
can some one tell me why why why ?
thanks.
https://www.drupal.org/project/image_captcha_indicator
https://www.drupal.org/project/ext_js
Getting Rid of Language Neutral
To get rid of Language Neutral products in my Drupal 7 instance, I had to:
Structure > Content Types > Product
On the Publishing Options Sidebar Tab, I had to change the Multilingual support option
From:
Disabled
To:
Enabled, with translation
N.B. You need to install internationalization AND enable other languages before taking this step.
I believe that if you have not already done this preparatory work, the above will not appear
Professor Graham Leach
www.graham-leach.com