if localizer.module is installed & activated(?), trying to enable i18n gives:
Fatal error: Cannot redeclare i18n_get_lang() (previously declared in /home/httpd/html/.../modules/localizer/localizer.module:72) in /home/httpd/html/.../modules/i18n/i18n.module on line 20

(depending on which one of the two is a more "official" contrib to drupal, this bug could be classified "minor" here)

maybe one of the modules should change the name of the function (I checked it has not the same functionality).

the function seems heavily used in i18n, while i cannot find any occurence except for the definition in localizer. I think the best would be to change it there to localizer_... (which I did locally... so far no problems detected)

(this should be cross-posted there...)

Comments

Jose Reyero’s picture

Status: Active » Closed (won't fix)

These modules are not compatible nor they're meant to be so.

You have to choose one or another, cannot use both at the same time.

Roberto Gerola’s picture

Hi.
That function is a core function that can be implemented by external modules.
It cannot be renamed.

In localizer it is declared and can cause problem with internationalization module
only if localizer module is activated, because it is conditionally included.

It has no sense to have both modules activated at the same time.

MFH’s picture

That function is a core function that can be implemented by external modules.
It cannot be renamed.

as far as i could see, localizer and i18n define this function with different args and different results.

In localizer it is declared and can cause problem with internationalization module
only if localizer module is activated, because it is conditionally included.

ok, I noticed that... now I disabled I18n since I also had lots of redirection loop problems which seemed to come from there (?)

however, even if it "makes no sense" to have them both, they should both look out for such incompatibilites and tell about at least on installation and/or activation
(I could even imagine the module activation checkbox disabled like in a case of missing dependency, but here because of incompatibility)