I developed a module that added the possibility to set a fixed or dynamic default language and the possibility to remove 'Language neutral' from the language select box and adds a '- Please choose -' option as first in the select box. (Language select). These features were talked about by other users (http://drupal.org/node/198355 http://drupal.org/node/250891 http://drupal.org/node/527862).
The first new version of i18n included part of this functionality (to remove 'Language neutral'). So I created a patch for i18n to add the extended default node language selection.
After applying this patch the checkbox 'Set current language as default' is replaced with a select box 'Select default language'. From this select box you can choose a dynamic or fixed default language.

  • Dynamic:
  • Fixed
    • Any of the languages enabled for the site
    • No default language = Sets the dropdown to '- Please choose -'
    • Language neutral = Falls back to No default language if Disable Language neutral is selected

I hope I made the patch correctly.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alduya’s picture

Status: Patch (to be ported) » Needs review
alduya’s picture

Attaching a new version of the patch made against dev.
There were some mistakes in the previous version. It is now also possible to lock the language to a admin defined language (dynamic or fixed).

Please review and return feedback or set status to rtbc.

alduya’s picture

Sorry, I already found a small error. Use this corrected file.

botris’s picture

Confirm this to work

squarecandy’s picture

#3 works great for me.
Definitely need to force users to create new pages in english, and then create spanish translations later if they choose to.
Would be great to see this make the next release.

Thanks!

botris’s picture

Status: Needs review » Reviewed & tested by the community
botris’s picture

Please commit, now I have to repatch on every update...

YK85’s picture

subscribing

Tebb’s picture

Title: Extended default node language selection » i18n: Extended default node language selection

Subscribing: Seems to make sense. Does this conflict with any other requirements?

Will this be in the D7 version?

zilverdistel’s picture

subscribing, looks like an interesting improvement ...

Jose Reyero’s picture

Component: Code » Blocks
Status: Reviewed & tested by the community » Closed (won't fix)

We are not adding new features for 6.x, maybe try for 7.x

Tebb’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Closed (won't fix) » Patch (to be ported)

Would still like to see this in D7.

Jose Reyero’s picture

Status: Patch (to be ported) » Needs work

Would need D7 upgrade. However I don't know how this will play with already existing D7 options for node language.

Jose Reyero’s picture

Status: Needs work » Closed (won't fix)

It seems there's no intereset on upgrading the patch, so closing.

(Remember this is not a wish list, so reopen *only* if you post a upgraded patch).