When creating a translation, only languages that are enabled should be shown. This is the patch. It also applies to Drupal 6.
This happens quite often, when a custom English language is set up and the original drupal English is disabled.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | translation-343164-3.patch | 797 bytes | plach |
| translation.pages_.inc_.ENABLED_LANGUAGES_ONLY.patch | 978 bytes | eikes |
Comments
Comment #1
nedjolanguage_list('enabled')will get enabled languages.I suspect though that the current behaviour is by design. A site admin may wish to populate translations before enabling a language.
But I can see the issue with the default 'en' language, which it is not possible to delete and therefore will show up for all sites. Maybe we need the ability to optionally remove 'en'?
Comment #2
eikes commentedI see your point. On the other hand causes it some confusion to expose a language to the editor that is disabled
Comment #3
plachRerolled as per #356036-13: Allow creating nodes in disabled languages.
Comment #4
plachThis is fixed in #356036: Allow creating nodes in disabled languages. Marking duplicate.