During bootstrap function language_initialize() (in language.inc) is calling the function language_list() (in bootstrap.inc). At that moment the ‘locale.module’ is not yet loaded, even if it is enabled.
As a result the static variable $languages is set to the default language only and other languages are not available. It looks like the ‘if (module_exists('locale'))’ is called too early.
The result is that other, optional, languages are not available. You can see the problem when enabling the ‘language block’ and try to translate a node after clicking the ‘translate’ tab. Only the default language is available. Also the ‘translate interface’ (admin/build/translate) is not functional.
Attached a patch that change the ‘module_exists’ into a variable_get(‘language_count’). This variable will be set by the locale.module and deleted when uninstalling it. It looks like a safe way for me to detect the existents of the locale.module even while not yet loaded.
I must admit that I’m not very familiar with the bootstrap-process and can’t find the reason why this is not working anymore. Last time I checked a devel-version (19 July) it was working well. I searched trough old CVS message but I couldn't find a change that has this mis-function as result.
|languages.patch||598 bytes||Ignored: Check issue status.||None||None|