Scenario:
- add at least another language (ex.French)
- enable Multilingual support for any content type
- access the node creation page for the above CT
Expectation 1:
- the Language dropdown uses the default language as specified in "admin/config/regional/language"
Expectation 2:
- the Language dropdown uses the current language
Ex. English if accessing the page at "en/node/add", French if accessing the page at "fr/node/add" etc
Current behaviour:
- the Language dropdown doesn't have any language selected
After a quick debugging the issue seems to be in the "locale_form_node_form_alter" function, line 371.
When setting the '#default_value', $form['#node']->language is "und" for new nodes, hence the problem.
Didn't attach any patch, waiting for clarifications about the expected behaviour.
Comments
Comment #1
mac_weber commentedYou can set the default content type language in its settings if you use the module i18n.
On
admin/structure/types/manage/<your_content_type>you will get on the tabMultilingual settings:Extended language options
Comment #1.0
mac_weber commentedAdjusted wording